summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_private.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-01-05 20:42:25 +0000
committerjhb <jhb@FreeBSD.org>2010-01-05 20:42:25 +0000
commit2dd11a3eaaa7e7f9ee8766d13f00bfef1766ff90 (patch)
treede14655cb75970d20c9f5724184782b10b6a3cae /sys/dev/pci/pci_private.h
parenta0dce5cf22b7c2ceef7a745abd732f54a5447b7c (diff)
downloadFreeBSD-src-2dd11a3eaaa7e7f9ee8766d13f00bfef1766ff90.zip
FreeBSD-src-2dd11a3eaaa7e7f9ee8766d13f00bfef1766ff90.tar.gz
Move the PCI-specific logic of removing a cardbus device into a
pci_delete_child() function called by the cardbus driver. The new function uses resource_list_unreserve() to release the BARs decoded by the device being removed. Reviewed by: imp Tested by: brooks
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r--sys/dev/pci/pci_private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index 1cb28e9..2240b4f 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -43,6 +43,7 @@ void pci_add_children(device_t dev, int domain, int busno,
void pci_add_child(device_t bus, struct pci_devinfo *dinfo);
void pci_add_resources(device_t bus, device_t dev, int force,
uint32_t prefetchmask);
+void pci_delete_child(device_t dev, device_t child);
void pci_driver_added(device_t dev, driver_t *driver);
int pci_print_child(device_t dev, device_t child);
void pci_probe_nomatch(device_t dev, device_t child);
OpenPOWER on IntegriCloud