summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_pci.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-04-29 06:22:41 +0000
committerimp <imp@FreeBSD.org>2005-04-29 06:22:41 +0000
commitd9ce4b2c6b9444f4cf964faf20dcc864467e2e4e (patch)
tree66bcb9a7b1e0f3498992bd9c27e63fc4bf68b1b2 /sys/dev/pci/pci_pci.c
parent5d1d05f88f46b975bf27d17ede89473dd6ed0472 (diff)
downloadFreeBSD-src-d9ce4b2c6b9444f4cf964faf20dcc864467e2e4e.zip
FreeBSD-src-d9ce4b2c6b9444f4cf964faf20dcc864467e2e4e.tar.gz
Add a detach for pci bridge and pci bus drivers. This allows one to
theoretically unload pci bridges or pci drivers. It will also allow detach to work if one needed to detach a subtree. This is inspired by looking at the p4 commits from bms to his 5.4 tree, but I didn't look at the final results.
Diffstat (limited to 'sys/dev/pci/pci_pci.c')
-rw-r--r--sys/dev/pci/pci_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 9971420..29a82e1 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -58,6 +58,7 @@ static device_method_t pcib_methods[] = {
/* Device interface */
DEVMETHOD(device_probe, pcib_probe),
DEVMETHOD(device_attach, pcib_attach),
+ DEVMETHOD(device_detach, bus_generic_detach),
DEVMETHOD(device_shutdown, bus_generic_shutdown),
DEVMETHOD(device_suspend, bus_generic_suspend),
DEVMETHOD(device_resume, bus_generic_resume),
OpenPOWER on IntegriCloud