00001
00002
00003
00004
00005 #ifndef DSP_PTR_STRUCT_H
00006 #define DSP_PTR_STRUCT_H
00007
00008 #include "primList.h"
00009 #include "txtBuffer.h"
00010 #include "comRegDfns.h"
00011
00012 #define MEM_STRUCT_REVISION 101
00013
00014 typedef struct SdspInternal {
00015 UINT32 structureSize;
00016
00017 UINT32 rodCfg, rodMode;
00018 UINT32 rodCfgSize, rodModeSize;
00019
00020 UINT32 histoCtrl, evtMgrCtrl, eventQueue, evtMgrRes;
00021 UINT32 histoCtrlSize, evtMgrCtrlSize, eventQueueSize, evtMgrResSize;
00022
00023 UINT32 histoDefaultBase;
00024
00025 UINT32 *primListBase[N_PRIM_BFRS][2];
00026 } SdspInternal;
00027
00028 typedef struct SdspMemoryStruct {
00029
00030
00031
00032 UINT32 structureSize;
00033 UINT32 revision;
00034 UINT32 dspVersion, unused;
00035
00036
00037
00038
00039
00040
00041
00042
00043 UINT32 ipram, idram, commRegs, idata, idramSec, xcode;
00044 UINT32 ipramSize, idramSize, commRegsSize, idataSize, idramSecSize, xcodeSize;
00045
00046 UINT32 sdram[2], sdramSize[2];
00047 UINT32 burst, burstSize;
00048
00049
00050
00051 UINT32 primBuffer, replyBuffer, primBufferSize, replyBufferSize;
00052 UINT32 txtBuffer[N_SDSP_TXT_BUFFS];
00053 UINT32 txtBuff[N_SDSP_TXT_BUFFS];
00054
00055
00056
00057 UINT32 primParams, nPrimitives;
00058
00059 SdspInternal *internal;
00060
00061 } SdspMemoryStruct;
00062
00063 #if ((defined(I_AM_HOST))||(defined(I_AM_MASTER_DSP)))
00064
00065 typedef struct MdspInternal {
00066 UINT32 structureSize;
00067
00068 UINT32 rodCfg, rodMode;
00069 UINT32 rodCfgSize, rodModeSize;
00070
00071 UINT32 spStruct[2];
00072
00073 UINT32 histoCtrl, moduleMaskData, maskCfg;
00074 UINT32 histoCtrlSize, moduleMaskDataSize, maskCfgSize;
00075
00076 UINT32 *primListBase[N_PRIM_BFRS][2];
00077 } MdspInternal;
00078
00079 typedef struct MdspMemoryStruct {
00080
00081
00082
00083 UINT32 structureSize;
00084 UINT32 revision;
00085 UINT32 rodRevision;
00086 UINT32 dspVersion, fmtVersion, efbVersion, rtrVersion, rcfVersion;
00087
00088
00089
00090
00091
00092
00093
00094
00095 UINT32 ipram, idram, commRegs, idata, idramSec, xcode;
00096 UINT32 ipramSize, idramSize, commRegsSize, idataSize, idramSecSize, xcodeSize;
00097
00098 UINT32 flash, flashSize;
00099 UINT32 rodRegisterBase;
00100 UINT32 sdram[2], sdramSize[2];
00101
00102
00103
00104 UINT32 moduleCfgArray[3], spBuff[2], inmemCtrlStruct;
00105 UINT32 moduleCfgSize, moduleCfgArraySize, spBuffSize;
00106
00107
00108
00109 UINT32 primBuffer, replyBuffer, primBufferSize, replyBufferSize;
00110 UINT32 txtBuffer[N_TXT_BUFFS];
00111 UINT32 txtBuff[N_TXT_BUFFS];
00112
00113
00114
00115 UINT32 primParams, nPrimitives;
00116
00117
00118 MdspInternal *internal;
00119 SdspMemoryStruct sdspMem;
00120
00121 UINT32 unused[4];
00122
00123 } MdspMemoryStruct;
00124
00125 #endif
00126
00127 #endif