StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
cmds.h
1 /******
2 *
3 * 29Oct99 JMN: Modified to incorporate changes for ICCP 8
4 * Include modifications from Tonko.
5 * 11Dec00 JMN: New commands added for ICCP 9. Removed xxx_EVENT_STATUS
6 *****************************************************************/
7 
8 #ifndef DAQ_ALL_CMDS_HEADER
9 #define DAQ_ALL_CMDS_HEADER
10 
11 #include "rtsCmds.h"
12 
13 #define PING 0x01
14 //#define RESPONSE 0x02
15 #define CANT_SEND 0x2 /* Tonko, Sep04 - response to failed TCP/IP send */
16 #define ACK 0x03
17 #define EVENT_DONE 0x04 /* JMN 11Dec00 */
18 #define ANNOUNCE_NODEID 0x05 /* JMN 11Dec00 */
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
24 #define REBOOT 0x0B
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
29 #define RUN_DONE 0x10
30 #define EVENT_DONE_BLOCKED 0x11
31 
32 // Run control reserves 0x20 -- 0x4f
33 // Handler sends these to DAQ systems
34 // These commands are for DAQ users
35 
36 // These commands are private to Run Control
37 #define DAQ_LOG_MODIFY 0x29
38 #define DAQ_LOG_DATA 0x2a
39 
40 // Internal DAQ commands
41 #define DAQ_CONNECT 0x2b
42 #define DAQ_ERROR 0x2c
43 
44 // Run control commands (also in rtsCmds.h because of history)
45 #ifndef _RTSCMDS_H_
46 #define _RTSCMDS_H_
47 
48 #define DAQ_RUN_START 0x20
49 #define RTS_RUN_START DAQ_RUN_START
50 
51 #define DAQ_RUN_STOP 0x21
52 #define RTS_RUN_STOP DAQ_RUN_STOP
53 
54 #define DAQ_RUN_PAUSE 0x22
55 #define RTS_RUN_PAUSE DAQ_RUN_PAUSE
56 
57 #define DAQ_RUN_RESUME 0x23
58 #define RTS_RUN_RESUME DAQ_RUN_RESUME
59 
60 #define DAQ_SEND_CONFIG 0x24
61 #define RTS_SEND_CONFIG DAQ_SEND_CONFIG
62 
63 #define DAQ_FLUSH_TOKENS 0x27
64 #define RTS_FLUSH_TOKENS DAQ_FLUSH_TOKENS
65 
66 #define DAQ_QUERY_TOKENS 0x28
67 #define RTS_QUERY_TOKENS DAQ_QUERY_TOKENS
68 
69 #define DAQ_SEND_RECONFIG 0x26
70 #define RTS_SEND_RECONFIG DAQ_SEND_RECONFIG
71 
72 #define RTS_FORCE_STOP 0x46
73 #define RTS_RECONNECT 0x48
74 #endif
75 
76 // Commands from DRC
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
87 #define DRC_PING 0x38
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
94 #define DRC_NOP 0x3f
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
108 
109 // Tonko, 9/13/00
110 
111 
112 #define DRC_SEND_LINE 0x47
113 
114 
115 // EVB and Taper
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
133 
134 #define SPOOL_WRITE_EVENT 0x67 // Spool to SpoolWriter
135 #define SPOOL_EVENT_WRITTEN 0x68 // SpoolWriter to Spool
136 
137 // Token Manager
138 #define TM_RESULTS 0x70
139 #define TM_ANNOUNCE 0x71
140 
141 // GL3
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
147 
148 // GB stuff...
149 #define GB_BUILD_EVENT 0x80
150 #define GB_ANNOUNCE_DATA 0x81
151 #define GB_SL3_NODES 0x82
152 
153 //#define GB_CONFIRM_SL3 0x83 // Tonko,9/26/00
154 
155 
156 // DET
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
162 
163 
164 #define DET_CMD_AUTOID 0x96 // to myself
165 #define DET_CMD_ROSEBUD 0x97 // to myself
166 
167 //#define DET_CPY_SL3_HEADER 0x98
168 //#define DET_CPY_EVB_HEADER 0x99
169 //#define DET_FORMAT_DATA_DELAYED 0x9A
170 //#define DET_RELEASE_SL3 0x9C
171 
172 #define DET_EVB_SEND_DONE 0x9D // to myself
173 #define DET_SL3_SEND_DONE 0x9E // to myself
174 
175 //#define L4_STARTEVENT 0xa0
176 //#define L4_EVENTDECISION 0xa1
177 
178 #define L4_INIT 0xa0
179 #define L4_INIT_DONE 0xa1
180 #define L4_SIMU 0xa2
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
186 
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
195 
196 // SL3
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 // ?
201 
202 // L3 EVP
203 #define EVPL3_SEND_DATA 0xaa
204 
205 #define MZ_PROCESS_SL3 0xb0 /* Tonko */
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 /* Tonko */
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
215 
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
220 
221 #define RB_EMC_EVENT 0xc5 /* Tonko */
222 #define RB_EMC_ERROR 0xc6 /* Tonko */
223 
224 // SPECIAL, RESERVED for TRIGGER stuff
225 #define TRG_BUILD_EVT 0xca /* L1CTL->DET; Tonko */
226 #define TRG_DATA_ANNOUNCE 0xcb /* L2->DET; Tonko */
227 
228 
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
235 
236 #define RCF_WRITE_EVENT 0xd6
237 #define RCF_WRITER_FLUSH 0xd7
238 #define RCF_LIST_WRITTEN 0xd8
239 #define RCF_CONFIRM_EVENT 0xd9
240 
241 #define BBM_ANNOUNCE_DATA 0xda
242 #define BBM_SEND_DATA 0xdb
243 
244 
245 
246 #define QDSEND_ANNOUNCE_CHUNK 0xdc
247 #define QDSEND_SEND_CHUNK 0xde
248 
249 #define VX_REQUEST_FILE 0xdf
250 #define VX_RESPONSE 0xe6
251 
252 #define QMYRI_MEMCPY_START 0xf0
253 #define QMYRI_MEMCPY_DONE 0xf1
254 #define QMYRI_CTL 0xf2
255 
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
262 
263 /* subcommands */
264 #define MCTL_REG_MEM 1
265 #define MCTL_LOG_LEVEL 2
266 #define MCTL_NODE 3
267 
268 #endif