This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] xxx_channels[]


On Tue, 2002-08-06 at 03:29, Motoya Kurotsu wrote:
> Hi all;
> 
> Many platforms have qualifier "const" before struct xxx_channles[].
> I think that the xxx_channels[] must be put in ram 
> even if CYG_HAL_STARTUP == "ROM". 
> Otherwise, cyg_hal_plf_control_serial() will fail in the 
> case of __COMMCTL_SET_TIMEOUT as __func by trying to write 
> chan->msec_timeout, for example.
> 
> The attached patch is only for the mips tree. Other architectures 
> will also need to be fixed.
> 

Thanks.  I went ahead and changed all of the HALs (I think) and applied
this patch:

Index: hal/arm/cma230/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/cma230/current/ChangeLog,v
retrieving revision 1.22
diff -u -5 -p -r1.22 ChangeLog
--- hal/arm/cma230/current/ChangeLog	23 May 2002 23:01:48 -0000	1.22
+++ hal/arm/cma230/current/ChangeLog	6 Aug 2002 15:50:05 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/hal_diag.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-23  Jesper Skov  <jskov@redhat.com>
 
 	* cdl/hal_arm_cma230.cdl: Don't run cache tests.
 
 2002-05-13  Jesper Skov  <jskov@redhat.com>
Index: hal/arm/cma230/current/src/hal_diag.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/cma230/current/src/hal_diag.c,v
retrieving revision 1.10
diff -u -5 -p -r1.10 hal_diag.c
--- hal/arm/cma230/current/src/hal_diag.c	23 May 2002 23:01:50 -0000	1.10
+++ hal/arm/cma230/current/src/hal_diag.c	6 Aug 2002 15:45:57 -0000
@@ -192,11 +192,11 @@ typedef struct {
     int isr_vector;
 } channel_data_t;
 
 //-----------------------------------------------------------------------------
 static void
-init_serial_channel(const channel_data_t* __ch_data)
+init_serial_channel(channel_data_t* __ch_data)
 {
     cyg_uint8* base = __ch_data->base;
     cyg_uint8 lcr;
 
     // 8-1-no parity.
@@ -260,11 +260,11 @@ cyg_hal_plf_serial_putc(void* __ch_data,
     } while ((lsr & SIO_LSR_THRE) == 0);
 
     CYGARC_HAL_RESTORE_GP();
 }
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)CMA101_DUARTA, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_A},
     { (cyg_uint8*)CMA101_DUARTB, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_B}
 };
 
 static void
Index: hal/arm/iq80310/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/iq80310/current/ChangeLog,v
retrieving revision 1.17
diff -u -5 -p -r1.17 ChangeLog
--- hal/arm/iq80310/current/ChangeLog	31 May 2002 01:05:54 -0000	1.17
+++ hal/arm/iq80310/current/ChangeLog	6 Aug 2002 15:50:25 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/hal_diag.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-28  Mark Salter  <msalter@redhat.com>
 
 	* cdl/hal_arm_iq80310.cdl: Add Linux boot support.
 	* misc/redboot_RAM.ecm: Ditto.
 	* misc/redboot_ROM.ecm: Ditto.
Index: hal/arm/iq80310/current/src/hal_diag.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/arm/iq80310/current/src/hal_diag.c,v
retrieving revision 1.4
diff -u -5 -p -r1.4 hal_diag.c
--- hal/arm/iq80310/current/src/hal_diag.c	29 May 2002 18:28:11 -0000	1.4
+++ hal/arm/iq80310/current/src/hal_diag.c	6 Aug 2002 15:45:57 -0000
@@ -201,11 +201,11 @@ set_baud( channel_data_t *chan )
     }
     return -1;
 }
 
 static void
-init_serial_channel(const channel_data_t* __ch_data)
+init_serial_channel(channel_data_t* __ch_data)
 {
     cyg_uint8* base = __ch_data->base;
     channel_data_t* chan = (channel_data_t*)__ch_data;
 
     // 8-1-no parity.
@@ -262,11 +262,11 @@ cyg_hal_plf_serial_putc(void* __ch_data,
     } while ((lsr & SIO_LSR_THRE) == 0);
 
     CYGARC_HAL_RESTORE_GP();
 }
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)CYG_DEV_SERIAL_BASE_A, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_A},
     { (cyg_uint8*)CYG_DEV_SERIAL_BASE_B, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_B}
 };
 
 static void
