00001 00043 #if !defined (PROCDEFS_H) 00044 #define PROCDEFS_H 00045 00046 00047 /* ----------------------------------- DSP/BIOS Link */ 00048 #include <gpptypes.h> 00049 #include <linkcfgdefs.h> 00050 00051 00052 #if defined (__cplusplus) 00053 extern "C" { 00054 #endif 00055 00056 00063 #define IS_VALID_PROCID(id) (id < MAX_DSPS) 00064 00065 00089 typedef enum { 00090 ProcState_Unknown = 0u, 00091 ProcState_Setup = 1u, 00092 ProcState_Loaded = 2u, 00093 ProcState_Started = 3u, 00094 ProcState_Stopped = 4u, 00095 ProcState_Idle = 5u, 00096 ProcState_Reset = 6u, 00097 ProcState_Unavailable = 7u 00098 } PROC_State ; 00099 00100 00112 typedef struct PROC_Attrs_tag { 00113 Uint32 timeout ; 00114 LINKCFG_DspConfig * dspCfgPtr ; 00115 } PROC_Attrs ; 00116 00117 00118 /* ============================================================================ 00119 * @const PROC_CTRL_CMD_GEN_BASE, PROC_CTRL_CMD_GEN_END 00120 * 00121 * @brief Range for PROC_Control () commands to be handled by the generic 00122 * implementation of PROC component. 00123 * ============================================================================ 00124 */ 00125 #define PROC_CTRL_CMD_GEN_BASE 0x00000100u 00126 #define PROC_CTRL_CMD_GEN_LAST 0x00000200u 00127 00128 /* ============================================================================ 00129 * @const PROC_CTRL_CMD_MAP_DSPMEM, PROC_CTRL_CMD_UNMAP_DSPMEM 00130 * PROC_CTRL_CMD_MMU_ADD_ENTRY, PROC_CTRL_CMD_MMU_DEL_ENTRY 00131 * 00132 * @brief Commands for mapping/ unmapping DSP memory. 00133 * Commands for add/ delete mmu entry. 00134 * ============================================================================ 00135 */ 00136 #define PROC_CTRL_CMD_MAP_DSPMEM (PROC_CTRL_CMD_GEN_BASE + 0x00000001u) 00137 #define PROC_CTRL_CMD_UNMAP_DSPMEM (PROC_CTRL_CMD_GEN_BASE + 0x00000002u) 00138 #define PROC_CTRL_CMD_MMU_ADD_ENTRY (PROC_CTRL_CMD_GEN_BASE + 0x00000003u) 00139 #define PROC_CTRL_CMD_MMU_DEL_ENTRY (PROC_CTRL_CMD_GEN_BASE + 0x00000004u) 00140 00157 typedef struct ProcMemMapInfo_tag { 00158 Uint32 dspAddr ; 00159 Uint32 size ; 00160 Uint32 mappedAddr ; 00161 Uint32 mappedSize ; 00162 } ProcMemMapInfo ; 00163 00164 00174 #define ProcState PROC_State 00175 00185 #define ProcAttr PROC_Attrs 00186 00187 00188 #if defined (__cplusplus) 00189 } 00190 #endif 00191 00192 00193 #endif /* !defined (PROCDEFS_H) */