PCI Utility Functions
Marcel Sondaar
pci_util.bas | PCI Utility Functions |
Functions | |
PCI_bar_readaddress | Returns the address contained in a specific Base Address Register |
PCI_bar_readmask | Returns the size mask for the selected Base Address Register |
Function PCI_bar_readaddress( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Bar As Unsigned Integer ) As Unsigned Integer
Returns the address contained in a specific Base Address Register
Bus | The PCI Bus index |
Device | The Device index of the bus |
Func | The subfunction of the device |
Bar | The base address register to read |
Return | The offset for the current BAR |
Function PCI_bar_readmask( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Bar As Unsigned Integer ) As Unsigned Integer
Returns the size mask for the selected Base Address Register
Bus | The PCI Bus index |
Device | The Device index of the bus |
Func | The subfunction of the device |
Bar | The base address register to read |
Return | The offset for the current BAR |
Returns the address contained in a specific Base Address Register
Function PCI_bar_readaddress( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Bar As Unsigned Integer ) As Unsigned Integer
Returns the size mask for the selected Base Address Register
Function PCI_bar_readmask( ByVal Bus As Unsigned Integer, ByVal Device As Unsigned Integer, ByVal Func As Unsigned Integer, ByVal Bar As Unsigned Integer ) As Unsigned Integer