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 03:16:06 +0000 (21:16 -0600)
commita050d6f962d18e6a4576ffe211d34a466a113956
tree48a0be7ede7c053bd85c60cd095fb2a3fc7c25ad
parenta804933af2163d8b9227746e2d040b0ab3b41fc8
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