diff options
author | imp <imp@FreeBSD.org> | 2005-07-27 06:38:55 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-07-27 06:38:55 +0000 |
commit | 06ac0362e7378543f7e90859b84a9907eecb2359 (patch) | |
tree | 7b1f1dac61d3337ca20e7d9807be67958739193b /sys | |
parent | eb5cee9b5609ae1b8055775b193740312ae8655b (diff) | |
download | FreeBSD-src-06ac0362e7378543f7e90859b84a9907eecb2359.zip FreeBSD-src-06ac0362e7378543f7e90859b84a9907eecb2359.tar.gz |
The 575A doesn't have funcregs in memio. So don't claim that it does.
This gets my 575A card probing.
Card provided by: James Flemer
MFC After: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/pci/if_xl.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c index 8e3096d..cca9d4e 100644 --- a/sys/pci/if_xl.c +++ b/sys/pci/if_xl.c @@ -1254,13 +1254,18 @@ xl_attach(device_t dev) if (did == TC_DEVICEID_HURRICANE_556B) sc->xl_flags |= XL_FLAG_NO_XCVR_PWR; + if (did == TC_DEVICEID_HURRICANE_575B || + did == TC_DEVICEID_HURRICANE_575C || + did == TC_DEVICEID_HURRICANE_656B || + did == TC_DEVICEID_TORNADO_656C) + sc->xl_flags |= XL_FLAG_FUNCREG; if (did == TC_DEVICEID_HURRICANE_575A || did == TC_DEVICEID_HURRICANE_575B || did == TC_DEVICEID_HURRICANE_575C || did == TC_DEVICEID_HURRICANE_656B || did == TC_DEVICEID_TORNADO_656C) - sc->xl_flags |= XL_FLAG_FUNCREG | XL_FLAG_PHYOK | - XL_FLAG_EEPROM_OFFSET_30 | XL_FLAG_8BITROM; + sc->xl_flags |= XL_FLAG_PHYOK | XL_FLAG_EEPROM_OFFSET_30 | + XL_FLAG_8BITROM; if (did == TC_DEVICEID_HURRICANE_656) sc->xl_flags |= XL_FLAG_FUNCREG | XL_FLAG_PHYOK; if (did == TC_DEVICEID_HURRICANE_575B) @@ -1326,7 +1331,7 @@ xl_attach(device_t dev) RF_ACTIVE); if (sc->xl_fres == NULL) { - device_printf(dev, "couldn't map ports/memory\n"); + device_printf(dev, "couldn't map funcreg memory\n"); error = ENXIO; goto fail; } |