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 Revert previous change. The magical constants can't be changed 2015-06-06 17:04:36 +00:00
fixup_pci.c
hostb_pci.c Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
ignore_pci.c Revert previous change. The magical constants can't be changed 2015-06-06 17:04:36 +00:00
isa_pci.c Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
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 Add accessor methods to fetch the BAR holding the MSI-X table and PBA. 2015-12-23 21:51:10 +00:00
pci_iov_if.m Create a separate kobj interface for leaf-driver PCI IOV methods. 2015-05-28 22:01:50 +00:00
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 Create a separate kobj interface for leaf-driver PCI IOV methods. 2015-05-28 22:01:50 +00:00
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 drop a bunch of white space at end of lines and end of files... 2015-10-18 08:13:51 +00:00
pcib_private.h Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
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