beautypg.com

A.3 configuration register types, A.4 primitives, A.3 configuration register types a.4 primitives – Teledyne LeCroy SimPASS PE PCI Express Software User Manual User Manual

Page 110

background image

Appendix A: Configuration Space Decoding

SimPASS PE Software User Manual

104

LeCroy Corporation

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.