MusicKit  0.0.0
dsp_messages_1.0.h
00001 #ifndef __MK_dsp_messages_1.0_H___
00002 #define __MK_dsp_messages_1.0_H___
00003 /* $Id$
00004 Written by dspmsg from system symbols.
00005 
00006 This include file contains definitions for "host-message" and 
00007 "DSP message" opcodes used by the Music Kit (MK) and Array Processing (AP)
00008 libraries.  These definitions do not change as the DSP system software is 
00009 upgraded, except that new definitions may be added.
00010 
00011 "Host messages" are mnemonics for DSP system subroutine entry points. 
00012 They are called by the host for communication purposes via the
00013 DSPCall() or DSPHostMessage() functions in libdsp.  Each host message 
00014 opcode has the prefix "DSP_HM".
00015 
00016 "DSP messages" are one-word (24 bit) messages which flow from the 
00017 DSP to the host.  DSP messages use the prefix "DSP_DM".
00018 
00019 A DSP message consists of one byte of opcode and two bytes of data.
00020 Opcodes from 128 to 255 are, by MK/AP convention, error messages, and
00021 their prefix is "DSP_DE" rather than "DSP_DM".
00022 
00023 */ 
00024 
00025 /***** GLOBAL SYMBOLS *****/
00026 #define DSP_DE_ABORT     0x0000a8
00027 #define DSP_DE_ADMPWE    0x0000a0
00028 #define DSP_DE_BREAK     0x000080
00029 #define DSP_DE_DHRERR    0x000091
00030 #define DSP_DE_DMAWRECK  0x000090
00031 #define DSP_DE_DMQOVFL   0x000093
00032 #define DSP_DE_HF2_ON_2  0x0000a7
00033 #define DSP_DE_HMARGERR  0x000081
00034 #define DSP_DE_HMSBUSY   0x000096
00035 #define DSP_DE_HMSOVFL   0x000094
00036 #define DSP_DE_HMSUFL    0x000095
00037 #define DSP_DE_ILLHM     0x00008e
00038 #define DSP_DE_ILLSUB    0x00008d
00039 #define DSP_DE_LC        0x000085
00040 #define DSP_DE_LMEMARG   0x0000a5
00041 #define DSP_DE_NO_PROG   0x0000a6
00042 #define DSP_DE_PC        0x000082
00043 #define DSP_DE_PLE_SYSMM         0x0000a9
00044 #define DSP_DE_RESET     0x00008f
00045 #define DSP_DE_SCROVFL   0x0000a1
00046 #define DSP_DE_SP        0x000086
00047 #define DSP_DE_SR        0x000084
00048 #define DSP_DE_SSH       0x000083
00049 #define DSP_DE_SSIWDU    0x0000a2
00050 #define DSP_DE_STATUS0   0x00008a
00051 #define DSP_DE_STATUS1   0x00008b
00052 #define DSP_DE_STATUS2   0x00008c
00053 #define DSP_DE_TIME0     0x000087
00054 #define DSP_DE_TIME1     0x000088
00055 #define DSP_DE_TIME2     0x000089
00056 #define DSP_DE_TMQEOIF   0x00009f
00057 #define DSP_DE_TMQFULL   0x000097
00058 #define DSP_DE_TMQHMM    0x00009c
00059 #define DSP_DE_TMQMI     0x000099
00060 #define DSP_DE_TMQREADY  0x000098
00061 #define DSP_DE_TMQRWPL   0x00009e
00062 #define DSP_DE_TMQTM     0x00009d
00063 #define DSP_DE_TMQTMM    0x00009b
00064 #define DSP_DE_TMQU      0x00009a
00065 #define DSP_DE_USER_ERR  0x0000ab
00066 #define DSP_DE_WFP_BAD   0x0000aa
00067 #define DSP_DE_XHMILL    0x000092
00068 #define DSP_DE_XMEMARG   0x0000a3
00069 #define DSP_DE_YMEMARG   0x0000a4
00070 #define DSP_DM_DM_MIDI_MSG       0x000008
00071 #define DSP_DM_DM_OFF    0x000006
00072 #define DSP_DM_DM_ON     0x000007
00073 #define DSP_DM_HMS_ROOM  0x00001d
00074 #define DSP_DM_HM_DONE   0x00000b
00075 #define DSP_DM_HM_FIRST  0x000020
00076 #define DSP_DM_HM_LAST   0x000021
00077 #define DSP_DM_HOST_R_DONE       0x000003
00078 #define DSP_DM_HOST_R_REQ        0x000005
00079 #define DSP_DM_HOST_R_SET1       0x000009
00080 #define DSP_DM_HOST_W_DONE       0x000002
00081 #define DSP_DM_HOST_W_REQ        0x000004
00082 #define DSP_DM_IAA       0x000011
00083 #define DSP_DM_IDLE      0x00000f
00084 #define DSP_DM_ILLDSPMSG         0x000000
00085 #define DSP_DM_KERNEL_ACK        0x000001
00086 #define DSP_DM_LC        0x000015
00087 #define DSP_DM_MAIN_DONE         0x00000c
00088 #define DSP_DM_NOT_IN_USE        0x000010
00089 #define DSP_DM_PC        0x000012
00090 #define DSP_DM_PEEK0     0x00000d
00091 #define DSP_DM_PEEK1     0x00000e
00092 #define DSP_DM_SP        0x000016
00093 #define DSP_DM_SR        0x000014
00094 #define DSP_DM_SSH       0x000013
00095 #define DSP_DM_SSI_WDU   0x00001f
00096 #define DSP_DM_STATUS0   0x00001a
00097 #define DSP_DM_STATUS1   0x00001b
00098 #define DSP_DM_STATUS2   0x00001c
00099 #define DSP_DM_TIME0     0x000017
00100 #define DSP_DM_TIME1     0x000018
00101 #define DSP_DM_TIME2     0x000019
00102 #define DSP_DM_TMQ_LWM   0x00000a
00103 #define DSP_DM_TMQ_ROOM  0x00001e
00104 #define DSP_DM_USER_MSG  0x000022
00105 
00106 /***** PH SYMBOLS (DISPATCH ADDRESSES) *****/
00107 #define DSP_HM_ABORT     0x003fec
00108 #define DSP_HM_ADC_LOOP  0x003fc0
00109 #define DSP_HM_BLOCK_OFF         0x003f96
00110 #define DSP_HM_BLOCK_ON  0x003f94
00111 #define DSP_HM_BLOCK_TMQ_LWM     0x003fc6
00112 #define DSP_HM_BLT_P     0x003f72
00113 #define DSP_HM_BLT_X     0x003f6e
00114 #define DSP_HM_BLT_Y     0x003f70
00115 #define DSP_HM_CLEAR_BREAK       0x003f86
00116 #define DSP_HM_CLEAR_DMA_HM      0x003f38
00117 #define DSP_HM_CLOSE_PAREN       0x003fc4
00118 #define DSP_HM_DM_OFF    0x003f3a
00119 #define DSP_HM_DM_ON     0x003f3c
00120 #define DSP_HM_DMA_RD_SSI_OFF    0x003f4e
00121 #define DSP_HM_DMA_RD_SSI_ON     0x003f4c
00122 #define DSP_HM_DMA_WD_SSI_OFF    0x003f52
00123 #define DSP_HM_DMA_WD_SSI_ON     0x003f50
00124 #define DSP_HM_DONE_INT  0x003f98
00125 #define DSP_HM_DONE_NOINT        0x003f9a
00126 #define DSP_HM_ECHO      0x003f76
00127 #define DSP_HM_EXECUTE   0x003fa0
00128 #define DSP_HM_EXECUTE_HM        0x003fa2
00129 #define DSP_HM_FILL_P    0x003f6c
00130 #define DSP_HM_FILL_X    0x003f68
00131 #define DSP_HM_FILL_Y    0x003f6a
00132 #define DSP_HM_FIRST     0x003f38
00133 #define DSP_HM_GET_TIME  0x003f7e
00134 #define DSP_HM_GO        0x003f8a
00135 #define DSP_HM_HALT      0x003fb8
00136 #define DSP_HM_HIGH_SRATE        0x003fb0
00137 #define DSP_HM_HM_FIRST  0x003faa
00138 #define DSP_HM_HM_LAST   0x003fac
00139 #define DSP_HM_HMS_ROOM  0x003f92
00140 #define DSP_HM_HOST_R    0x003f3e
00141 #define DSP_HM_HOST_R_DONE       0x003f40
00142 #define DSP_HM_HOST_RD_DONE      0x003fb6
00143 #define DSP_HM_HOST_RD_OFF       0x003f46
00144 #define DSP_HM_HOST_RD_ON        0x003f44
00145 #define DSP_HM_HOST_W    0x003f42
00146 #define DSP_HM_HOST_W_DT         0x003fbc
00147 #define DSP_HM_HOST_W_SWFIX      0x003fbe
00148 #define DSP_HM_HOST_WD_DONE      0x003fb4
00149 #define DSP_HM_HOST_WD_OFF       0x003f4a
00150 #define DSP_HM_HOST_WD_ON        0x003f48
00151 #define DSP_HM_IDLE      0x003f78
00152 #define DSP_HM_JSR       0x003fa4
00153 #define DSP_HM_LAST      0x003fce
00154 #define DSP_HM_LOAD_STATE        0x003fa8
00155 #define DSP_HM_LOW_SRATE         0x003fb2
00156 #define DSP_HM_MAIN_DONE         0x003ff4
00157 #define DSP_HM_MIDI_MSG  0x003fae
00158 #define DSP_HM_OPEN_PAREN        0x003fc2
00159 #define DSP_HM_PEEK_N    0x003f5c
00160 #define DSP_HM_PEEK_P    0x003f58
00161 #define DSP_HM_PEEK_R    0x003f5a
00162 #define DSP_HM_PEEK_X    0x003f54
00163 #define DSP_HM_PEEK_Y    0x003f56
00164 #define DSP_HM_POKE_N    0x003f66
00165 #define DSP_HM_POKE_P    0x003f62
00166 #define DSP_HM_POKE_R    0x003f64
00167 #define DSP_HM_POKE_X    0x003f5e
00168 #define DSP_HM_POKE_Y    0x003f60
00169 #define DSP_HM_RESET_AP  0x003ff6
00170 #define DSP_HM_RESET_IPR         0x003f7c
00171 #define DSP_HM_RESET_SOFT        0x003f7a
00172 #define DSP_HM_SAVE_STATE        0x003fa6
00173 #define DSP_HM_SAY_SOMETHING     0x003f74
00174 #define DSP_HM_SERVICE_TMQ       0x003ff0
00175 #define DSP_HM_SERVICE_WRITE_DATA        0x003ff8
00176 #define DSP_HM_SET_BREAK         0x003f84
00177 #define DSP_HM_SET_DMA_R_M       0x003fca
00178 #define DSP_HM_SET_DMA_W_M       0x003fcc
00179 #define DSP_HM_SET_START         0x003f88
00180 #define DSP_HM_SET_TIME  0x003f80
00181 #define DSP_HM_SET_TINC  0x003f82
00182 #define DSP_HM_SINE_TEST         0x003fba
00183 #define DSP_HM_STDERR    0x003fee
00184 #define DSP_HM_STEP      0x003f8c
00185 #define DSP_HM_TMQ_LWM_ME        0x003f90
00186 #define DSP_HM_TMQ_ROOM  0x003f8e
00187 #define DSP_HM_TRACE_OFF         0x003f9e
00188 #define DSP_HM_TRACE_ON  0x003f9c
00189 #define DSP_HM_UNBLOCK_TMQ_LWM   0x003fc8
00190 #define DSP_HM_WRITE_DATA_SWITCH         0x003ff2
00191 #define DSP_LOC_SOUND_PAR_1      0x003fe4
00192 #define DSP_LOC_SOUND_PAR_2      0x003fe5
00193 #define DSP_LOC_SOUND_PAR_3      0x003fe6
00194 #define DSP_LOC_SOUND_PAR_4      0x003fe7
00195 #define DSP_LOC_UNUSED   0x003feb
00196 #define DSP_LOC_X_DMA_WFP        0x003fea
00197 #define DSP_LOC_XHMTA_RETURN_FOR_TZM     0x003fe8
00198 #define DSP_MAIN_DONE1   0x003b5f
00199 
00200 #endif