Table of Contents
The set of functions are used for managing PCI devices. The function is used to read data from the PCI configuration space of the device at offset with specifying the size of the access. The function is used to write the value to the PCI configuration space of the device at offset with specifying the size of the access. The function enables PCI bus mastering for the device by setting the bit in the register. The function clears this bit. The function enables memory or I/O port address decoding for the device by setting the or bit in the register appropriately. The function clears the appropriate bit. The argument specifies which resource is affected; this can be either or as appropriate. These functions should be used in preference to manually manipulating the configuration space. The function returns the current ACPI power state of the device If the device does not support power management capabilities, then the default state of is returned. The following power states are defined by ACPI: State in which device is on and running. It is receiving full power from the system and delivering full functionality to the user. 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. Class-specific low-power state in which device context may or may not be lost. Attains greater power savings than Busses in this state can cause devices to lose some context. Devices be prepared for the bus to be in this state or higher. State in which the device is off and not running. Device context is lost, and power from the device can be removed. State of the device is unknown. The function is used to transition the device to the ACPI power 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 is set. The function looks up the of a PCI device, given its and The 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. Note that in case the system has multiple PCI domains, the function only searches the first one. Actually, it is equivalent to: pci_find_dbsf(0, bus, slot, func); The function looks up the of a PCI device, given its and The 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 function looks up the of a PCI device, given its and IDs. Note that there can be multiple matches for this search; this function only returns the first matching device.
The type varies according to the size of the PCI bus address space on the target architecture.
This manual page was written by
The kernel PCI code has a number of references to 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.
Table of Contents
Książki warte zainteresowania