diff options
author | John Baldwin <jhb@FreeBSD.org> | 2010-01-05 20:42:25 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2010-01-05 20:42:25 +0000 |
commit | af827f96428cc9f789028215d2232b76ba039d99 (patch) | |
tree | de14655cb75970d20c9f5724184782b10b6a3cae /sys/dev/pci/pci_private.h | |
parent | 18c2d3f2451d531f91d6a7d6d3533168aac24639 (diff) | |
download | src-af827f96428cc9f789028215d2232b76ba039d99.tar.gz src-af827f96428cc9f789028215d2232b76ba039d99.zip |
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
Notes
Notes:
svn path=/head/; revision=201609
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r-- | sys/dev/pci/pci_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h index 1cb28e924937..2240b4f2c0d8 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); |