C
URTISS
-W
RIGHT
C
ONTROLS
E
MBEDDED
C
OMPUTING
S
YSTEM
I
NTEGRATION
809524 R
EVISION
D F
EBRUARY
2009
4-13
uint32 regData;
uint32 regOffset = 0x10;
regData= Pmc605_pciP0ConfigRead(busNo,deviceNo,funcNo,regOffset,sizeof(uint32));
The above code translates to a PCI-P0 address as shown in Figure 4.6.
F
IGURE
4.6: Type 0 Configuration Cycle Example
In order to generate a Type 1 configuration cycle to access configuration space on a PCI bus
on the downstream side of a PCI to PCI bridge other than a PMC-605, the bus number must
be greater than zero. In this instance the values are passed straight through to the PCI-P0
bus as follows:
F
IGURE
4.7: Type 1 Configuration Cycle Example
0
0
0
0
Reserved
Bus No. = 0
Dev. No. = 1
Func.
No. = 0
Reg. No. =
0x10
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0
0
1
2
7
8
10
11
15
16
23
24
31
31
11 10
0
PCI-P0
address
1
0
0
1
Reserved
Bus No. = 1
Dev. No. = 0
Func.
No. = 0
Reg. No. =
0x10
0 0 0 0 0 0 1 0 0
0
1
2
7
8
10
11
15
16
23
24
31
31
11 10
0
15
16
23
24
0 0 0 0 1
0 0 0 0 0 0 0 1
Reserved
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com