101 #ifndef ti_ipc_SharedRegion__include
102 #define ti_ipc_SharedRegion__include
105 #if defined (__cplusplus)
117 #define SharedRegion_S_BUSY 2
122 #define SharedRegion_S_ALREADYSETUP 1
127 #define SharedRegion_S_SUCCESS 0
132 #define SharedRegion_E_FAIL -1
137 #define SharedRegion_E_INVALIDARG -2
142 #define SharedRegion_E_MEMORY -3
147 #define SharedRegion_E_ALREADYEXISTS -4
152 #define SharedRegion_E_NOTFOUND -5
157 #define SharedRegion_E_TIMEOUT -6
162 #define SharedRegion_E_INVALIDSTATE -7
167 #define SharedRegion_E_OSFAILURE -8
172 #define SharedRegion_E_RESOURCE -9
177 #define SharedRegion_E_RESTART -10
187 #define SharedRegion_INVALIDREGIONID (0xFFFF)
462 #if defined (__cplusplus)
SizeT cacheLineSize
The cache line size of the region.
Definition: SharedRegion.h:232
Bool cacheEnable
Whether to perform cache operations for the region.
Definition: SharedRegion.h:223
struct SharedRegion_Entry SharedRegion_Entry
Structure defining a region.
UInt16 SharedRegion_getNumRegions(Void)
Gets the number of regions.
Ptr SharedRegion_getPtr(SharedRegion_SRPtr srptr)
Calculate the local pointer from the shared region pointer.
Structure defining a region.
Definition: SharedRegion.h:202
SharedRegion_SRPtr SharedRegion_getSRPtr(Ptr addr, UInt16 regionId)
Calculate the shared region pointer given local address and id.
Int SharedRegion_getEntry(UInt16 regionId, SharedRegion_Entry *entry)
Gets the entry information for the specified region id.
SharedRegion_Entry * SharedRegion_getEntryPtr(UInt16 regionId)
Return the address of the shared region entry structure.
Ptr base
The base address of the region.
Definition: SharedRegion.h:203
UInt16 SharedRegion_getIdByName(String name)
Gets the id of a region, given its name.
Bits32 SharedRegion_SRPtr
SharedRegion pointer type.
Definition: SharedRegion.h:197
Bool createHeap
Whether a heap is created for the region.
Definition: SharedRegion.h:240
SharedRegion_SRPtr SharedRegion_invalidSRPtr(Void)
Returns the SharedRegion_SRPtr value that maps to NULL.
Bool isValid
Whether the region is valid.
Definition: SharedRegion.h:220
String name
The name of the region.
Definition: SharedRegion.h:249
Int SharedRegion_clearEntry(UInt16 regionId)
Clears the regionid entry.
UInt16 SharedRegion_getId(Ptr addr)
Gets the region id for the specified address.
SizeT SharedRegion_getCacheLineSize(UInt16 regionId)
Gets the cache line size for the specified region id.
SizeT len
The length of the region.
Definition: SharedRegion.h:206
Bool SharedRegion_translateEnabled(Void)
Whether address translation is enabled.
Void SharedRegion_entryInit(SharedRegion_Entry *entry)
Initializes the entry fields.
Bool SharedRegion_isCacheEnabled(UInt16 regionId)
whether cache enable was specified
UInt16 ownerProcId
The MultiProc id of the owner of the region.
Definition: SharedRegion.h:213
Int SharedRegion_setEntry(UInt16 regionId, SharedRegion_Entry *entry)
Sets the entry at the specified region id.
Ptr SharedRegion_getHeap(UInt16 regionId)
Gets the heap associated with the specified region id.