|
| ||||||||||||||||||||
| PCI_POWERSTATE_D0 | State in which device is on and running. It is receiving full power from the system and delivering full functionality to the user. |
| PCI_POWERSTATE_D1 | Class-specific low-power state in which device context may or may not be lot. Busses in this state cannot do anything to the bus, to force devices to lose context. |
| PCI_POWERSTATE_D2 | Class-specific low-power state in which device context may or may not be lost. Attains greater power savings than PCI_POWERSTATE_D1. Busses in this state can cause devices to lose some context. Devices must be prepared for the bus to be in this state or higher. |
| PCI_POWERSTATE_D3 | State in which the device is off and not running. Device context is lost, and power from the device can be removed. |
| PCI_POWERSTATE_UNKNOWN | |
| State of the device is unknown. | |
The pci_set_powerstate function is used to transition the device dev to the ACPI power state state. It checks to see if the device is PCI 2.2 compliant. If so, it checks the capabilities pointer to determine which power states the device supports. If the device does not have power management capabilities, the default state of PCI_POWERSTATE_D0 is set.
The
pci_find_bsf
function looks up the
.Vt device_t
of a PCI device, given its
bus,
slot,
and
func.
The
slot
number actually refers to the number of the device on the bus,
which does not necessarily indicate its geographic location
in terms of a physical slot.
The
pci_find_device
function looks up the
.Vt device_t
of a PCI device, given its
vendor
and
device
IDs.
Note that there can be multiple matches for this search; this function
only returns the first matching device.
The
.Vt pci_addr_t type varies according to the size of the PCI bus address space on the target architecture.
pci(4), pciconf(8), bus_alloc_resource(9), bus_dma(9), bus_release_resource(9), bus_setup_intr(9), bus_teardown_intr(9), devclass(9), device(9), driver(9), rman(9)
.Rs NewBus
.Re
.Rs
.Re
This manual page was written by
.An Bruce M Simpson Aq bms@FreeBSD.org .
The kernel PCI code has a number of references to "slot numbers". These do not refer to the geographic location of PCI devices, but to the device number assigned by the combination of the PCI IDSEL mechanism and the platform firmware. This should be taken note of when working with the kernel PCI code.
| January 22, 2005 | PCI (9) |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.