This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Net - Fix QUICC driver breakage
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 06 Mar 2003 20:51:24 -0700
- Subject: Net - Fix QUICC driver breakage
Index: devs/eth/powerpc/quicc/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/quicc/current/ChangeLog,v
retrieving revision 1.16
diff -u -5 -p -r1.16 ChangeLog
--- devs/eth/powerpc/quicc/current/ChangeLog 25 Nov 2002 23:20:51 -0000 1.16
+++ devs/eth/powerpc/quicc/current/ChangeLog 7 Mar 2003 03:47:10 -0000
@@ -1,5 +1,9 @@
+2003-03-06 Gary Thomas <gary at mlbassoc dot com>
+
+ * src/if_quicc.c (quicc_eth_init): New name for CPM/DPRAM allocator.
+
2002-11-25 Gary Thomas <gthomas at ecoscentric dot com>
* src/quicc_eth.h:
* src/if_quicc.c: Split platform specifics into separate packages.
Index: devs/eth/powerpc/quicc/current/src/if_quicc.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/devs/eth/powerpc/quicc/current/src/if_quicc.c,v
retrieving revision 1.15
diff -u -5 -p -r1.15 if_quicc.c
--- devs/eth/powerpc/quicc/current/src/if_quicc.c 25 Nov 2002 23:20:51 -0000 1.15
+++ devs/eth/powerpc/quicc/current/src/if_quicc.c 7 Mar 2003 03:43:01 -0000
@@ -245,12 +245,12 @@ quicc_eth_init(struct cyg_netdevtab_entr
// Shut down ethernet, in case it is already running
scc->scc_gsmr_l &= ~(QUICC_SCC_GSML_ENR | QUICC_SCC_GSML_ENT);
memset((void *)enet_pram, 0, sizeof(*enet_pram));
- TxBD = cyg_hal_allocBd(CYGNUM_DEVS_ETH_POWERPC_QUICC_TxNUM * sizeof(struct cp_bufdesc));
- RxBD = cyg_hal_allocBd(CYGNUM_DEVS_ETH_POWERPC_QUICC_RxNUM * sizeof(struct cp_bufdesc));
+ TxBD = _mpc8xx_allocBd(CYGNUM_DEVS_ETH_POWERPC_QUICC_TxNUM * sizeof(struct cp_bufdesc));
+ RxBD = _mpc8xx_allocBd(CYGNUM_DEVS_ETH_POWERPC_QUICC_RxNUM * sizeof(struct cp_bufdesc));
txbd = (struct cp_bufdesc *)((char *)eppc + TxBD);
rxbd = (struct cp_bufdesc *)((char *)eppc + RxBD);
qi->tbase = txbd;
qi->txbd = txbd;
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary at mlbassoc dot com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------