Mercurial > ecos
changeset 1613:dac7a13ce86e
* src/if_8139.c:
add known device 0x11db/0x1234 from Dreamcast Broadband Adapter.
add Platform depend Initialize entry.
| author | jlarmour |
|---|---|
| date | Thu, 29 Apr 2004 04:12:12 +0000 |
| parents | 72d9b04de01a |
| children | 7c0a7354a758 |
| files | packages/devs/eth/rltk/8139/current/ChangeLog packages/devs/eth/rltk/8139/current/src/if_8139.c |
| diffstat | 2 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/devs/eth/rltk/8139/current/ChangeLog +++ b/packages/devs/eth/rltk/8139/current/ChangeLog @@ -1,3 +1,9 @@ +2004-04-21 Yoshinori Sato <ysato@users.sourceforge.jp> + + * src/if_8139.c: + add known device 0x11db/0x1234 from Dreamcast Broadband Adapter. + add Platform depend Initialize entry. + 2003-11-21 Gary Thomas <gary@mlbassoc.com> * src/if_8139.c: Use cyg_drv_isr_lock/unlock functions for ISR
--- a/packages/devs/eth/rltk/8139/current/src/if_8139.c +++ b/packages/devs/eth/rltk/8139/current/src/if_8139.c @@ -136,6 +136,10 @@ #include CYGDAT_DEVS_ETH_RLTK_8139_INL #endif +#ifndef CYGHWR_RLTK_8139_PLF_INIT +#define CYGHWR_RLTK_8139_PLF_INIT(sc) do {} while(0) +#endif + /* * If software cache coherency is required, the HAL_DCACHE_INVALIDATE * hal macro must be defined as well. @@ -270,10 +274,11 @@ static inline cyg_uint32 INL(cyg_uint32 * Table of all known PCI device/vendor ID combinations for the RealTek 8139. * Add them as you get to know them. */ -#define CYGNUM_DEVS_ETH_RLTK_8139_KNOWN_ALIASES 1 +#define CYGNUM_DEVS_ETH_RLTK_8139_KNOWN_ALIASES 2 static pci_identifier_t known_8139_aliases[CYGNUM_DEVS_ETH_RLTK_8139_KNOWN_ALIASES] = { - { 0x10ec, 0x8139, NULL } /* This is the offical RealTek vendor/device code */ + { 0x10ec, 0x8139, NULL }, /* This is the offical RealTek vendor/device code */ + { 0x11db, 0x1234, NULL} /* SEGA DreamCast BroadBandAdapter */ }; @@ -610,6 +615,9 @@ rltk8139_init(struct cyg_netdevtab_entry return false; } + /* platform depends initialize */ + CYGHWR_RLTK_8139_PLF_INIT(sc); + /* * The initial tx threshold is set here to prevent it from being reset * with every _start().
