summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/cardbus/cardbus_cis.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c
index c313745..d6cf069 100644
--- a/sys/dev/cardbus/cardbus_cis.c
+++ b/sys/dev/cardbus/cardbus_cis.c
@@ -307,6 +307,11 @@ DECODE_PROTOTYPE(bar)
resource_list_add(&dinfo->pci.resources, type, bar, 0UL, ~0UL, len);
+ /*
+ * Mark the appropriate bit in the PCI command register so that
+ * device drivers will know which BARs can be used.
+ */
+ pci_enable_io(child, type);
return (0);
}
OpenPOWER on IntegriCloud