20.12.2012 Views

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

API Call Reference List of APIs<br />

PCI Devices Configuration<br />

– PCI1_MEM1 default address space is 0x24000000 to<br />

0x25FFFFFF (32 Mbyte).<br />

If there is a GalNet device on both PCI0 and PCI1, the address<br />

space 0x08000000 to 0x10000000 is.divided into two PCIs:<br />

– PCI0_MEM1 gets address space 0x08000000 to 0x0BFFFFFF<br />

(64 Mbyte).<br />

– PCI1_MEM1 gets address space 0x0C000000 to 0x0FFFFFFF<br />

(64 Mbyte).<br />

f there is a GalNet device on PCI0 only, the address space<br />

0x08000000 to 0x10000000 is dedicated to PCI0:<br />

– PCI0_MEM1 gets address space 0x08000000 to 0x0FFFFFFF<br />

(128 Mbyte).<br />

– PCI1_MEM1 default address space 0x24000000 to<br />

0x25FFFFFF (32 Mbyte).<br />

If there is a GalNet device on PCI1 only, the address space<br />

0x08000000 to 0x10000000 is dedicated to PCI1:<br />

– PCI0_MEM1 default address space 0xF2000000 to<br />

0xF3FFFFFF (32 Mbyte).<br />

– PCI1_MEM1 gets address space 0x08000000 to 0x0FFFFFFF<br />

(128 Mbyte).<br />

In this phase, the data structures are scanned and each PCI device<br />

is configured. The configuration cycle is divided into two parts:<br />

GalNet devices configuration where the GalNetMappingArray<br />

is scanned and each GalNet device is configured.<br />

Other PCI devices configuration where the pciDeviceArray<br />

is scanned and each PCI device is configured.<br />

This driver is designed to deal with both PCI0 and PCI1. To refer<br />

to any PCI (0/1) the pciActivePci() routine is called. This routine<br />

sets the pciConfigLib with the appropriate read/write routine<br />

(according to the routine's argument).<br />

For example, in case of the PCI in question is PCI1, the routine set:<br />

frcpciConfigRead = (FUNCPTR)pci1GetConfigReg;<br />

<strong>for</strong> PCI1 read transactions<br />

frcpciConfigWrite = (FUNCPTR)pci1SetConfigReg;<br />

<strong>for</strong> PCI1 write transactions<br />

VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong> 5 - 19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!