![]() |
| Home |
|
|
Function RTT_BIOS_ReadConfigDataThis function allows reading individual bytes, words, or dwords from the configuration space of a specific device:
int RTT_BIOS_ReadConfigData(BYTE Bus,
BYTE DeviceFunc,
int Register,
int Width,
void * Value);
ParametersBusBus number to read from. DeviceFuncDevice number in bits 7 .. 3 and the function number in bits 2 .. 0 for the device to read from. RegisterRegister to read from. Must be divisible by Width and cannot be larger than 255. WidthMay be 1, 2, or 4 for byte, word or dword access. ValueIf the function succeeds, the read data is returned at *Value. return valueRTT_BIOS_SUCCESSFUL or an error code, see section PCI BIOS.
|