8 #ifndef DAQ_ALL_CMDS_HEADER
9 #define DAQ_ALL_CMDS_HEADER
17 #define EVENT_DONE 0x04
18 #define ANNOUNCE_NODEID 0x05
19 #define CONFIRM_RELEASE_TOKEN 0x06
20 #define RELEASE_TOKEN 0x07
21 #define ANNOUNCE_TOKEN 0x08
22 #define CONFIRM_SEND 0x09
23 #define SEND_SUMMARY 0x0A
25 #define FAILED_SEND 0x0C // from MYRINET
26 #define RELEASE_EVENT 0x0D // from EVB to GB
27 #define DAQ_TIMEOUT 0x0E // general timeout occured
28 #define RTS_WRITE_COUNTERS 0x0f
30 #define EVENT_DONE_BLOCKED 0x11
37 #define DAQ_LOG_MODIFY 0x29
38 #define DAQ_LOG_DATA 0x2a
41 #define DAQ_CONNECT 0x2b
42 #define DAQ_ERROR 0x2c
48 #define DAQ_RUN_START 0x20
49 #define RTS_RUN_START DAQ_RUN_START
51 #define DAQ_RUN_STOP 0x21
52 #define RTS_RUN_STOP DAQ_RUN_STOP
54 #define DAQ_RUN_PAUSE 0x22
55 #define RTS_RUN_PAUSE DAQ_RUN_PAUSE
57 #define DAQ_RUN_RESUME 0x23
58 #define RTS_RUN_RESUME DAQ_RUN_RESUME
60 #define DAQ_SEND_CONFIG 0x24
61 #define RTS_SEND_CONFIG DAQ_SEND_CONFIG
63 #define DAQ_FLUSH_TOKENS 0x27
64 #define RTS_FLUSH_TOKENS DAQ_FLUSH_TOKENS
66 #define DAQ_QUERY_TOKENS 0x28
67 #define RTS_QUERY_TOKENS DAQ_QUERY_TOKENS
69 #define DAQ_SEND_RECONFIG 0x26
70 #define RTS_SEND_RECONFIG DAQ_SEND_RECONFIG
72 #define RTS_FORCE_STOP 0x46
73 #define RTS_RECONNECT 0x48
77 #define DRC_STOPHANDLER 0x2d
78 #define DRC_QUERYSYSTEM 0x2e
79 #define DRC_RUN_START 0x2f
80 #define DRC_RUN_STOP 0x30
81 #define DRC_RUN_PAUSE 0x31
82 #define DRC_RUN_RESUME 0x32
83 #define DRC_SET_CONFIG 0x33
84 #define DRC_SEND_CONFIG 0x34
85 #define DRC_GET_CONFIG 0x35
86 #define DRC_FLUSH_TOKENS 0x37
88 #define DRC_QUERY_TOKENS 0x39
89 #define DRC_CLEAR_HANDLER 0x3a
90 #define DRC_COMMENT 0x3b
91 #define DRC_GET_SYSTEMS 0x3c
92 #define DRC_CONNECT 0x3d
93 #define DAQ_CONFIRM 0x3e
95 #define DRC_TIMEOUT 0x40
96 #define DRC_RESPONSE 0x41
97 #define DRC_DISCONNECT 0x42
98 #define DRC_CLIENT_CONTROL 0x43
99 #define DRC_SEND_ERROR 0x44
100 #define DRC_MONITOR_SEND 0x45
101 #define DRC_RECONNECT 0x49
102 #define DRC_GET_THREADS 0x4a
103 #define DRC_GET_ERRORS 0x4b
104 #define DRC_CLEAR_ERRORS 0x4c
105 #define DRC_UPDATE_QUERY 0x4d
106 #define DRC_LOGMESSAGE 0x4e
107 #define DRC_SET_SYSTEMS 0x4f
112 #define DRC_SEND_LINE 0x47
116 #define ETH_ANNOUNCE 0x50
117 #define EVB_FORMAT_DATA 0x51
118 #define EVB_SEND_DATA 0x52
119 #define EVB_TAPE_REQUEST 0x53
120 #define TAPER_DONE 0x54
121 #define EVB_TAPE_REQUEST_DONE 0x55
122 #define EVB_TIMEOUT 0x56
123 #define EVB_ANNOUNCE_MEMCPY2 0x5a
124 #define SPOOL_WRITE_LIST 0x57 // unused
125 #define SPOOL_LIST_WRITTEN 0x58 // unused
126 #define RCF_GET_FILE 0x59 // unused
127 #define RCF_WRITE_FILE 0x60 // unused
128 #define RCF_RELEASE_FILE 0x61 // unused
129 #define SPOOL_GET_DISK 0x62 // unused
130 #define SPOOL_USE_DISK 0x63 // unused
131 #define SPOOL_FREE_DISK 0x64 // unused
132 #define ETH_ANNOUNCE_NOTKN 0x65
134 #define SPOOL_WRITE_EVENT 0x67 // Spool to SpoolWriter
135 #define SPOOL_EVENT_WRITTEN 0x68 // SpoolWriter to Spool
138 #define TM_RESULTS 0x70
139 #define TM_ANNOUNCE 0x71
142 #define GL3_SEND_RESULTS 0x70
143 #define GL3_ANNOUNCE_DATA 0x72
144 #define GL3_BUILD_DECISION 0x73
145 #define GL3_ANNOUNCE_TOKEN 0x74
146 #define GL3_PRESCALE 0x75
149 #define GB_BUILD_EVENT 0x80
150 #define GB_ANNOUNCE_DATA 0x81
151 #define GB_SL3_NODES 0x82
157 #define DET_ANNOUNCE_RESULTS 0x90 // to SL3
158 #define DET_ANNOUNCE_TOKEN 0x91 // to GB
159 #define DET_START_SL3 0x92 // to SL3
160 #define DET_CONFIG_DONE 0x94
161 #define DET_ANNOUNCE_DATA 0x93 // to EVB
164 #define DET_CMD_AUTOID 0x96 // to myself
165 #define DET_CMD_ROSEBUD 0x97 // to myself
172 #define DET_EVB_SEND_DONE 0x9D // to myself
173 #define DET_SL3_SEND_DONE 0x9E // to myself
179 #define L4_INIT_DONE 0xa1
181 #define L4_SIMU_DONE 0xa3
182 #define L4_FINISH 0xa4
183 #define L4_FINISH_DONE 0xa5
184 #define L4_DECIDE 0xa6
185 #define L4_DECIDE_DONE 0xa7
187 #define L4_CFGDONE 0xa8
188 #define L4_RUNSTARTDONE 0xa9
189 #define L4_RUNSTOPDONE 0xaa
190 #define L4_SHIPEVENT 0xab
191 #define L4_SHIPEVENTDONE 0xac
192 #define L4_EVP_DONE 0xad
193 #define L4_LOCALWRITE 0xae
194 #define L4_LOCALWRITEDONE 0xaf
197 #define SL3_SEND_RESULTS 0xa0 // SL3->DET, DET->RB
198 #define SL3_ANNOUNCE_RESULTS 0xa1 // ?
199 #define SL3_CONFIRM_SEND 0xa2 // ?
200 #define SL3_SEND_SUMMARY 0xa3 // ?
203 #define EVPL3_SEND_DATA 0xaa
205 #define MZ_PROCESS_SL3 0xb0
206 #define MZ_ANNCE_SL3 0xb1
207 #define MZ_DMA_SL3 0xb2
208 #define MZ_ANNCE_DATA 0xb3
209 #define MZ_DMA_DATA 0xb4
210 #define MZ_EMUL_FIBER 0xb5
211 #define MZ_RUN_START_OK 0xb6
212 #define MZ_RUN_STOP_OK 0xb7
213 #define MZ_EMUL_DMA 0xb8
214 #define MZ_KILL_TOKEN 0xb9
216 #define RB_ANNOUNCE_RESULTS 0xc0 // RB->DET
217 #define RB_ANNOUNCE_DATA 0xc1 // RB->DET
218 #define RB_CONFIRM_SL3 0xc2 // RB->DET
219 #define RB_CONFIRM_DATA 0xc3 // RB->DET
221 #define RB_EMC_EVENT 0xc5
222 #define RB_EMC_ERROR 0xc6
225 #define TRG_BUILD_EVT 0xca
226 #define TRG_DATA_ANNOUNCE 0xcb
229 #define MYRI_QUASI_DIRECT_SEND 0xd0
230 #define BB_ANNOUNCE_EVENT 0xd1
231 #define BB_ANNOUNCE_DATA 0xd2
232 #define BB_SEND_DATA 0xd3
233 #define BB_ANNOUNCE_EVENT_SCSI 0xd4
234 #define BB_CLOSE_SCSI 0xd5
236 #define RCF_WRITE_EVENT 0xd6
237 #define RCF_WRITER_FLUSH 0xd7
238 #define RCF_LIST_WRITTEN 0xd8
239 #define RCF_CONFIRM_EVENT 0xd9
241 #define BBM_ANNOUNCE_DATA 0xda
242 #define BBM_SEND_DATA 0xdb
246 #define QDSEND_ANNOUNCE_CHUNK 0xdc
247 #define QDSEND_SEND_CHUNK 0xde
249 #define VX_REQUEST_FILE 0xdf
250 #define VX_RESPONSE 0xe6
252 #define QMYRI_MEMCPY_START 0xf0
253 #define QMYRI_MEMCPY_DONE 0xf1
254 #define QMYRI_CTL 0xf2
256 #define EVP_REQ_EVENT 0xe0
257 #define EVP_ANNOUNCE_EVENT 0xe1
258 #define EVP_SEND_EVENT 0xe2
259 #define EVP_CONFIRM_SEND 0xe3
260 #define EVP_EVENT_DONE 0xe4
261 #define RTS_ETHDOOR_ANNOUNCE 0xe5
264 #define MCTL_REG_MEM 1
265 #define MCTL_LOG_LEVEL 2