freebsd-nq/sys/dev/pci
John Baldwin 496dfa89a6 Convert pci_delete_child() to a bus_child_deleted() method.
Instead of providing a wrapper around device_delete_child() that the PCI
bus and child bus drivers must call explicitly, move the bulk of the logic
from pci_delete_child() into a bus_child_deleted() method
(pci_child_deleted()).  This allows PCI devices to be safely deleted via
device_delete_child().
- Add a bus_child_deleted method to the ACPI PCI bus which clears the
  device_t associated with the corresponding ACPI handle in addition to
  the normal PCI bus cleanup.
- Change cardbus_detach_card to call device_delete_children() and move
  CardBus-specific delete logic into a new cardbus_child_deleted() method.
- Use device_delete_child() instead of pci_delete_child() in the SRIOV code.
- Add a bus_child_deleted method to the OpenFirmware PCI bus drivers which
  frees the OpenFirmware device info for each PCI device.

Reviewed by:	imp
Tested on:	amd64 (CardBus and PCI-e hotplug)
Differential Revision:	https://reviews.freebsd.org/D5831
2016-04-06 04:10:22 +00:00
..
eisa_pci.c
fixup_pci.c
hostb_pci.c
ignore_pci.c
isa_pci.c
pci_host_generic.c Convert the printfs here from %lx to %jx as well after r297000 in order 2016-03-18 19:36:43 +00:00
pci_host_generic.h Restore ThunderX Pass1.1 PCI changes removed by r295962 2016-02-26 12:16:11 +00:00
pci_if.m
pci_iov_if.m
pci_iov_private.h Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
pci_iov_schema.c Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
pci_iov.c Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
pci_iov.h
pci_pci.c Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
pci_private.h Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
pci_subr.c Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
pci_user.c Fix syntax error introduced in previous commit where I removed one 2016-02-19 16:53:21 +00:00
pci.c Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
pcib_if.m
pcib_private.h
pcib_support.c
pcireg.h Add support for Enhanced Allocation in pciconf 2016-02-26 08:35:04 +00:00
pcivar.h Support for Enhanced Allocation in PCI 2016-03-02 09:54:58 +00:00
schema_private.h Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
vga_pci.c Replace all resource occurrences of '0UL/~0UL' with '0/~0'. 2016-03-03 05:07:35 +00:00