This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
ppc8xx.h patch...
- From: Robert Chenault <robertchenault at yahoo dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Wed, 31 Mar 2004 17:02:41 -0800 (PST)
- Subject: ppc8xx.h patch...
Dear Ecos,
Please include the attached patch in the
hal/powerpc/quicc/.../include/ppc8xx.h file.
Changes include:
- Add 8 bytes worth of definitions to the spi_pram structure (for a
total of 48 bytes) as is done in the i2c_pram structure.
- Then we must remove the equivalent 8 reserved bytes in the scc_pram
structure.
This change makes the two structures (i2c_pram and spi_pram) more
uniform for accessing the data.
Thank you,
Robert Chenault
rchenault@hypercom.com
? addpramdefs.txt
Index: hal/powerpc/quicc/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/quicc/current/ChangeLog,v
retrieving revision 1.35
diff -u -b -w -r1.35 ChangeLog
--- hal/powerpc/quicc/current/ChangeLog 8 Sep 2003 14:55:36 -0000 1.35
+++ hal/powerpc/quicc/current/ChangeLog 1 Apr 2004 00:42:39 -0000
@@ -1,3 +1,9 @@
+2004-04-01 Robert Chenault <robertchenault@yahoo.com>
+
+ * include/ppc8xx.h: Add definition for 8 bytes to spi_pram structure
+ (for a total of 48 bytes) as is done in the i2c_pram structure. Then
+ remove the equivalent 8 reserved bytes in the scc_pram structure.
+
2003-09-08 Gary Thomas <gary@mlbassoc.com>
* src/quicc_smc1.c: Fix baud rate clock setup - was off by 1.
Index: hal/powerpc/quicc/current/include/ppc8xx.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/quicc/current/include/ppc8xx.h,v
retrieving revision 1.14
diff -u -b -w -r1.14 ppc8xx.h
--- hal/powerpc/quicc/current/include/ppc8xx.h 23 Mar 2003 16:22:14 -0000 1.14
+++ hal/powerpc/quicc/current/include/ppc8xx.h 1 Apr 2004 00:42:39 -0000
@@ -348,7 +348,9 @@
unsigned long tptr; /* Tx internal data pointer */
unsigned short tbptr; /* Tx BD pointer */
unsigned short tcount; /* Tx byte count */
- unsigned long ttemp; /* Tx temp */
+ unsigned long ttemp[2]; /* Tx temp */
+ unsigned short rpbase; /* Relocated param block pointer */
+ unsigned short res; /* unused */
};
struct smc_uart_pram {
@@ -899,7 +901,6 @@
} i2c_idma;
struct {
struct spi_pram spi;
- unsigned char RSRVD57[0x8];
struct timer_pram timer;
struct idma_pram idma2;
} spi_timer_idma;