PCI_accessReg
Function to read/write values to PCI congfiguration space registers
Declaration
ulong PCIAPI PCI_accessReg(
int index,
ulong value,
int func,
PCIDeviceInfo *info)
Prototype In
pcilib.h
Parameters
index |
Index of the register to access |
value |
Value to write to the register for write access |
func |
Function to implement (PCIAccessRegFlags) |
info |
PCI device information block for device to access |
Return Value
The value read from the register for read operations
Description
This function can be used to read or write, BYTE, WORD and DWORD values to and from PCI configuration space registers. Please refer to the PCIAccessRegFlags type for the different operations supported. The PCI device that is accessed is the one described by the PCIDeviceInfo structure passed in the info parameter (or more correctly the PCIslot value stored within this structure).
See Also
PCI_getNumDevices, PCI_enumerate, PCI_accessReg, PCI_readRegBlock PCI_writeRegBlock
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com