
O
UTREACH
PCI/PMC E
XPANSION
S
YSTEM
U
SER
’
S
M
ANUAL
C
URTISS
-W
RIGHT
C
ONTROLS
E
MBEDDED
C
OMPUTING
4-10
809524 R
EVISION
D F
EBRUARY
2009
The parameters to set up the translated base registers are as follows:
/*Set the Downstream I/O or Mem. 1 Translated Base Register to translate addresses
decoded by the Primary Downstream I/O or Mem. 1 BAR to RAM addresses starting at
0x100000 on the SBC*/
PciConfigWrite(busNo, deviceNo,functionNo,0x98,0x100000,sizeof(uint32));
/*Set the Upstream I/O or Memory 1 Translated Base Register to translate addresses
decoded by the Secondary Upstream I/O or Mem. 1 BAR to PCI-P0 I/O base address 0x0*/
PciConfigWrite(busNo, deviceNo,functionNo,0xA4,0x0,sizeof(uint32));
/*Set the Upstream Memory 1 Translated Base Register to translate addresses decoded by
the Secondary Upstream Memory 1 BAR to PCI-P0 memory base address 0x0*/
PciConfigWrite(busNo, deviceNo,functionNo,0xA8,0x0,sizeof(uint32));
Cross Reference
Your SBC’s Programmer’s Reference Manual provides details of the System Memory Map
showing the address of the RAM as seen by a local PCI bus Master.
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com