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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

API Call Reference List of APIs<br />

List of APIs<br />

MV-64360 General Driver<br />

Software Modules<br />

External Interface<br />

This chapter provides a detailed description of all functions.<br />

Note:<br />

• The term Input used in this chapter is a parameter that must<br />

be passed to the function.<br />

• The term Output used in this chapter is the result of the function.<br />

• The term Return used in this chapter is the value returned by<br />

the function.<br />

This driver functions as the lowest software interface to the MV-<br />

64360 registers and SDRAM accesses. All hardware register<br />

accesses and SDMA readings are completed by this API. To<br />

achieve better per<strong>for</strong>mance, most accesses are implemented using<br />

macro definition<br />

The driver is implemented in:<br />

gtCore.c: Data block read/write and register write mask bits.<br />

gtCore.h: Macro <strong>for</strong> read/write cacheable/non-cacheable<br />

char/short/word.<br />

The APIs <strong>for</strong> the external interface are listed here.<br />

Table 3:General Driver API Synopsis<br />

Macro Description<br />

REG_ADDR(offset) Returns the full address of a given register offset.<br />

REG_CONTENT(offset) Returns the register’s content.<br />

VIRTUAL_TO_PHY(ad<br />

dress)<br />

Meaningless <strong>for</strong> PPC CPUs.<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 - 3

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

Saved successfully!

Ooh no, something went wrong!