mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 18:41:59 +08:00
bsp/motorola_powerpc: Add dc and ukphy support
- Add the dc net dev to the BSP - Add the ukphy support Closes # 4246
This commit is contained in:
@@ -156,6 +156,10 @@ MODULE_DEPEND(dc, miibus, 1, 1, 1);
|
||||
* Various supported device vendors/types and their names.
|
||||
*/
|
||||
static const struct dc_type dc_devs[] = {
|
||||
#ifdef __rtems__
|
||||
{ DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21140A), 0,
|
||||
"Intel 21140A 10/100BaseTX" },
|
||||
#endif /* __rtems__ */
|
||||
{ DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21143), 0,
|
||||
"Intel 21143 10/100BaseTX" },
|
||||
{ DC_DEVID(DC_VENDORID_DAVICOM, DC_DEVICEID_DM9009), 0,
|
||||
@@ -2076,6 +2080,9 @@ dc_attach(device_t dev)
|
||||
dc_eeprom_width(sc);
|
||||
|
||||
switch (sc->dc_info->dc_devid) {
|
||||
#ifdef __rtems__
|
||||
case DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21140A):
|
||||
#endif /* __rtems__ */
|
||||
case DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21143):
|
||||
sc->dc_type = DC_TYPE_21143;
|
||||
sc->dc_flags |= DC_TX_POLL | DC_TX_USE_TX_INTR;
|
||||
|
@@ -824,6 +824,13 @@ struct dc_softc {
|
||||
*/
|
||||
#define DC_VENDORID_DEC 0x1011
|
||||
|
||||
#ifdef __rtems__
|
||||
/*
|
||||
* DEC/Intel 21140 PCI device ID
|
||||
*/
|
||||
#define DC_DEVICEID_21140A 0x0009
|
||||
|
||||
#endif /* __rtems__ */
|
||||
/*
|
||||
* DEC/Intel 21143 PCI device ID
|
||||
*/
|
||||
|
Reference in New Issue
Block a user