
O
UTREACH
PCI/PMC E
XPANSION
S
YSTEM
U
SER
’
S
M
ANUAL
C
URTISS
-W
RIGHT
C
ONTROLS
E
MBEDDED
C
OMPUTING
4-12
809524 R
EVISION
D F
EBRUARY
2009
PCI-P0 C
ONFIGURATION
S
PACE
A
DDRESSING
Table 4.2 shows the address map for the PCI-P0 Configuration Space.
PCI-P0 slots are numbered from left to right when viewed from the front of the chassis. That
is, slot 1 is the left-most slot in the PCI-P0 backplane. The address bit set to one represents
the PCI IDSEL# signal.
For configuration Type 0 cycles, the upper 21 address bits of the configuration address select
the slot and the lower 11 bits determine the function number of the device and register offset
within that function for the selected slot. Refer to the PCI specification 2.2 for an explanation
of Type 0 and 1 configuration cycles.
A
DDRESSING
E
XAMPLE
Suppose you wish to read the Primary CSR and Downstream Memory 0 Base Address
Register (BAR) on the PMC-605 in slot 2. Using the PMC-605 service
Pmc605_pciPoConfigRead, you would construct the address as follows:
#include pmc605.h
#include dy4std.h
:
uint32 busNo = 0;
uint32 deviceNo = 1;
uint32 funcNo = 0;
T
ABLE
4.2:
PCI-P0 Configuration Space Address Map
PCI-P0 Slot No.
Configuration Space Address
Device Number
1
0x800000000
0
2
0x400000000
1
3
0x200000000
2
4
0x100000000
3
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com