Module libif:pciutils
}}} - RMoX PCI utility procedures
RMoX PCI utility procedures. This file (libif/pciutils.occ) contains various PCI related procedures e.g. for reading configuration words/bytes/etc.
For dynamically loaded code: #INCLUDE "pciutils_if.inc"
For statically linked code: #USE "libif/pciutils"
Index
-
Process
pci.read.config.byte- Reads a PCI configuration BYTE (8-bits) -
Process
pci.read.config.dword- Reads a PCI configuration DWORD (32-bits) -
Process
pci.read.config.word- Reads a PCI configuration WORD (16-bits) -
Process
pci.write.config.byte- Writes a PCI configuration BYTE (8-bits) -
Process
pci.write.config.dword- Writes a PCI configuration DWORD (32-bits) -
Process
pci.write.config.word- Writes a PCI configuration WORD (16-bits)
Declarations
pciutils.occ:56Process pci.read.config.dword
PROC pci.read.config.dword (SHARED CT.BLOCK! pci.dev, BOOL ok, VAL INT index, RESULT INT32 result)
Reads a PCI configuration DWORD (32-bits).
Parameters:
SHARED CT.BLOCK! |
pci.dev |
PCI device. |
BOOL |
ok |
Test and set success (if FALSE on entry, does nothing). |
VAL INT |
index |
DWORD to read. |
RESULT INT32 |
result |
Resulting DWORD if read successfully, else zero. |
pciutils.occ:84Process pci.read.config.word
PROC pci.read.config.word (SHARED CT.BLOCK! pci.dev, BOOL ok, VAL INT index, RESULT INT16 result)
Reads a PCI configuration WORD (16-bits).
Parameters:
SHARED CT.BLOCK! |
pci.dev |
PCI device. |
BOOL |
ok |
Test and set success (if FALSE on entry, does nothing). |
VAL INT |
index |
WORD to read. |
RESULT INT16 |
result |
Resulting WORD if read successfully, else zero. |
pciutils.occ:112Process pci.read.config.byte
PROC pci.read.config.byte (SHARED CT.BLOCK! pci.dev, BOOL ok, VAL INT index, RESULT BYTE result)
Reads a PCI configuration BYTE (8-bits).
Parameters:
SHARED CT.BLOCK! |
pci.dev |
PCI device. |
BOOL |
ok |
Test and set success (if FALSE on entry, does nothing). |
VAL INT |
index |
BYTE to read. |
RESULT BYTE |
result |
Resulting BYTE if read successfully, else zero. |
pciutils.occ:140Process pci.write.config.dword
PROC pci.write.config.dword (SHARED CT.BLOCK! pci.dev, BOOL ok, VAL INT index, VAL INT32 value)
Writes a PCI configuration DWORD (32-bits).
Parameters:
SHARED CT.BLOCK! |
pci.dev |
PCI device. |
BOOL |
ok |
Test and set success (if FALSE on entry, does nothing). |
VAL INT |
index |
DWORD to write. |
VAL INT32 |
value |
Value to write. |
pciutils.occ:172Process pci.write.config.word
PROC pci.write.config.word (SHARED CT.BLOCK! pci.dev, BOOL ok, VAL INT index, VAL INT16 value)
Writes a PCI configuration WORD (16-bits).
Parameters:
SHARED CT.BLOCK! |
pci.dev |
PCI device. |
BOOL |
ok |
Test and set success (if FALSE on entry, does nothing). |
VAL INT |
index |
WORD to write. |
VAL INT16 |
value |
Value to write. |
pciutils.occ:204Process pci.write.config.byte
PROC pci.write.config.byte (SHARED CT.BLOCK! pci.dev, BOOL ok, VAL INT index, VAL BYTE value)
Writes a PCI configuration BYTE (8-bits).
Parameters:
SHARED CT.BLOCK! |
pci.dev |
PCI device. |
BOOL |
ok |
Test and set success (if FALSE on entry, does nothing). |
VAL INT |
index |
BYTE to write. |
VAL BYTE |
value |
Value to write. |