Index: hal/calmrisc16/ceb/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/calmrisc16/ceb/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/calmrisc16/ceb/current/ChangeLog	23 May 2002 23:02:36 -0000	1.2
+++ hal/calmrisc16/ceb/current/ChangeLog	6 Aug 2002 15:50:41 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2001-05-09  Mark Salter  <msalter@redhat.com>
 
 	* include/plf_intr.h: Make hal_delay_us argument a cyg_uint32.
 	* src/plf_misc.c (hal_delay_us): Ditto.
 
Index: hal/calmrisc16/ceb/current/src/ser.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/calmrisc16/ceb/current/src/ser.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser.c
--- hal/calmrisc16/ceb/current/src/ser.c	23 May 2002 23:02:39 -0000	1.2
+++ hal/calmrisc16/ceb/current/src/ser.c	6 Aug 2002 15:45:57 -0000
@@ -74,11 +74,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[1] = {
+static channel_data_t channels[1] = {
     { (cyg_uint8*)0, 1000, 0}
 };
 
 //-----------------------------------------------------------------------------
 // The minimal init, get and put functions. All by polling.
Index: hal/calmrisc32/ceb/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/calmrisc32/ceb/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/calmrisc32/ceb/current/ChangeLog	23 May 2002 23:02:41 -0000	1.2
+++ hal/calmrisc32/ceb/current/ChangeLog	6 Aug 2002 15:50:53 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2001-03-26  Mark Salter  <msalter@redhat.com>
 
 	* src/plf_misc.c (hal_delay_us): Fix loop count for better accuracy.
 
 	* src/platform.S: Remove unneeded ceb_program_new_stack.
Index: hal/calmrisc32/ceb/current/src/ser.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/calmrisc32/ceb/current/src/ser.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser.c
--- hal/calmrisc32/ceb/current/src/ser.c	23 May 2002 23:02:42 -0000	1.2
+++ hal/calmrisc32/ceb/current/src/ser.c	6 Aug 2002 15:45:58 -0000
@@ -74,11 +74,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[1] = {
+static channel_data_t channels[1] = {
     { (cyg_uint8*)0, 1000, 0}
 };
 
 //-----------------------------------------------------------------------------
 // The minimal init, get and put functions. All by polling.
Index: hal/mips/atlas/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/atlas/current/ChangeLog,v
retrieving revision 1.6
diff -u -5 -p -r1.6 ChangeLog
--- hal/mips/atlas/current/ChangeLog	23 May 2002 23:03:24 -0000	1.6
+++ hal/mips/atlas/current/ChangeLog	6 Aug 2002 15:51:04 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser16c550c.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
 
 	* cdl/hal_mips_atlas.cdl: Indicate support of variable baud rates.
 
 2001-07-20  David Woodhouse  <dwmw2@redhat.com>
Index: hal/mips/atlas/current/src/ser16c550c.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/atlas/current/src/ser16c550c.c,v
retrieving revision 1.3
diff -u -5 -p -r1.3 ser16c550c.c
--- hal/mips/atlas/current/src/ser16c550c.c	23 May 2002 23:03:26 -0000	1.3
+++ hal/mips/atlas/current/src/ser16c550c.c	6 Aug 2002 15:45:58 -0000
@@ -213,11 +213,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[1] = {
+static channel_data_t channels[1] = {
     { (cyg_uint8*)ATLAS_SER_16550_BASE, 1000, CYGNUM_HAL_INTERRUPT_DEBUG_UART}
 };
 
 //-----------------------------------------------------------------------------
 // Set the baud rate
Index: hal/mips/malta/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/malta/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/mips/malta/current/ChangeLog	23 May 2002 23:03:29 -0000	1.2
+++ hal/mips/malta/current/ChangeLog	6 Aug 2002 15:51:18 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser16c550c.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-02-11  Jesper Skov  <jskov@redhat.com>
 
 	* include/platform.inc: Added hal_intc_translate that knows about
 	the special trampoline code.
 
Index: hal/mips/malta/current/src/ser16c550c.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/malta/current/src/ser16c550c.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser16c550c.c
--- hal/mips/malta/current/src/ser16c550c.c	23 May 2002 23:03:31 -0000	1.2
+++ hal/mips/malta/current/src/ser16c550c.c	6 Aug 2002 15:45:58 -0000
@@ -177,11 +177,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)MALTA_SER_16550_BASE_A, 1000, CYGNUM_HAL_INTERRUPT_TTY0},
     { (cyg_uint8*)MALTA_SER_16550_BASE_B, 1000, CYGNUM_HAL_INTERRUPT_TTY1}
 };
 
 //-----------------------------------------------------------------------------
