# HG changeset patch # User jlarmour # Date 1083211932 0 # Node ID dac7a13ce86ea5bca123c75af0d3ef7e89b2e115 # Parent 72d9b04de01a9c0bc8264cf24090cb7346b19884 * src/if_8139.c: add known device 0x11db/0x1234 from Dreamcast Broadband Adapter. add Platform depend Initialize entry. diff --git a/packages/devs/eth/rltk/8139/current/ChangeLog b/packages/devs/eth/rltk/8139/current/ChangeLog --- 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 + + * src/if_8139.c: + add known device 0x11db/0x1234 from Dreamcast Broadband Adapter. + add Platform depend Initialize entry. + 2003-11-21 Gary Thomas * src/if_8139.c: Use cyg_drv_isr_lock/unlock functions for ISR diff --git a/packages/devs/eth/rltk/8139/current/src/if_8139.c b/packages/devs/eth/rltk/8139/current/src/if_8139.c --- 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().