A.3 configuration register types, A.4 primitives, A.3 configuration register types a.4 primitives – Teledyne LeCroy PETracer ProtoSync Software User Manual User Manual
Page 138
![background image](/manuals/353567/138/background.png)
Appendix A: Configuration Space Decoding
PETracer Software User Manual
132
Teledyne LeCroy
A.3 Configuration Register Types
The following reserved variables are defined global constants.
•
CFGREG_UNDEFINED
•
CFGREG_HWINIT
•
CFGREG_RO
•
CFGREG_RW
•
CFGREG_RW1C
•
CFGREG_ROS
•
CFGREG_RWS
•
CFGREG_RW1CS
•
CFGREG_RSVDP
•
CFGREG_RSVDZ
Note: These reserved variables match the Configuration Register Types of Table 7-2 in
Section 7.4 of the PCI Express Base Specification, Rev. 2.1.
A.4 Primitives
Decoding uses the following primitives.
GetRegisterField( dword_offset, bit_offset, field_length )
This function returns a register field of length field_length, starting at bit position
bit_offset in DWORD dword_offset.
•
dword_offset: DWORD offset of the register field location
•
bit_offset: Bit offset of the register field location
•
field_length: Length of the register field
For example, GetRegisterField( 1, 9, 2 ); means: Go to DWORD 1, bit offset 9, and
returns 2 bits.