freebsd-skq/sys/sparc64
jhb 01f4e87387 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
..
central Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
conf Fix whitespace on addition of IPSEC option 2015-11-26 21:35:50 +00:00
ebus Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
fhc Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
include POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
isa Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it. 2016-02-20 01:32:58 +00:00
pci Convert pci_delete_child() to a bus_child_deleted() method. 2016-04-06 04:10:22 +00:00
sbus Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
sparc64 Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00