module ti.ipc.remoteproc.Resource |
|
Resource Module
#include <ti/ipc/remoteproc/Resource.h>
Functions |
Ptr | |
Char | |
Ptr | |
Int | |
Int | |
Functions common to all target modules |
|
|
Defines |
#define | |
#define | |
Typedefs |
typedef struct | |
typedef struct | |
const Resource_E_NOTFOUND |
|
#define Resource_E_NOTFOUND (Int)-1
DEF
Resource_E_NOTFOUND
BRIEF
Element was not found in table
const Resource_S_SUCCESS |
|
#define Resource_S_SUCCESS (Int)0
DEF
Resource_S_SUCCESS
BRIEF
Operation is successful.
struct Resource_MemEntry |
|
typedef struct Resource_MemEntry {
UInt32 type;
UInt32 da;
UInt32 pa;
UInt32 len;
UInt32 flags;
UInt32 reserved;
Char name[32];
} Resource_MemEntry;
DEF
Resource_MemEntry
BRIEF
A Resource Table memory type record
struct Resource_RscTable |
|
typedef struct Resource_RscTable {
UInt32 ver;
UInt32 num;
UInt32 reserved[2];
UInt32 offset[1];
} Resource_RscTable;
DEF
Resource_RscTable
BRIEF
An open-ended type-length-value based resource table
Resource_getTraceBufPtr() // module-wide |
|
Ptr Resource_getTraceBufPtr();
BRIEF
Get the Trace Buffer address from resource table.
RETURN
Pointer to trace buffer, or NULL if not found.
Resource_getVdevStatus() // module-wide |
|
Char Resource_getVdevStatus(UInt32 id);
BRIEF
Get the status field of the VDEV, given the fw_rsc_vdev id.
RETURN
status value which is set by Virtio device on HLOS.
Resource_getVringDA() // module-wide |
|
Ptr Resource_getVringDA(UInt32 vqId);
BRIEF
Get the nth (vqId) vring address from the VDEV struct.
RETURN
NULL if no VDEV found, or vqId is not found.
Resource_physToVirt() // module-wide |
|
Int Resource_physToVirt(UInt32 pa, UInt32 *da);
BRIEF
Physical to Virtual address translation function
SA
Resource_virtToPhys
Resource_virtToPhys() // module-wide |
|
Int Resource_virtToPhys(UInt32 da, UInt32 *pa);
BRIEF
Virtual to Physical address translation function
SA
Resource_physToVirt
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool Resource_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool Resource_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 Resource_Module_getMask();
// Returns the diagnostics mask for this module
Void Resource_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
module-wide constants & types
module-wide config parameters
const Resource.E_NOTFOUND |
|
const Resource.E_NOTFOUND = -1;
DEF
Resource_E_NOTFOUND
BRIEF
Element was not found in table
C SYNOPSIS
const Resource.S_SUCCESS |
|
const Resource.S_SUCCESS = 0;
DEF
Resource_S_SUCCESS
BRIEF
Operation is successful.
C SYNOPSIS
struct Resource.MemEntry |
|
var obj = new Resource.MemEntry;
obj.type = UInt32 ...
obj.da = UInt32 ...
obj.pa = UInt32 ...
obj.len = UInt32 ...
obj.flags = UInt32 ...
obj.reserved = UInt32 ...
obj.name = Char[32] ...
DEF
Resource_MemEntry
BRIEF
A Resource Table memory type record
C SYNOPSIS
struct Resource.RscTable |
|
var obj = new Resource.RscTable;
obj.ver = UInt32 ...
obj.num = UInt32 ...
obj.reserved = UInt32[2] ...
obj.offset = UInt32[1] ...
DEF
Resource_RscTable
BRIEF
An open-ended type-length-value based resource table
C SYNOPSIS
metaonly config Resource.common$ // module-wide |
|
Common module configuration parameters
DETAILS
All modules have this configuration parameter. Its name
contains the '$' character to ensure it does not conflict with
configuration parameters declared by the module. This allows
new configuration parameters to be added in the future without
any chance of breaking existing modules.
metaonly config Resource.customTable // module-wide |
|
Flag to indicate the user will provide a custom resource table
Resource.customTable = Bool false;
DETAILS
If false (the default), a default resource table will be
created during configuration.
If true, the user must supply their own resource table.
Fundamentally, this amounts to providing a well-formed
resource_table structure named 'ti_ipc_remoteproc_ResourceTable'.
metaonly config Resource.loadAddr // module-wide |
|
Resource.loadAddr = UInt 0x3000;
DEF
Resource_loadAddr
BRIEF
Default load address for the Resource table
metaonly config Resource.loadSegment // module-wide |
|
Resource.loadSegment = String undefined;
DEF
Resource_loadSegment
BRIEF
If loadSegment is defined, loadAddr is overridden with the base
address of the loadSegment
metaonly config Resource.traceOnly // module-wide |
|
Resource.traceOnly = Bool false;
DEF
Resource_traceOnly
BRIEF
Set traceOnly to true in order to get an image with trace
resources only, and without VRINGs.
Implemented only for the Keystone II (TCI6638) platform.
generated on Fri, 21 Aug 2015 19:35:32 GMT