Index: hal/mips/ref4955/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/ref4955/current/ChangeLog,v
retrieving revision 1.5
diff -u -5 -p -r1.5 ChangeLog
--- hal/mips/ref4955/current/ChangeLog	23 May 2002 23:03:35 -0000	1.5
+++ hal/mips/ref4955/current/ChangeLog	6 Aug 2002 15:51:32 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/pc87338.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-13  Jesper Skov  <jskov@redhat.com>
 
 	* cdl/hal_mips_tx49_ref4955.cdl: Removed implemntation of
 	CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED.
 
Index: hal/mips/ref4955/current/src/pc87338.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/ref4955/current/src/pc87338.c,v
retrieving revision 1.4
diff -u -5 -p -r1.4 pc87338.c
--- hal/mips/ref4955/current/src/pc87338.c	23 May 2002 23:03:36 -0000	1.4
+++ hal/mips/ref4955/current/src/pc87338.c	6 Aug 2002 15:45:58 -0000
@@ -224,11 +224,11 @@ cyg_hal_plf_serial_getc(void* __ch_data)
 
     CYGARC_HAL_RESTORE_GP();
     return ch;
 }
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)CYG_DEVICE_SERIAL_SCC1, 1000, CYGNUM_HAL_INTERRUPT_DEBUG_UART},
     { (cyg_uint8*)CYG_DEVICE_SERIAL_SCC2, 1000, CYGNUM_HAL_INTERRUPT_USER_UART}
 };
 
 static void
Index: hal/mips/vrc437x/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/vrc437x/current/ChangeLog,v
retrieving revision 1.5
diff -u -5 -p -r1.5 ChangeLog
--- hal/mips/vrc437x/current/ChangeLog	20 May 2002 22:23:10 -0000	1.5
+++ hal/mips/vrc437x/current/ChangeLog	6 Aug 2002 15:51:47 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/plf_serial.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
 
 	* cdl/hal_mips_vr4300_vrc437x.cdl: Indicate support of variable baud
 	rates.
 
Index: hal/mips/vrc437x/current/src/plf_serial.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mips/vrc437x/current/src/plf_serial.c,v
retrieving revision 1.3
diff -u -5 -p -r1.3 plf_serial.c
--- hal/mips/vrc437x/current/src/plf_serial.c	23 May 2002 23:03:56 -0000	1.3
+++ hal/mips/vrc437x/current/src/plf_serial.c	6 Aug 2002 15:45:58 -0000
@@ -93,11 +93,11 @@ typedef struct {
     cyg_uint32 base;
     cyg_uint32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { DUART_A, 1000, CYGNUM_HAL_INTERRUPT_DUART},
     { DUART_B, 1000, CYGNUM_HAL_INTERRUPT_DUART}
 };
 
 //-----------------------------------------------------------------------------
Index: hal/mn10300/asb/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mn10300/asb/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/mn10300/asb/current/ChangeLog	23 May 2002 23:04:03 -0000	1.2
+++ hal/mn10300/asb/current/ChangeLog	6 Aug 2002 15:51:58 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser_asb.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
 
 	* cdl/hal_mn10300_am33_asb.cdl: Indicate support of variable baud rates.
 
 2001-03-08  Jesper Skov  <jskov@redhat.com>
Index: hal/mn10300/asb/current/src/ser_asb.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mn10300/asb/current/src/ser_asb.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser_asb.c
--- hal/mn10300/asb/current/src/ser_asb.c	23 May 2002 23:04:04 -0000	1.2
+++ hal/mn10300/asb/current/src/ser_asb.c	6 Aug 2002 15:45:58 -0000
@@ -175,11 +175,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)ASB2303_SER1_BASE, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_1_RX },
     { (cyg_uint8*)ASB2303_SER0_BASE, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_0_RX },
 };
 
 //-----------------------------------------------------------------------------
