find devices that have a specific Class Code
#include <sys/pci.h> int _CA_PCI_Find_Class( unsigned long ClassCode, unsigned index, unsigned *busnum, unsigned *devfuncnum );
This function determines the location of the nth PCI device or function that has the specified class code.
The arguments are as follows:
You can find all the devices having the same class code by making successive calls to this function, starting with an index of 0, and incrementing it until PCI_DEVICE_NOT_FOUND is returned. |
Intel
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
When you use the _CA_PCI_... functions:
_CA_PCI_BIOS_Present(), _CA_PCI_Find_Device(), _CA_PCI_GenerateSpecialCycle(), _CA_PCI_Read_Config_Byte(), _CA_PCI_Read_Config_DWord(), _CA_PCI_Read_Config_Word(), _CA_PCI_Write_Config_Byte(), _CA_PCI_Write_Config_DWord(), _CA_PCI_Write_Config_Word()