MusicKit  0.0.0
dsp_memory_map_ap_1.0.h
00001 #ifndef __MK_dsp_memory_map_ap_1.0_H___
00002 #define __MK_dsp_memory_map_ap_1.0_H___
00003 /* dsp_memory_map_ap.h - written by dspmsg from system symbols.
00004 
00005 This include file contains definitions for Array Processing memory
00006 addresses.  These definitions depend heavily on
00007 /usr/local/lib/dsp/smsrc/config.asm, and they tend to change every time the
00008 DSP system code is modified.  Use of these constants should be avoided
00009 whenever possible in C software.  At the very least, their use should be
00010 confined to a single interface module.
00011 
00012 Address names are of the form 
00013 
00014                 DSPAP_{X,Y,P,L}{L,H}{I,E}_{USR,SYS}
00015 
00016 where {X,Y,P,L} are the possible memory spaces in the DSP, {L,H} specifies 
00017 lower or higher memory segment boundary, {I,E} specifies internal or 
00018 external memory, and {USR,SYS} specifies user or system memory segments. 
00019 For example, PHE_USR specifies the maximum address available to the user 
00020 in external program memory.  In general, the system occupies the lowest and 
00021 highest address range in each space, with the user having all addresses in 
00022 between.
00023 
00024 Names of the form 'DSPAP_I_<name>' denote integer constants.
00025 Names of the form 'DSPAP_NB_<name>' denote buffer sizes.
00026 Names of the form 'DSPAP_N{X,Y,L,P}{I,E}_{USR,SYS}' denote memory segment sizes.
00027 
00028 */ 
00029 
00030 /***** GLOBAL SYMBOLS *****/
00031 #define DSPAP_DEGMON_FLAG        0x000035
00032 #define DSPAP_DEGMON_FLAG2       0x000037
00033 #define DSPAP_DEGMON_H   0x00007f
00034 #define DSPAP_DEGMON_HCR         0x00003b
00035 #define DSPAP_DEGMON_HPD2        0x000036
00036 #define DSPAP_DEGMON_IPR         0x00003a
00037 #define DSPAP_DEGMON_L   0x000034
00038 #define DSPAP_DEGMON_N   0x00004c
00039 #define DSPAP_DEGMON_PC  0x000039
00040 #define DSPAP_DEGMON_RUN_LOC     0x000047
00041 #define DSPAP_DEGMON_SR  0x000038
00042 #define DSPAP_DEGMON_SR2         0x00003c
00043 #define DSPAP_DEGMON_TRACER_LOC  0x000059
00044 #define DSPAP_HE_USR     0x003b15
00045 #define DSPAP_I_0DBU16   0x003187
00046 #define DSPAP_I_0DBU24   0x031999
00047 #define DSPAP_I_DEFIPR   0x00243c
00048 #define DSPAP_I_DEFOMR   0x000006
00049 #define DSPAP_I_EPS      0x000001
00050 #define DSPAP_I_M12DBU16         0x000c66
00051 #define DSPAP_I_M12DBU24         0x0c6666
00052 #define DSPAP_I_MAXPOS   0x7fffff
00053 #define DSPAP_I_MINPOS   0x000001
00054 #define DSPAP_I_ONEHALF  0x400000
00055 #define DSPAP_I_OUTY     0x00ffff
00056 #define DSPAP_LE_USR     0x002000
00057 #define DSPAP_LHE_SEG    0x00afff
00058 #define DSPAP_LHE_SYS    0x003f37
00059 #define DSPAP_LHE_USG    0x00ab15
00060 #define DSPAP_LHE_USR    0x003b15
00061 #define DSPAP_LHI_SYS    0x000001
00062 #define DSPAP_LHI_USR    0x0000ff
00063 #define DSPAP_LLE_SEG    0x00a000
00064 #define DSPAP_LLE_SYS    0x003f38
00065 #define DSPAP_LLE_USG    0x00a000
00066 #define DSPAP_LLE_USR    0x003b16
00067 #define DSPAP_LLI_SYS    0x000000
00068 #define DSPAP_LLI_USR    0x0000f6
00069 #define DSPAP_NAE_SYS    0x0004ea
00070 #define DSPAP_NB_DMA     0x000000
00071 #define DSPAP_NB_DMA_R   0x000000
00072 #define DSPAP_NB_DMA_W   0x000000
00073 #define DSPAP_NB_DMQ     0x000020
00074 #define DSPAP_NB_HMS     0x000040
00075 #define DSPAP_NB_TMQ     0x000038
00076 #define DSPAP_NE_USR     0x001b16
00077 #define DSPAP_NLE_SEG    0x001000
00078 #define DSPAP_NLE_SYS    0x000000
00079 #define DSPAP_NLE_USG    0x000b16
00080 #define DSPAP_NLE_USR    0x000000
00081 #define DSPAP_NLI_SYS    0x000002
00082 #define DSPAP_NLI_USR    0x00000a
00083 #define DSPAP_NPE_SEG    0x002000
00084 #define DSPAP_NPE_SYS    0x000352
00085 #define DSPAP_NPE_SYSEP  0x0000c8
00086 #define DSPAP_NPE_USG    0x000000
00087 #define DSPAP_NPE_USR    0x000000
00088 #define DSPAP_NPI_RAM    0x000200
00089 #define DSPAP_NPI_ROM    0x000000
00090 #define DSPAP_NPI_SYS    0x000000
00091 #define DSPAP_NPI_USR    0x000180
00092 #define DSPAP_NXE_SEG    0x001000
00093 #define DSPAP_NXE_SYS    0x000038
00094 #define DSPAP_NXE_USG    0x000b16
00095 #define DSPAP_NXE_USR    0x001b16
00096 #define DSPAP_NXI_RAM    0x000100
00097 #define DSPAP_NXI_ROM    0x000100
00098 #define DSPAP_NXI_SYS    0x000000
00099 #define DSPAP_NXI_USR    0x0000f4
00100 #define DSPAP_NYE_SEG    0x001000
00101 #define DSPAP_NYE_SYS    0x000098
00102 #define DSPAP_NYE_USG    0x001000
00103 #define DSPAP_NYE_USR    0x000000
00104 #define DSPAP_NYI_RAM    0x000100
00105 #define DSPAP_NYI_ROM    0x000100
00106 #define DSPAP_NYI_SYS    0x000000
00107 #define DSPAP_NYI_USR    0x0000f4
00108 #define DSPAP_PHE_RAM    0x003fff
00109 #define DSPAP_PHE_SEG    0x00bfff
00110 #define DSPAP_PHE_SYS    0x003e67
00111 #define DSPAP_PHE_SYSEP  0x003fff
00112 #define DSPAP_PHE_USG    0x009fff
00113 #define DSPAP_PHE_USR    0x001fff
00114 #define DSPAP_PHI_RAM    0x0001ff
00115 #define DSPAP_PHI_ROM    0x0001ff
00116 #define DSPAP_PHI_SYS    0x00007f
00117 #define DSPAP_PHI_USR    0x0001ff
00118 #define DSPAP_PLE_RAM    0x002000
00119 #define DSPAP_PLE_SEG    0x00a000
00120 #define DSPAP_PLE_SYS    0x003b16
00121 #define DSPAP_PLE_SYSEP  0x003f38
00122 #define DSPAP_PLE_USG    0x00a000
00123 #define DSPAP_PLE_USR    0x002000
00124 #define DSPAP_PLI_RAM    0x000000
00125 #define DSPAP_PLI_ROM    0x000200
00126 #define DSPAP_PLI_SYS    0x000080
00127 #define DSPAP_PLI_USR    0x000080
00128 #define DSPAP_XHE_RAM    0x003fff
00129 #define DSPAP_XHE_SEG    0x00afff
00130 #define DSPAP_XHE_SYS    0x003e9f
00131 #define DSPAP_XHE_USG    0x00ab15
00132 #define DSPAP_XHE_USR    0x003b15
00133 #define DSPAP_XHI_RAM    0x0000ff
00134 #define DSPAP_XHI_ROM    0x0001ff
00135 #define DSPAP_XHI_SYS    0x000001
00136 #define DSPAP_XHI_USR    0x0000f5
00137 #define DSPAP_XLE_RAM    0x002000
00138 #define DSPAP_XLE_SEG    0x00a000
00139 #define DSPAP_XLE_SYS    0x003e68
00140 #define DSPAP_XLE_USG    0x00a000
00141 #define DSPAP_XLE_USR    0x002000
00142 #define DSPAP_XLI_RAM    0x000000
00143 #define DSPAP_XLI_ROM    0x000100
00144 #define DSPAP_XLI_SYS    0x000000
00145 #define DSPAP_XLI_USR    0x000002
00146 #define DSPAP_YHE_RAM    0x003fff
00147 #define DSPAP_YHE_SEG    0x00afff
00148 #define DSPAP_YHE_SYS    0x003f37
00149 #define DSPAP_YHE_USG    0x00afff
00150 #define DSPAP_YHE_USR    0x003b15
00151 #define DSPAP_YHI_RAM    0x0000ff
00152 #define DSPAP_YHI_ROM    0x0001ff
00153 #define DSPAP_YHI_SYS    0x000001
00154 #define DSPAP_YHI_USR    0x0000f5
00155 #define DSPAP_YLE_RAM    0x002000
00156 #define DSPAP_YLE_SEG    0x00a000
00157 #define DSPAP_YLE_SYS    0x003ea0
00158 #define DSPAP_YLE_USG    0x00a000
00159 #define DSPAP_YLE_USR    0x003b16
00160 #define DSPAP_YLI_RAM    0x000000
00161 #define DSPAP_YLI_ROM    0x000100
00162 #define DSPAP_YLI_SYS    0x000000
00163 #define DSPAP_YLI_USR    0x000002
00164 #define DSPAP_NPE_SYSEP_FREE     0x0001a8
00165 #define DSPAP_SYS_REV    0x000011
00166 #define DSPAP_SYS_VER    0x000001
00167 
00168 /***** X SYMBOLS *****/
00169 #define DSPAP_X_ABORT_A1         0x003e97
00170 #define DSPAP_X_ABORT_DMASTAT    0x003e95
00171 #define DSPAP_X_ABORT_HCR        0x003e9a
00172 #define DSPAP_X_ABORT_HSR        0x003e9b
00173 #define DSPAP_X_ABORT_M_IO       0x003e9f
00174 #define DSPAP_X_ABORT_RUNSTAT    0x003e94
00175 #define DSPAP_X_ABORT_R_HMS      0x003e9c
00176 #define DSPAP_X_ABORT_R_I1       0x003e9d
00177 #define DSPAP_X_ABORT_R_IO       0x003e9e
00178 #define DSPAP_X_ABORT_SP         0x003e98
00179 #define DSPAP_X_ABORT_SR         0x003e99
00180 #define DSPAP_X_ABORT_X0         0x003e96
00181 #define DSPAP_X_DMASTAT  0x000001
00182 #define DSPAP_X_DMA_R_M  0x003e74
00183 #define DSPAP_X_DMA_W_M  0x003e75
00184 #define DSPAP_X_DMQRP    0x003e90
00185 #define DSPAP_X_DMQWP    0x003e91
00186 #define DSPAP_X_DSPMSG_A1        0x003e70
00187 #define DSPAP_X_DSPMSG_B0        0x003e6f
00188 #define DSPAP_X_DSPMSG_B1        0x003e6e
00189 #define DSPAP_X_DSPMSG_B2        0x003e6d
00190 #define DSPAP_X_DSPMSG_M_O       0x003e72
00191 #define DSPAP_X_DSPMSG_R_O       0x003e71
00192 #define DSPAP_X_DSPMSG_X0        0x003e6c
00193 #define DSPAP_X_DSPMSG_X1        0x003e6b
00194 #define DSPAP_X_HMSRP    0x003e69
00195 #define DSPAP_X_HMSWP    0x003e6a
00196 #define DSPAP_X_SAVED_A0         0x003e85
00197 #define DSPAP_X_SAVED_A1         0x003e84
00198 #define DSPAP_X_SAVED_A2         0x003e83
00199 #define DSPAP_X_SAVED_B0         0x003e88
00200 #define DSPAP_X_SAVED_B1         0x003e87
00201 #define DSPAP_X_SAVED_B2         0x003e86
00202 #define DSPAP_X_SAVED_HOST_RCV1  0x003e89
00203 #define DSPAP_X_SAVED_HOST_RCV2  0x003e8a
00204 #define DSPAP_X_SAVED_HOST_XMT1  0x003e8b
00205 #define DSPAP_X_SAVED_HOST_XMT2  0x003e8c
00206 #define DSPAP_X_SAVED_M_HMS      0x003e8f
00207 #define DSPAP_X_SAVED_M_I1       0x003e7c
00208 #define DSPAP_X_SAVED_M_I2       0x003e7d
00209 #define DSPAP_X_SAVED_M_O        0x003e7e
00210 #define DSPAP_X_SAVED_N_HMS      0x003e8e
00211 #define DSPAP_X_SAVED_N_I1       0x003e79
00212 #define DSPAP_X_SAVED_N_I2       0x003e7a
00213 #define DSPAP_X_SAVED_N_O        0x003e7b
00214 #define DSPAP_X_SAVED_REGISTERS  0x003e76
00215 #define DSPAP_X_SAVED_R_HMS      0x003e8d
00216 #define DSPAP_X_SAVED_R_I1       0x003e76
00217 #define DSPAP_X_SAVED_R_I2       0x003e77
00218 #define DSPAP_X_SAVED_R_O        0x003e78
00219 #define DSPAP_X_SAVED_X0         0x003e80
00220 #define DSPAP_X_SAVED_X1         0x003e7f
00221 #define DSPAP_X_SAVED_Y0         0x003e82
00222 #define DSPAP_X_SAVED_Y1         0x003e81
00223 #define DSPAP_X_SCRATCH1         0x003e92
00224 #define DSPAP_X_SCRATCH2         0x003e93
00225 #define DSPAP_X_START    0x003e68
00226 #define DSPAP_X_XHM_R_I1         0x003e73
00227 #define DSPAP_X_ZERO     0x000000
00228 
00229 /***** Y SYMBOLS *****/
00230 #define DSPAP_YB_DMA_W   0x003f00
00231 #define DSPAP_YB_DMA_W0  0x003f00
00232 #define DSPAP_YB_DMA_W2  0x003f00
00233 #define DSPAP_YB_DMQ     0x003ea0
00234 #define DSPAP_YB_DMQ0    0x003ea0
00235 #define DSPAP_YB_HMS     0x003ec0
00236 #define DSPAP_YB_HMS0    0x003ec0
00237 #define DSPAP_YB_TMQ     0x003f00
00238 #define DSPAP_YB_TMQ0    0x003f00
00239 #define DSPAP_YB_TMQ2    0x003f1c
00240 #define DSPAP_Y_RUNSTAT  0x000001
00241 #define DSPAP_Y_ZERO     0x000000
00242 
00243 /***** L SYMBOLS *****/
00244 #define DSPAP_L_STATUS   0x000001
00245 #define DSPAP_L_ZERO     0x000000
00246 
00247 #endif