[Previous]
[Contents]
[Next]

_CA_PCI_Write_Config_Byte()

write individual bytes to the configuration space of a device

Synopsis:

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

Description:

This function writes individual bytes to the configuration space of the specified device.

The arguments are as follows:

busnum
the bus number
devfuncnum
the device or function ID The device number is in bits 7 through 3, and the function number in bits 2 through 0.
offset
the register offset into the configuration space, in the range 0 through 255
cnt
the number of bytes to write
bufptr
a pointer to a buffer containing the data to be written into the configuration space

Returns:

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

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_Byte(), _CA_PCI_Read_Config_DWord(), _CA_PCI_Read_Config_Word(), _CA_PCI_Write_Config_DWord(), _CA_PCI_Write_Config_Word()


[Previous]
[Contents]
[Next]