summaryrefslogtreecommitdiffstats
path: root/sys/dev/hea/hea_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hea/hea_pci.c')
-rw-r--r--sys/dev/hea/hea_pci.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/dev/hea/hea_pci.c b/sys/dev/hea/hea_pci.c
index 8432f58..8d40b48 100644
--- a/sys/dev/hea/hea_pci.c
+++ b/sys/dev/hea/hea_pci.c
@@ -154,19 +154,6 @@ hea_pci_attach (dev)
error = 0;
pci_enable_busmaster(dev);
- pci_enable_io(dev, SYS_RES_MEMORY);
-
- command = pci_read_config(dev, PCIR_COMMAND, 2);
- if ((command & PCIM_CMD_BUSMASTEREN) == 0) {
- device_printf(dev, "Unable to enable PCI busmastering.\n");
- error = ENXIO;
- goto fail;
- }
- if ((command & PCIM_CMD_MEMEN) == 0) {
- device_printf(dev, "Unable to enable PCI memory resources.\n");
- error = ENXIO;
- goto fail;
- }
sc->mem_rid = PCIR_MAPS;
sc->mem_type = SYS_RES_MEMORY;
OpenPOWER on IntegriCloud