Index: hal/mn10300/stb/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mn10300/stb/current/ChangeLog,v
retrieving revision 1.7
diff -u -5 -p -r1.7 ChangeLog
--- hal/mn10300/stb/current/ChangeLog	2 Nov 2001 16:12:34 -0000	1.7
+++ hal/mn10300/stb/current/ChangeLog	6 Aug 2002 15:52:09 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser_stb.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
 
 	* cdl/hal_mn10300_am33_stb.cdl: Indicate support of variable baud rates.
 
 2001-09-05  David Howells  <dhowells@redhat.com>
Index: hal/mn10300/stb/current/src/ser_stb.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/mn10300/stb/current/src/ser_stb.c,v
retrieving revision 1.3
diff -u -5 -p -r1.3 ser_stb.c
--- hal/mn10300/stb/current/src/ser_stb.c	23 May 2002 23:04:09 -0000	1.3
+++ hal/mn10300/stb/current/src/ser_stb.c	6 Aug 2002 15:45:58 -0000
@@ -175,11 +175,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)STB_SER0_BASE, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_0_RX },
     { (cyg_uint8*)STB_SER1_BASE, 1000, CYGNUM_HAL_INTERRUPT_SERIAL_1_RX },
 };
 
 //-----------------------------------------------------------------------------
Index: hal/powerpc/cogent/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/cogent/current/ChangeLog,v
retrieving revision 1.23
diff -u -5 -p -r1.23 ChangeLog
--- hal/powerpc/cogent/current/ChangeLog	27 Jun 2002 20:27:13 -0000	1.23
+++ hal/powerpc/cogent/current/ChangeLog	6 Aug 2002 15:52:22 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/hal_diag.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-06-27  Gary Thomas  <gary@chez-thomas.org>
 
 	* include/plf_regs.h: New file - platform overrides.
 
 2002-05-21  Gary Thomas  <gthomas@redhat.com>
Index: hal/powerpc/cogent/current/src/hal_diag.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/cogent/current/src/hal_diag.c,v
retrieving revision 1.14
diff -u -5 -p -r1.14 hal_diag.c
--- hal/powerpc/cogent/current/src/hal_diag.c	23 May 2002 23:04:19 -0000	1.14
+++ hal/powerpc/cogent/current/src/hal_diag.c	6 Aug 2002 15:45:58 -0000
@@ -169,11 +169,11 @@ typedef struct {
     int isr_vector;
 } channel_data_t;
 
 //-----------------------------------------------------------------------------
 static void
-init_serial_channel(const channel_data_t* __ch_data)
+init_serial_channel(channel_data_t* __ch_data)
 {
     cyg_uint8* base = __ch_data->base;
     cyg_uint8 lcr;
 
     HAL_WRITE_UINT8(base+CYG_DEV_SERIAL_IER, 0);
@@ -264,11 +264,11 @@ cyg_hal_plf_serial_putc(void* __ch_data,
     } while ((lsr & SIO_LSR_THRE) == 0);
 
     CYGARC_HAL_RESTORE_GP();
 }
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)CYG_DEV_SERIAL_BASE_A, 1000, CYGNUM_HAL_INTERRUPT_SIU_IRQ1},
     { (cyg_uint8*)CYG_DEV_SERIAL_BASE_B, 1000, CYGNUM_HAL_INTERRUPT_SIU_IRQ1}
 };
 
 static void
