Resources: Introduce new IpcMemory module
authorJuan Gutierrez <jgutierrez@ti.com>
Fri, 2 Dec 2011 17:23:43 +0000 (11:23 -0600)
committerSuman Anna <s-anna@ti.com>
Sat, 17 Dec 2011 02:17:18 +0000 (20:17 -0600)
commit57d6a2b4d8cb23529ef7cc33ec4dee0efe185529
treed409c5dbdef961fd8c68e74cfd1cc48def19c11c
parent9e58b56363d05097183d3e49ba6b7244256644c4
Resources: Introduce new IpcMemory module

A new IpcMemory module is added to provide address translation
functions operating on the resource table. The IpcMemory module
now inherently includes the resource table as part of the module.
The table is statically created and allocated in the address
specified by IpcMemory.loadAddr. Default address is 0x3000.

Alternatively, the table location could be specified by segment.
If a valid segment is assigned to IpcMemory.loadSegment, the
base address of that segment will be used as the load address
overridng whatever value is assigned to IpcMemory.loadAddr.

The APIs provided by this module for translating virtual to
physical addresses and vice-versa are:
    Int IpcMemory_virtToPhys(UInt32 va, UInt32 *pa)
    Int IpcMemory_physToVirt(UInt32 pa, UInt32 *va)

Signed-off-by: Juan Gutierrez <jgutierrez@ti.com>
Signed-off-by: Suman Anna <s-anna@ti.com>
src/.gitignore
src/ti/resources/IpcMemory.c [new file with mode: 0644]
src/ti/resources/IpcMemory.xdc [new file with mode: 0644]
src/ti/resources/IpcMemory.xdt [new file with mode: 0644]
src/ti/resources/IpcMemory.xs [new file with mode: 0644]
src/ti/resources/package.bld
src/ti/resources/package.xdc
src/ti/resources/package.xs [new file with mode: 0644]
src/ti/resources/rsc_table.h