diff options
Diffstat (limited to 'sys/dev/sf/if_sf.c')
-rw-r--r-- | sys/dev/sf/if_sf.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index ea3cf3e..a7ebb01 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -672,7 +672,6 @@ sf_attach(dev) device_t dev; { int i; - u_int32_t command; struct sf_softc *sc; struct ifnet *ifp; int unit, rid, error = 0; @@ -710,23 +709,6 @@ sf_attach(dev) * Map control/status registers. */ pci_enable_busmaster(dev); - pci_enable_io(dev, SYS_RES_IOPORT); - pci_enable_io(dev, SYS_RES_MEMORY); - command = pci_read_config(dev, PCIR_COMMAND, 4); - -#ifdef SF_USEIOSPACE - if (!(command & PCIM_CMD_PORTEN)) { - printf("sf%d: failed to enable I/O ports!\n", unit); - error = ENXIO; - goto fail; - } -#else - if (!(command & PCIM_CMD_MEMEN)) { - printf("sf%d: failed to enable memory mapping!\n", unit); - error = ENXIO; - goto fail; - } -#endif rid = SF_RID; sc->sf_res = bus_alloc_resource(dev, SF_RES, &rid, |