[Previous]
[Contents]
[Next]

_CA_PCI_Read_Config_Byte()

read a byte from the configuration space of a device

Synopsis:

#include <sys/pci.h>
int _CA_PCI_Read_Config_Byte( unsigned busnum,
                              unsigned devfuncname,
                              unsigned offset,
                              unsigned cnt,
                              char *bufptr );

Description:

This function reads the specified number of bytes from the configuration space of the given device or function.

The arguments are as follows:

busnum
the bus number
devfuncname
the name of the device or function
offset
the register offset into the configuration space, in the range 0 through 255
cnt
the number of bytes to read
bufptr
a pointer to a buffer where the requested bytes are placed

Returns:

PCI_SUCCESS
the device or function was found
PCI_BAD_REGISTER_NUMBER
an invalid register offset was given

Examples:

See _CA_PCI_Find_Device().

Classification:

Intel

Safety:
Interrupt handler No
Signal handler No
Thread No

Caveats:

When you use the _CA_PCI_... functions:

See also:

_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()


[Previous]
[Contents]
[Next]