freebsd-dev/sys/dev/pci
John Baldwin 64de80195b Add a new device control utility for new-bus devices called devctl. This
allows the user to request administrative changes to individual devices
such as attach or detaching drivers or disabling and re-enabling devices.
- Add a new /dev/devctl2 character device which uses ioctls for device
  requests.  The ioctls use a common 'struct devreq' which is somewhat
  similar to 'struct ifreq'.
- The ioctls identify the device to operate on via a string.  This
  string can either by the device's name, or it can be a bus-specific
  address.  (For unattached devices, a bus address is the only way to
  locate a device.)  Bus drivers register an eventhandler to claim
  unrecognized device names that the driver recognizes as a valid address.
  Two buses currently support addresses: ACPI recognizes any device
  in the ACPI namespace via its full path starting with "\" and
  the PCI bus driver recognizes an address specification of
  'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector
  strings supported by pciconf).
- To make it easier to cut and paste, change the PnP location string
  in the PCI bus driver to output a full PCI selector string rather
  than 'slot=<slot> function=<func>'.
- Add a devctl(3) interface in libdevctl which provides a wrapper around
  the ioctls and is the preferred interface for other userland code.
- Add a devctl(8) program which is a simple wrapper around the requests
  supported by devctl(3).
- Add a device_is_suspended() function to check DF_SUSPENDED.
- Add a resource_unset_value() function that can be used to remove a
  hint from the kernel environment.  This is used to clear a
  hint.<driver>.<unit>.disabled hint when re-enabling a boot-time
  disabled device.

Reviewed by:	imp (parts)
Requested by:	imp (changing PCI location string)
Relnotes:	yes
2015-02-06 16:09:01 +00:00
..
eisa_pci.c
fixup_pci.c Use device_printf(). 2013-08-11 06:57:57 +00:00
hostb_pci.c
ignore_pci.c
isa_pci.c
pci_if.m pci: add a new pci_child_added newbus method. 2014-08-22 15:05:51 +00:00
pci_pci.c Pass a valid Dx state variable to PCIB_POWER_FOR_SLEEP() in pcib_resume() 2015-01-25 19:53:09 +00:00
pci_private.h Stage one of multipass suspend/resume 2014-09-23 02:56:40 +00:00
pci_subr.c Add support for managing PCI bus numbers. As with BARs and PCI-PCI bridge 2014-02-12 04:30:37 +00:00
pci_user.c Add support for displaying VPD for PCI devices via pciconf. 2014-01-20 20:56:09 +00:00
pci.c Add a new device control utility for new-bus devices called devctl. This 2015-02-06 16:09:01 +00:00
pcib_if.m Be consistent with the whitespace in the rest of these files. 2014-04-29 20:49:47 +00:00
pcib_private.h Add support for PCIe ARI 2014-04-01 16:02:02 +00:00
pcib_support.c Add missing copyright date. 2014-04-01 17:35:31 +00:00
pcireg.h Add IOMMU PCI subclass, found on Tyan S8236 motherboard. 2014-05-20 14:39:22 +00:00
pcivar.h pci: add a new pci_child_added newbus method. 2014-08-22 15:05:51 +00:00
vga_pci.c Remove ia64. 2014-07-07 00:27:09 +00:00