Index: hal/sh/hs7729pci/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/hs7729pci/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/sh/hs7729pci/current/ChangeLog	23 May 2002 23:04:46 -0000	1.2
+++ hal/sh/hs7729pci/current/ChangeLog	6 Aug 2002 15:52:33 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser16c550c.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-08  Jesper Skov  <jskov@redhat.com>
 
 	* src/hal_diag.c: Serial register renaming.
 
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
Index: hal/sh/hs7729pci/current/src/ser16c550c.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/hs7729pci/current/src/ser16c550c.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser16c550c.c
--- hal/sh/hs7729pci/current/src/ser16c550c.c	23 May 2002 23:04:47 -0000	1.2
+++ hal/sh/hs7729pci/current/src/ser16c550c.c	6 Aug 2002 15:45:58 -0000
@@ -191,11 +191,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[2] = {
+static channel_data_t channels[2] = {
     { (cyg_uint8*)HS7729PCI_SER_16550_BASE_A, 1000, CYGNUM_HAL_INTERRUPT_UIO_IRQ3 },
     { (cyg_uint8*)HS7729PCI_SER_16550_BASE_B, 1000, CYGNUM_HAL_INTERRUPT_UIO_IRQ4 }
 };
 
 //-----------------------------------------------------------------------------
Index: hal/sh/se7751/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/se7751/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/sh/se7751/current/ChangeLog	23 May 2002 23:04:47 -0000	1.2
+++ hal/sh/se7751/current/ChangeLog	6 Aug 2002 15:52:46 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser16c550c.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-08  Jesper Skov  <jskov@redhat.com>
 
 	* src/hal_diag.c: Serial register renaming.
 
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
Index: hal/sh/se7751/current/src/ser16c550c.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/se7751/current/src/ser16c550c.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser16c550c.c
--- hal/sh/se7751/current/src/ser16c550c.c	23 May 2002 23:04:48 -0000	1.2
+++ hal/sh/se7751/current/src/ser16c550c.c	6 Aug 2002 15:45:58 -0000
@@ -191,11 +191,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[1] = {
+static channel_data_t channels[1] = {
     { (cyg_uint8*)SE77X9_SER_16550_BASE_A, 1000, CYGNUM_HAL_INTERRUPT_PC_SIRQ4 },
 };
 
 //-----------------------------------------------------------------------------
 // Set the baud rate
Index: hal/sh/se77x9/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/se77x9/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/sh/se77x9/current/ChangeLog	23 May 2002 23:04:48 -0000	1.2
+++ hal/sh/se77x9/current/ChangeLog	6 Aug 2002 15:52:56 -0000
@@ -1,5 +1,11 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/ser16c550c.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-08  Jesper Skov  <jskov@redhat.com>
 
 	* src/hal_diag.c: Serial register renaming.
 
 2001-10-31  Jonathan Larmour  <jlarmour@redhat.com>
Index: hal/sh/se77x9/current/src/ser16c550c.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/se77x9/current/src/ser16c550c.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ser16c550c.c
--- hal/sh/se77x9/current/src/ser16c550c.c	23 May 2002 23:04:50 -0000	1.2
+++ hal/sh/se77x9/current/src/ser16c550c.c	6 Aug 2002 15:45:58 -0000
@@ -193,11 +193,11 @@ typedef struct {
     cyg_uint8* base;
     cyg_int32 msec_timeout;
     int isr_vector;
 } channel_data_t;
 
-static const channel_data_t channels[1] = {
+static channel_data_t channels[1] = {
     { (cyg_uint8*)SE77X9_SER_16550_BASE_A, 1000, CYGNUM_HAL_INTERRUPT_COM1 },
 };
 
 //-----------------------------------------------------------------------------
 // Set the baud rate
Index: hal/sh/sh2/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh2/current/ChangeLog,v
retrieving revision 1.2
diff -u -5 -p -r1.2 ChangeLog
--- hal/sh/sh2/current/ChangeLog	23 May 2002 23:04:50 -0000	1.2
+++ hal/sh/sh2/current/ChangeLog	6 Aug 2002 15:53:18 -0000
@@ -1,5 +1,12 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/sh2_scif.c: 
+	* src/sh2_sci.c: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-22  Jesper Skov  <jskov@redhat.com>
 
 	* cdl/hal_sh_sh2.cdl: Select variant 7044 by default.
 
 2002-05-08  Jesper Skov  <jskov@redhat.com>
Index: hal/sh/sh2/current/src/sh2_sci.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh2/current/src/sh2_sci.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 sh2_sci.c
--- hal/sh/sh2/current/src/sh2_sci.c	23 May 2002 23:04:56 -0000	1.2
+++ hal/sh/sh2/current/src/sh2_sci.c	6 Aug 2002 15:45:58 -0000
@@ -67,11 +67,11 @@
 #include <cyg/hal/sh2_sci.h>            // our header
 
 //--------------------------------------------------------------------------
 
 void
-cyg_hal_plf_sci_init_channel(const channel_data_t* chan)
+cyg_hal_plf_sci_init_channel(channel_data_t* chan)
 {
     cyg_uint8 tmp;
     cyg_uint8* base = chan->base;
 
     // Disable Tx/Rx interrupts, but enable Tx/Rx
Index: hal/sh/sh2/current/src/sh2_scif.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh2/current/src/sh2_scif.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 sh2_scif.c
--- hal/sh/sh2/current/src/sh2_scif.c	23 May 2002 23:04:56 -0000	1.2
+++ hal/sh/sh2/current/src/sh2_scif.c	6 Aug 2002 15:45:58 -0000
@@ -73,11 +73,11 @@
 #include <cyg/hal/sh2_scif.h>           // our header
 
 //--------------------------------------------------------------------------
 
 void
-cyg_hal_plf_scif_init_channel(const channel_data_t* chan)
+cyg_hal_plf_scif_init_channel(channel_data_t* chan)
 {
     cyg_uint8* base = chan->base;
     cyg_uint8 tmp;
     cyg_uint16 sr;
     int baud_rate = CYGNUM_HAL_SH_SH2_SCIF_BAUD_RATE;
Index: hal/sh/sh3/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh3/current/ChangeLog,v
retrieving revision 1.18
diff -u -5 -p -r1.18 ChangeLog
--- hal/sh/sh3/current/ChangeLog	23 May 2002 23:04:57 -0000	1.18
+++ hal/sh/sh3/current/ChangeLog	6 Aug 2002 15:53:45 -0000
@@ -1,5 +1,14 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/sh3_scif.c: 
+	* src/sh3_sci.c: 
+	* include/sh3_scif.h: 
+	* include/sh3_sci.h: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-22  Jesper Skov  <jskov@redhat.com>
 
 	* cdl/hal_sh_sh3.cdl: Select variant 7709A by default.
 
 2002-05-08  Jesper Skov  <jskov@redhat.com>
Index: hal/sh/sh3/current/include/sh3_sci.h
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh3/current/include/sh3_sci.h,v
retrieving revision 1.4
diff -u -5 -p -r1.4 sh3_sci.h
--- hal/sh/sh3/current/include/sh3_sci.h	23 May 2002 23:05:01 -0000	1.4
+++ hal/sh/sh3/current/include/sh3_sci.h	6 Aug 2002 15:45:58 -0000
@@ -85,11 +85,11 @@ typedef struct {
 
 //--------------------------------------------------------------------------
 
 #if !defined(CYGSEM_HAL_VIRTUAL_VECTOR_DIAG)
 // This one should only be used by old-stub compatibility code!
-externC void cyg_hal_plf_sci_init_channel(const channel_data_t* chan);
+externC void cyg_hal_plf_sci_init_channel(channel_data_t* chan);
 #warning "You should not be using anything but vv diag"
 #endif
 
 #endif // CYGPRI_HAL_SH_SH3_SCI_PRIVATE
 
Index: hal/sh/sh3/current/include/sh3_scif.h
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh3/current/include/sh3_scif.h,v
retrieving revision 1.4
diff -u -5 -p -r1.4 sh3_scif.h
--- hal/sh/sh3/current/include/sh3_scif.h	23 May 2002 23:05:01 -0000	1.4
+++ hal/sh/sh3/current/include/sh3_scif.h	6 Aug 2002 15:45:58 -0000
@@ -91,11 +91,11 @@ typedef struct {
 
 //--------------------------------------------------------------------------
 
 #if !defined(CYGSEM_HAL_VIRTUAL_VECTOR_DIAG)
 // This one should only be used by old-stub compatibility code!
-externC void cyg_hal_plf_scif_init_channel(const channel_data_t* chan);
+externC void cyg_hal_plf_scif_init_channel(channel_data_t* chan);
 #warning "You should not be using anything but vv diag"
 #endif
 
 #endif // CYGPRI_HAL_SH_SH3_SCIF_PRIVATE
 
Index: hal/sh/sh3/current/src/sh3_sci.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh3/current/src/sh3_sci.c,v
retrieving revision 1.5
diff -u -5 -p -r1.5 sh3_sci.c
--- hal/sh/sh3/current/src/sh3_sci.c	23 May 2002 23:05:02 -0000	1.5
+++ hal/sh/sh3/current/src/sh3_sci.c	6 Aug 2002 15:45:58 -0000
@@ -67,11 +67,11 @@
 #include <cyg/hal/sh3_sci.h>            // our header
 
 //--------------------------------------------------------------------------
 
 void
-cyg_hal_plf_sci_init_channel(const channel_data_t* chan)
+cyg_hal_plf_sci_init_channel(channel_data_t* chan)
 {
     cyg_uint8 tmp;
     cyg_uint8* base = chan->base;
 
     // Disable Tx/Rx interrupts, but enable Tx/Rx
Index: hal/sh/sh3/current/src/sh3_scif.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh3/current/src/sh3_scif.c,v
retrieving revision 1.4
diff -u -5 -p -r1.4 sh3_scif.c
--- hal/sh/sh3/current/src/sh3_scif.c	23 May 2002 23:05:02 -0000	1.4
+++ hal/sh/sh3/current/src/sh3_scif.c	6 Aug 2002 15:45:58 -0000
@@ -73,11 +73,11 @@
 #include <cyg/hal/sh3_scif.h>           // our header
 
 //--------------------------------------------------------------------------
 
 void
-cyg_hal_plf_scif_init_channel(const channel_data_t* chan)
+cyg_hal_plf_scif_init_channel(channel_data_t* chan)
 {
     cyg_uint8* base = chan->base;
     cyg_uint8 tmp;
     cyg_uint16 sr;
 
Index: hal/sh/sh4/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh4/current/ChangeLog,v
retrieving revision 1.17
diff -u -5 -p -r1.17 ChangeLog
--- hal/sh/sh4/current/ChangeLog	23 May 2002 23:05:03 -0000	1.17
+++ hal/sh/sh4/current/ChangeLog	6 Aug 2002 15:54:03 -0000
@@ -1,5 +1,12 @@
+2002-08-06  Gary Thomas  <gary@chez-thomas.org>
+2002-08-06  Motoya Kurotsu <kurotsu@allied-telesis.co.jp>	
+
+	* src/sh4_scif.c: 
+	* include/sh4_scif.h: I/O channel data can't be constant - contains
+	timeout information which can be changed.
+
 2002-05-22  Jesper Skov  <jskov@redhat.com>
 
 	* cdl/hal_sh_sh4.cdl: Select variant 7750 by default.
 
 2002-05-08  Jesper Skov  <jskov@redhat.com>
Index: hal/sh/sh4/current/include/sh4_scif.h
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh4/current/include/sh4_scif.h,v
retrieving revision 1.4
diff -u -5 -p -r1.4 sh4_scif.h
--- hal/sh/sh4/current/include/sh4_scif.h	23 May 2002 23:05:04 -0000	1.4
+++ hal/sh/sh4/current/include/sh4_scif.h	6 Aug 2002 15:45:58 -0000
@@ -89,11 +89,11 @@ typedef struct {
 
 //--------------------------------------------------------------------------
 
 #if !defined(CYGSEM_HAL_VIRTUAL_VECTOR_DIAG)
 // This one should only be used by old-stub compatibility code!
-externC void cyg_hal_plf_scif_init_channel(const channel_data_t* chan);
+externC void cyg_hal_plf_scif_init_channel(channel_data_t* chan);
 #warning "You should not be using anything but vv diag"
 #endif
 
 #endif // CYGPRI_HAL_SH_SH4_SCIF_PRIVATE
 
Index: hal/sh/sh4/current/src/sh4_scif.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/sh/sh4/current/src/sh4_scif.c,v
retrieving revision 1.4
diff -u -5 -p -r1.4 sh4_scif.c
--- hal/sh/sh4/current/src/sh4_scif.c	23 May 2002 23:05:06 -0000	1.4
+++ hal/sh/sh4/current/src/sh4_scif.c	6 Aug 2002 15:45:58 -0000
@@ -69,11 +69,11 @@
 #include <cyg/hal/sh4_scif.h>           // our header
 
 //--------------------------------------------------------------------------
 
 void
-cyg_hal_plf_scif_init_channel(const channel_data_t* chan)
+cyg_hal_plf_scif_init_channel(channel_data_t* chan)
 {
     cyg_uint8* base = chan->base;
     cyg_uint16 tmp;
     cyg_uint16 sr;
 




-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]