read a byte from the configuration space of a device
#include <sys/pci.h> int _CA_PCI_Read_Config_Byte( unsigned busnum, unsigned devfuncname, unsigned offset, unsigned cnt, char *bufptr );
This function reads the specified number of bytes from the configuration space of the given device or function.
The arguments are as follows:
Intel
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
When you use the _CA_PCI_... functions:
_CA_PCI_BIOS_Present(), _CA_PCI_Find_Class(), _CA_PCI_Find_Device(), _CA_PCI_GenerateSpecialCycle(), _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()