PCI Configuration Method 1 functions
Marcel Sondaar
pci_type1.bas | PCI Configuration Method 1 functions |
Functions | |
PCI_type1_readbyte | Grabs a byte from PCI configuration space using configuration method 1 |
PCI_type1_readword | Grabs a 2-byte word from PCI configuration space using configuration method 1 |
PCI_type1_readdword | Grabs a 4-byte doubleword from PCI configuration space using configuration method 1 |
PCI_type1_writedword | Grabs a 4-byte doubleword from PCI configuration space using configuration method 1 |
Function PCI_type1_readbyte( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer ) As Unsigned Byte
Grabs a byte from PCI configuration space using configuration method 1
Bus | The PCI Bus index |
Device | The Device index of the bus |
Func | The subfunction of the device |
Offset | The base address to read from |
Return | The byte read from PCI |
Function PCI_type1_readword( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer ) As Unsigned Short
Grabs a 2-byte word from PCI configuration space using configuration method 1
Bus | The PCI Bus index |
Device | The Device index of the bus |
Func | The subfunction of the device |
Offset | The base address to read from |
Return | The word read from PCI |
Function PCI_type1_readdword( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer ) As Unsigned Integer
Grabs a 4-byte doubleword from PCI configuration space using configuration method 1
Bus | The PCI Bus index |
Device | The Device index of the bus |
Func | The subfunction of the device |
Offset | The base address to read from |
Return | The doubleword read from PCI |
Sub PCI_type1_writedword( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer, Value As Unsigned Integer )
Grabs a 4-byte doubleword from PCI configuration space using configuration method 1
Bus | The PCI Bus index |
Device | The Device index of the bus |
Func | The subfunction of the device |
Offset | The base address to read from |
Value | The value to write |
None
Grabs a byte from PCI configuration space using configuration method 1
Function PCI_type1_readbyte( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer ) As Unsigned Byte
Grabs a 2-byte word from PCI configuration space using configuration method 1
Function PCI_type1_readword( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer ) As Unsigned Short
Grabs a 4-byte doubleword from PCI configuration space using configuration method 1
Function PCI_type1_readdword( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer ) As Unsigned Integer
Grabs a 4-byte doubleword from PCI configuration space using configuration method 1
Sub PCI_type1_writedword( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Offset As Unsigned Integer, Value As Unsigned Integer )