summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_sis.c')
-rw-r--r--sys/pci/if_sis.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c
index dfbb560..05e9575 100644
--- a/sys/pci/if_sis.c
+++ b/sys/pci/if_sis.c
@@ -1094,23 +1094,6 @@ sis_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 SIS_USEIOSPACE
- if (!(command & PCIM_CMD_PORTEN)) {
- printf("sis%d: failed to enable I/O ports!\n", unit);
- error = ENXIO;
- goto fail;
- }
-#else
- if (!(command & PCIM_CMD_MEMEN)) {
- printf("sis%d: failed to enable memory mapping!\n", unit);
- error = ENXIO;
- goto fail;
- }
-#endif
rid = SIS_RID;
sc->sis_res = bus_alloc_resource(dev, SIS_RES, &rid,
OpenPOWER on IntegriCloud