versadac  1
versadac - Scalable Recorder Firmware
pniostat.h
1 /*---------------------------------------------------------------------------*/
2 /* Copyright (C) 2006 Woodhead Software & Electonics. All rights reserved. */
3 /*---------------------------------------------------------------------------*/
4 /* This program is protected by international copyright. */
5 /* */
6 /* The use of this software including but not limited to its Source Code */
7 /* is subject to restrictions as agreed in the license agreement between */
8 /* you and Woodhead. */
9 /* Copying or distribution is not allowed unless expressly permitted */
10 /* according to your license agreement with Woodhead. */
11 /*---------------------------------------------------------------------------*/
12 /* */
13 /* Project : STACK PROFINET Controller */
14 /* Component : Hardware Interface */
15 /* $Workfile:: pniostat.h $*/
16 /* $Revision:: 4 $*/
17 /* $Date:: 30/08/10 9:57 $*/
18 /* */
19 /*---------------------------------------------------------------------------*/
20 /* */
21 /* D e s c r i p t i o n : */
22 /* Network Abstraction Layer */
23 /* */
24 /*---------------------------------------------------------------------------*/
25 #ifndef _PNIO_STAT_H
26 #define _PNIO_STAT_H
27 
28 #define PNIO_STAT_OK 0
29 #define PNIO_STAT_PAR 32
30 #define PNIO_STAT_TIMEOUT 33
31 #define PNIO_STAT_NO_INIT 45
32 #define PNIO_STAT_NO_DEF 46
33 #define PNIO_STAT_RESSOURCE 66
34 #define PNIO_STAT_NO_RESSOURCE_USERS 99
35 #define PNIO_STAT_SYS 51
36 #define PNIO_STAT_BUG 52
37 #define PNIO_STAT_TYPE_CONFLICT 69
38 #define PNIO_STAT_ADDRESS 2
39 #define PNIO_STAT_ERR_SLOT 4
40 #define PNIO_STAT_ERR_SUB_SLOT 5
41 #define PNIO_STAT_PNIO 0x81
42 #define PNIO_STAT_READ_RSP 0xDE
43 #define PNIO_STAT_WRITE_RSP 0xDF
44 #define PNIO_STAT_ERR_ALARM 60
45 
46 #define PNIO_STAT_BAD_STATE 0x10000001
47 #define PNIO_STAT_AREP_NULL 0x10000002
48 #define PNIO_STAT_WRONG_ROLE 0x10000003UL
49 #define PNIO_STAT_WRONG_DOMAIN_ID 0x10000004UL
50 
51 
52 /* ERROR DECODE TABLE 277 */
53 #define ERR_DEC_PNIORW 0X80
54 #define ERR_DEC_PNIO 0X81
55 
56 /* if ErrorDEcode == ERR_DEC_PNIO*/
57 /*=> errorcode1 6.2.4.68.4*/
58 #define ERR_CODE1_ARREQ 1
59 #define ERR_CODE1_CRREQ 2
60 #define ERR_CODE1_EXPMODREQ 3
61 #define ERR_CODE1_ALMREQ 4
62 #define ERR_CODE1_PRMSRVREQ 5
63 #define ERR_CODE1_MCRREQ 6
64 #define ERR_CODE1_ARRPCREQ 7
65 #define ERR_CODE1_RWREQ 8
66 #define ERR_CODE1_SRINFOREQ 10
67 #define ERR_CODE1_CTRLCON 20
68 #define ERR_CODE1_CTRLPLUG 21
69 #define ERR_CODE1_CTRLEST 22
70 #define ERR_CODE1_CTRLPGALM 23
71 #define ERR_CODE1_RLS 40
72 #define ERR_CODE1_ARRES 50
73 #define ERR_CODE1_CRRES 51
74 #define ERR_CODE1_ALMRES 52
75 #define ERR_CODE1_MODDIF 53
76 #define ERR_CODE1_ARRPCRES 54
77 #define ERR_CODE1_READ_WRITE_RES 55
78 #define ERR_CODE1_PARAMENDRES 56
79 #define ERR_CODE1_RELEASERES 57
80 #define ERR_CODE1_ALM_ACK 60
81 #define ERR_CODE1_CMDEV 61
82 #define ERR_CODE1_CMCTL 62
83 #define ERR_CODE1_NRPM 63
84 #define ERR_CODE1_RMPM 64
85 #define ERR_CODE1_ALPMI 65
86 #define ERR_CODE1_ALPMR 66
87 #define ERR_CODE1_LMPM 67
88 #define ERR_CODE1_MMAC 68
89 #define ERR_CODE1_RPC 69
90 #define ERR_CODE1_APMR 70
91 #define ERR_CODE1_APMS 71
92 #define ERR_CODE1_CPM 72
93 #define ERR_CODE1_PPM 73
94 #define ERR_CODE1_DCPUCS 74
95 #define ERR_CODE1_DCPUCR 75
96 #define ERR_CODE1_DCPMS 76
97 #define ERR_CODE1_DCPMR 77
98 #define ERR_CODE1_FSPM 78
99 
100 /* if ErrorDEcode == ERR_DEC_PNIORW*/
101 /*=> errorcode1 6.2.4.68.4*/
102 
103 #define MAKE_PNIORW_ERR_CODE1(a,b) ((a<<4)+b)
104 
105 /*error Class = 10 */
106 #define ERR_CLASS_APPLICATION 10
107 #define ERR_CLASS_ACCESS 11
108 #define ERR_CLASS_RESSOURCE 12
109 
110 
111 /* ERR_CLASS_APPLICATION */
112 #define ERR_CODE_READ_ERROR 0
113 #define ERR_CODE_WRITE_ERROR 1
114 #define ERR_CODE_MODULE_FAILURE_ERROR 2
115 #define ERR_CODE_BUSY_ERROR 7
116 #define ERR_CODE_VERSION_CONFLICT 8
117 #define ERR_CODE_FEATURE_NOT_SUPPORTED 9
118 
119 /* ERR_CLASS_APPLICATION */
120 #define ERR_CODE_INVALIDE_INDEX 0
121 #define ERR_CODE_WRITE_LENGTH_ERR 1
122 #define ERR_CODE_INVALID_SLOT_SUBSLOT 2
123 #define ERR_CODE_TYPE_CONFLICT 3
124 #define ERR_CODE_INVALID_AREA 4
125 #define ERR_CODE_STATE_CONFLICT 5
126 #define ERR_CODE_ACCESS_DENIED 6
127 #define ERR_CODE_INVALID_RANGE 7
128 #define ERR_CODE_INVALID_PARAMETER 8
129 #define ERR_CODE_INVALID_TYPE 9
130 #define ERR_CODE_BACKUP 10
131 
132 /* ERR_CLASS_RESSOURCE */
133 #define ERR_CODE_READ_CONSTRAINT 0
134 #define ERR_CODE_WRITE_CONSTRAINT 1
135 #define ERR_CODE_RESSOURCE_BUSY 2
136 #define ERR_CODE_RESSOURCE_UNAVAILABLE 3
137 
138 
139 /* Error specific define by the norme (PNIO - PNIO)*/
140 #define ERR_USER_SPECIFIC_CODE1 255
141 
142 /* Error decode for ERR_USER_SPECIFIC_CODE1*/
143 #define ERR_USER_SPECIFIC_CODE2_CNX_REFUSED 0x0 /* Connection refused by DUA */
144 #define ERR_USER_SPECIFIC_CODE2_ASSERT 0x1 /* Assert in stack */
145 #define ERR_USER_SPECIFIC_CODE2_L2_EVNT 0x2 /* Log dcp event */
146 #define ERR_USER_SPECIFIC_CODE2_STACK_CBF 0x3 /* Log callback function */
147 
148 
149 
150 #define RTA_ERR_CLS_PROTOCOL 253
151 
152 /* ErrorCode 2*/
153 
154 #define RTA_ERR_CODE_SEQ 1
155 #define RTA_ERR_ABORT 2
156 #define RTA_ERR_ABORT_2 2
157 #define RTA_ERR_ABORT_WRONG_STATE 3
158 #define RTA_ERR_ABORT_WRONG_NOTIFICATION 4
159 #define RTA_ERR_ABORT_5 5
160 #define RTA_ERR_ABORT_6 6
161 #define RTA_ERR_ABORT_7 7
162 #define RTA_ERR_ABORT_8 8
163 #define RTA_ERR_ABORT_9 9
164 #define RTA_ERR_ABORT_10 10
165 #define RTA_ERR_ABORT_11 11
166 #define RTA_ERR_ABORT_12 12
167 #define RTA_ERR_ABORT_13 13
168 #define RTA_ERR_ABORT_14 14
169 #define RTA_ERR_ABORT_15 15
170 #define RTA_ERR_ABORT_16 16
171 #define RTA_ERR_ABORT_17 17
172 #define RTA_ERR_ABORT_18 18
173 #define RTA_ERR_ABORT_19 19
174 #define RTA_ERR_ABORT_20 20
175 #define RTA_ERR_ABORT_21 21
176 #define RTA_ERR_ABORT_22 22
177 #define RTA_ERR_ABORT_23 23
178 #define RTA_ERR_ABORT_24 24
179 #define RTA_ERR_ABORT_25 25
180 #define RTA_ERR_ABORT_26 26
181 #define RTA_ERR_ABORT_27 27
182 #define RTA_ERR_ABORT_28 28
183 #define RTA_ERR_ABORT_29 29
184 #define RTA_ERR_ABORT_30 30
185 #define RTA_ERR_ABORT_31 31
186 #define RTA_ERR_ABORT_32 32
187 #define RTA_ERR_ABORT_33 33
188 #define RTA_ERR_ABORT_34 34
189 #define RTA_ERR_ABORT_PDEV 35
190 
191 
192 /* Read/Write error code 2 for PNIORW*/
193 #define ERR_CODE1_PNIORW_READ_WRITE_API 0xB4
194 #define ERR_CODE1_PNIORW_READ_WRITE_SLOT 0xB2
195 #define ERR_CODE1_PNIORW_READ_WRITE_SUBSLOT 0xB2
196 #define ERR_CODE1_PNIORW_READ_WRITE_PADDING 0xB7
197 #define ERR_CODE1_PNIORW_READ_WRITE_INDEX 0xB0
198 
199 /*ARBLOC REQ ERROR CODE 2*/
200 #define ERR_CODE2_ARBLOC_REQ_TYPE 0
201 #define ERR_CODE2_ARBLOC_REQ_LEN 1
202 #define ERR_CODE2_ARBLOC_REQ_VERS_HIGH 2
203 #define ERR_CODE2_ARBLOC_REQ_VERS_LOW 3
204 #define ERR_CODE2_ARBLOC_REQ_ARTYPE 4
205 #define ERR_CODE2_ARBLOC_REQ_ARUUID 5
206 #define ERR_CODE2_ARBLOC_REQ_SESSION_KEY 6
207 #define ERR_CODE2_ARBLOC_REQ_CMINITIATOR_MAC_ADD 7
208 #define ERR_CODE2_ARBLOC_REQ_CMINITIATOR_OBJECT_UUID 8
209 #define ERR_CODE2_ARBLOC_REQ_AR_PRPERTIES 9
210 #define ERR_CODE2_ARBLOC_REQ_CMINITIATOR_ACTIVITY_TIMEOUT_FACTOR 10
211 #define ERR_CODE2_ARBLOC_REQ_INITIATOR_UDPRT_PORT 11
212 #define ERR_CODE2_ARBLOC_REQ_STATION_NAME_LEN 12
213 #define ERR_CODE2_ARBLOC_REQ_CMINITIATOR_STATION_NAME 13
214 
215 
216 
217 /*SRINFO REQ ERROR CODE 2*/
218 #define ERR_CODE2_SRINFOBLOC_REQ_TYPE 0
219 #define ERR_CODE2_SRINFOBLOC_REQ_LEN 1
220 #define ERR_CODE2_SRINFOBLOC_REQ_VERS_HIGH 2
221 #define ERR_CODE2_SRINFOBLOC_REQ_VERS_LOW 3
222 #define ERR_CODE2_SRINFOBLOC_REQ_DHF 4
223 #define ERR_CODE2_SRINFOBLOC_REQ_PROPERTIES 5
224 
225 
226 /*IOCRBLOCKREQ REQ ERROR CODE 2*/
227 #define ERR_CODE2_IOCRBLOC_REQ_TYPE 0
228 #define ERR_CODE2_IOCRBLOC_REQ_LEN 1
229 #define ERR_CODE2_IOCRBLOC_REQ_VERS_HIGH 2
230 #define ERR_CODE2_IOCRBLOC_REQ_VERS_LOW 3
231 #define ERR_CODE2_IOCRBLOC_REQ_IOCRTYPE 4
232 #define ERR_CODE2_IOCRBLOC_REQ_IOCR_REF 5
233 #define ERR_CODE2_IOCRBLOC_REQ_LT 6
234 #define ERR_CODE2_IOCRBLOC_REQ_PROPERTIES 7
235 #define ERR_CODE2_IOCRBLOC_REQ_DATA_LEN 8
236 #define ERR_CODE2_IOCRBLOC_REQ_FRAME_ID 9
237 #define ERR_CODE2_IOCRBLOC_REQ_SEND_CLOCK_FACTOR 10
238 #define ERR_CODE2_IOCRBLOC_REQ_REDUCTION_RATIO 11
239 #define ERR_CODE2_IOCRBLOC_REQ_PHASE 12
240 #define ERR_CODE2_IOCRBLOC_REQ_SEQUENCE 13
241 #define ERR_CODE2_IOCRBLOC_REQ_FRAME_SEND_OFFSET 14
242 #define ERR_CODE2_IOCRBLOC_REQ_WATCHDOG_FACTOR 15
243 #define ERR_CODE2_IOCRBLOC_REQ_DATA_HOLD_FACTOR 16
244 #define ERR_CODE2_IOCRBLOC_REQ_IOCR_TAG_HEADER 17
245 #define ERR_CODE2_IOCRBLOC_REQ_IOCR_MULTI_CAST 18
246 #define ERR_CODE2_IOCRBLOC_REQ_NUMBER_OF_API 19
247 #define ERR_CODE2_IOCRBLOC_REQ_API 20
248 #define ERR_CODE2_IOCRBLOC_REQ_NUMBER_OF_IODATAOBJECT 21
249 #define ERR_CODE2_IOCRBLOC_REQ_SLOT_NUMBER 22
250 #define ERR_CODE2_IOCRBLOC_REQ_SUB_SLOT_NUMBER 23
251 #define ERR_CODE2_IOCRBLOC_REQ_IODATA_OBJECT_FRAME_OFFSET 24
252 #define ERR_CODE2_IOCRBLOC_REQ_NUMBER_OF_IOCS 25
253 #define ERR_CODE2_IOCRBLOC_REQ_IOCS_SLOT_NUMBER 26
254 #define ERR_CODE2_IOCRBLOC_REQ_IOCS_SUB_SLOT_NUMBER 27
255 #define ERR_CODE2_IOCRBLOC_REQ_IOCS_IOCS_FRAME_OFFSET 28
256 
257 /*Expected submodule req */
258 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_TYPE 0
259 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_LEN 1
260 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_VERS_HIGH 2
261 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_VERS_LOW 3
262 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_NUMBER_OF_API 4
263 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_API 5
264 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_SLOT_NUMBER 6
265 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_MODULE_IDENT_NUMBER 7
266 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_MODULE_PROPERTIES 8
267 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_NUMBEROF_SUBMODULES 9
268 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_SUBSLOT_NUMBER 10
269 /* la norme ne definit pas d'erreur 11 */
270 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_SUBMODULE_PROPERTIES 12
271 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_DATA_DESCRIPTION 13
272 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_DATA_LENGHT 14
273 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_LENGHT_IOPS 15
274 #define ERR_CODE2_EXPECTED_SUBMODULE_REQ_LENGHT_IOCS 16
275 
276 /*ARBLOC RES ERROR CODE 2*/
277 #define ERR_CODE2_ARBLOC_RES_TYPE 0
278 #define ERR_CODE2_ARBLOC_RES_LEN 1
279 #define ERR_CODE2_ARBLOC_RES_VERS_HIGH 2
280 #define ERR_CODE2_ARBLOC_RES_VERS_LOW 3
281 #define ERR_CODE2_ARBLOC_RES_ARTYPE 4
282 #define ERR_CODE2_ARBLOC_RES_ARUUID 5
283 #define ERR_CODE2_ARBLOC_RES_SESSION_KEY 6
284 #define ERR_CODE2_ARBLOC_RES_RESP_MAC 7
285 #define ERR_CODE2_ARBLOC_RES_UDP_PORT 8
286 
287 /* CRBLOC RES ERROR CODE 2*/
288 #define ERR_CODE2_CRBLOC_RES_TYPE 0
289 #define ERR_CODE2_CRBLOC_RES_LEN 1
290 #define ERR_CODE2_CRBLOC_RES_VERS_HIGH 2
291 #define ERR_CODE2_CRBLOC_RES_VERS_LOW 3
292 #define ERR_CODE2_CRBLOC_RES_IOCR_TYPE 4
293 #define ERR_CODE2_CRBLOC_RES_IOCR_REF 5
294 #define ERR_CODE2_CRBLOC_RES_FRAMEID 6
295 
296 /* Alarm RES ERROR CODE */
297 #define ERR_CODE2_ALMBLOC_RES_TYPE 0
298 #define ERR_CODE2_ALMBLOC_RES_LEN 1
299 #define ERR_CODE2_ALMBLOC_RES_VERS_HIGH 2
300 #define ERR_CODE2_ALMBLOC_RES_VERS_LOW 3
301 #define ERR_CODE2_ALMBLOC_RES_ALMTYPE 4
302 #define ERR_CODE2_ALMBLOC_RES_REFERENCE 5
303 #define ERR_CODE2_ALMBLOC_RES_DATALEN 6
304 
305 /* Alarm REQ ERROR CODE */
306 #define ERR_CODE2_ALMBLOC_REQ_TYPE 0
307 #define ERR_CODE2_ALMBLOC_REQ_LEN 1
308 #define ERR_CODE2_ALMBLOC_REQ_VERS_HIGH 2
309 #define ERR_CODE2_ALMBLOC_REQ_VERS_LOW 3
310 #define ERR_CODE2_ALMBLOC_REQ_ALMTYPE 4
311 #define ERR_CODE2_ALMBLOC_REQ_LT 5
312 #define ERR_CODE2_ALMBLOC_REQ_CRPROPERTIES 6
313 #define ERR_CODE2_ALMBLOC_REQ_RTA_TIMEOUT_FACTOR 7
314 #define ERR_CODE2_ALMBLOC_REQ_RTA_RETRIES 8
315 #define ERR_CODE2_ALMBLOC_REQ_LOCAL_ALARM_REFERENCE 9
316 #define ERR_CODE2_ALMBLOC_REQ_MAX_ALAMR_DATA_LEN 10
317 #define ERR_CODE2_ALMBLOC_REQ_CR_TAG_HEADERHIGHT 11
318 #define ERR_CODE2_ALMBLOC_REQ_CR_TAG_HEADERLOW 12
319 
320 
321 /*PrmServerBlock */
322 #define ERR_CODE2_PRM_SERVER_REQ_TYPE 0
323 #define ERR_CODE2_PRM_SERVER_REQ_LEN 1
324 #define ERR_CODE2_PRM_SERVER_REQ_VERS_HIGH 2
325 #define ERR_CODE2_PRM_SERVER_REQ_VERS_LOW 3
326 #define ERR_CODE2_PRM_SERVER_REQ_PARAMETER_SERVER_OBJECT_UUID 4
327 #define ERR_CODE2_PRM_SERVER_REQ_PARAMETER_SERVER_PRPERTIES 5
328 #define ERR_CODE2_PRM_SERVER_REQ_CMINITIATOR_ACTIVITY_TIMEOUT 6
329 #define ERR_CODE2_PRM_SERVER_REQ_STATION_NAME_LEN 7
330 #define ERR_CODE2_PRM_SERVER_REQ_PARAMETERS_SERVER_STATION_NAME 8
331 
332 /*MCR Block Req */
333 #define ERR_CODE2_MCR_SERVER_REQ_TYPE 0
334 #define ERR_CODE2_MCR_SERVER_REQ_LEN 1
335 #define ERR_CODE2_MCR_SERVER_REQ_VERS_HIGH 2
336 #define ERR_CODE2_MCR_SERVER_REQ_VERS_LOW 3
337 #define ERR_CODE2_MCR_SERVER_REQ_IOCR_REFERENCE 4
338 #define ERR_CODE2_MCR_SERVER_REQ_ADRESSE_RESOLUTION 5
339 #define ERR_CODE2_MCR_SERVER_REQ_MCI_TIMEOUT_FACTOR 6
340 #define ERR_CODE2_MCR_SERVER_REQ_STATION_NAME_LEN 7
341 #define ERR_CODE2_MCR_SERVER_REQ_PROVIDER_STATION_NAME 8
342 
343 
344 /* PRM SERVER ERROR CODE */
345 #define ERR_CODE2_PRMBLOC_RES_TYPE 0
346 #define ERR_CODE2_PRMBLOC_RES_LEN 1
347 #define ERR_CODE2_PRMBLOC_RES_VERS_HIGH 2
348 #define ERR_CODE2_PRMBLOC_RES_VERS_LOW 3
349 
350 /* ARRPCBlockReq ERROR CODE */
351 #define ERR_CODE2_ARRPC_REQ_TYPE 0
352 #define ERR_CODE2_ARRPC_REQ_LEN 1
353 #define ERR_CODE2_ARRPC_REQ_VERS_HIGH 2
354 #define ERR_CODE2_ARRPC_REQ_VERS_LOW 3
355 #define ERR_CODE2_ARRPC_REQ_INITIATOR_RPC_PORT 4
356 
357 /* MODDIF RES ERROR CODE 2*/
358 #define ERR_CODE2_MODIF_RES_TYPE 0
359 #define ERR_CODE2_MODIF_RES_LEN 1
360 #define ERR_CODE2_MODIF_RES_VERS_HIGH 2
361 #define ERR_CODE2_MODIF_RES_VERS_LOW 3
362 #define ERR_CODE2_MODIF_RES_NB_API 4
363 #define ERR_CODE2_MODIF_RES_API 5
364 #define ERR_CODE2_MODIF_RES_NB_MODULE 6
365 #define ERR_CODE2_MODIF_RES_SLOT 7
366 #define ERR_CODE2_MODIF_RES_MODSTATE 8
367 #define ERR_CODE2_MODIF_RES_NB_SUB_MOD 9
368 #define ERR_CODE2_MODIF_RES_SUBSLOT 10
369 #define ERR_CODE2_MODIF_RES_SUBSLOT_ID 11
370 #define ERR_CODE2_MODIF_RES_SUBSLOT_STATE 12
371 
372 /* Read/Write error code 2 */
373 #define ERR_CODE2_READ_WRITE_TYPE 0
374 #define ERR_CODE2_READ_WRITE_LEN 1
375 #define ERR_CODE2_READ_WRITE_VERS_HIGH 2
376 #define ERR_CODE2_READ_WRITE_VERS_LOW 3
377 #define ERR_CODE2_READ_WRITE_SEQNUM 4
378 #define ERR_CODE2_READ_WRITE_ARUUID 5
379 #define ERR_CODE2_READ_WRITE_API 6
380 #define ERR_CODE2_READ_WRITE_SLOTNUMBER 7
381 #define ERR_CODE2_READ_WRITE_SUBSLOTNUMBER 8
382 #define ERR_CODE2_READ_WRITE_PADDING 9
383 #define ERR_CODE2_READ_WRITE_INDEX 10
384 #define ERR_CODE2_READ_WRITE_RECORDLEN 11
385 #define ERR_CODE2_READ_WRITE_TARGET_ARUUID 12
386 
387 /* APMS ERROR CODE 2 */
388 #define ERR_CODE2_APMS_INVALID_STATE 0
389 #define ERR_CODE2_APMS_LMPM_ERROR 1
390 #define ERR_CODE2_APMS_TIMEOUT 2
391 
392 /* APMR ERROR CODE 2 */
393 #define ERR_CODE2_APMR_INVALID_STATE 0
394 #define ERR_CODE2_APMR_LMPM_ERROR 1
395 #define ERR_CODE2_APMR_TIMEOUT 2
396 
397 /* CMCTL ERROR CODE 2 */
398 #define ERR_CODE2_CMCTL_STATE_CONFLICT 0
399 #define ERR_CODE2_CMCTL_TIMEOUT 1
400 #define ERR_CODE2_CMCTL_NO_DATA_SEND 2
401 #define ERR_CODE2_CMCTL_BAD_ARG_LEN 3
402 #define ERR_CODE2_CMCTL_UNKNOW_BLOC 4
403 
404 
405 /* IOXCONTROL param (application ready response)*/
406 #define ERR_CODE2_IOXC_APP_RDY_REQ_TYPE 0
407 #define ERR_CODE2_IOXC_APP_RDY_REQ_LEN 1
408 #define ERR_CODE2_IOXC_APP_RDY_REQ_VERS_HIGH 2
409 #define ERR_CODE2_IOXC_APP_RDY_REQ_VERS_LOW 3
410 #define ERR_CODE2_IOXC_APP_RDY_REQ_PADDING1 4
411 #define ERR_CODE2_IOXC_APP_RDY_REQ_SESSION_KEY 6
412 #define ERR_CODE2_IOXC_APP_RDY_REQ_PADDING2 7
413 #define ERR_CODE2_IOXC_APP_RDY_REQ_CTRL_CMD 8
414 #define ERR_CODE2_IOXC_APP_RDY_REQ_CTRL_PROP 9
415 
416 /* Paam end response */
417 #define ERR_CODE2_IOXC_PARAMEND_RES_TYPE 0
418 #define ERR_CODE2_IOXC_PARAMEND_RES_LEN 1
419 #define ERR_CODE2_IOXC_PARAMEND_RES_VERS_HIGH 2
420 #define ERR_CODE2_IOXC_PARAMEND_RES_VERS_LOW 3
421 #define ERR_CODE2_IOXC_PARAMEND_RES_PADDING1 4
422 #define ERR_CODE2_IOXC_PARAMEND_RES_ARUUID 5
423 #define ERR_CODE2_IOXC_PARAMEND_RES_SESSION_KEY 6
424 #define ERR_CODE2_IOXC_PARAMEND_RES_PADDING2 7
425 #define ERR_CODE2_IOXC_PARAMEND_RES_CTRL_CMD 8
426 #define ERR_CODE2_IOXC_PARAMEND_RES_CTRL_PROP 9
427 
428 
429 /* IODCONTROL req */
430 #define ERR_CODE2_IODC_CONNECT_REQ_TYPE 0
431 #define ERR_CODE2_IODC_CONNECT_REQ_LEN 1
432 #define ERR_CODE2_IODC_CONNECT_REQ_VERS_HIGH 2
433 #define ERR_CODE2_IODC_CONNECT_REQ_VERS_LOW 3
434 #define ERR_CODE2_IODC_CONNECT_REQ_PADDING1 4
435 #define ERR_CODE2_IODC_CONNECT_REQ_ARUUID 5
436 #define ERR_CODE2_IODC_CONNECT_REQ_SESSION_KEY 6
437 #define ERR_CODE2_IODC_CONNECT_REQ_PADDING2 7
438 #define ERR_CODE2_IODC_CONNECT_REQ_CTRL_CMD 8
439 #define ERR_CODE2_IODC_CONNECT_REQ_CTRL_PROP 9
440 
441 /* RELEASE req */
442 #define ERR_CODE2_RELEASE_REQ_TYPE 0
443 #define ERR_CODE2_RELEASE_REQ_LEN 1
444 #define ERR_CODE2_RELEASE_REQ_VERS_HIGH 2
445 #define ERR_CODE2_RELEASE_REQ_VERS_LOW 3
446 #define ERR_CODE2_RELEASE_REQ_PADDING1 4
447 #define ERR_CODE2_RELEASE_REQ_ARUUID 5
448 #define ERR_CODE2_RELEASE_REQ_SESSION_KEY 6
449 #define ERR_CODE2_RELEASE_REQ_PADDING2 7
450 #define ERR_CODE2_RELEASE_REQ_CTRL_CMD 8
451 #define ERR_CODE2_RELEASE_REQ_CTRL_PROP 9
452 
453 /* IODCONTROL param (Plug alarm)*/
454 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_TYPE 0
455 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_LEN 1
456 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_VERS_HIGH 2
457 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_VERS_LOW 3
458 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_PADDING1 4
459 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_ARUUID 5
460 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_SESSION_KEY 6
461 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_ALARM_SEQ_NUMBER 7
462 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_CTRL_CMD 8
463 #define ERR_CODE2_IODC_PLUG_ALARM_REQ_CTRL_PROP 9
464 
465 /* Release res */
466 #define ERR_CODE2_RELEASE_RES_TYPE 0
467 #define ERR_CODE2_RELEASE_RES_LEN 1
468 #define ERR_CODE2_RELEASE_RES_VERS_HIGH 2
469 #define ERR_CODE2_RELEASE_RES_VERS_LOW 3
470 #define ERR_CODE2_RELEASE_RES_REQ_PADDING1 4
471 #define ERR_CODE2_RELEASE_RES_REQ_ARUUID 5
472 #define ERR_CODE2_RELEASE_RES_REQ_SESSION_KEY 6
473 #define ERR_CODE2_RELEASE_RES_REQ_PADDING2 7
474 #define ERR_CODE2_RELEASE_RES_REQ_CTRL_CMD 8
475 #define ERR_CODE2_RELEASE_RES_REQ_CTRL_PROP 9
476 
477 /* NRPM ERROR CODE 2 */
478 #define ERR_CODE2_NRPM_NO_DCP_ACTIVE 0
479 #define ERR_CODE2_NRPM_UNKNOW_REAL_STATION 1
480 #define ERR_CODE2_NRPM_NO_REAL_STATION 2
481 #define ERR_CODE2_NRPM_MULTIPLE_REAL_STATION 3
482 #define ERR_CODE2_NRPM_NO_STATION_NAME 4
483 #define ERR_CODE2_NRPM_NO_IP_ADDR 5
484 #define ERR_CODE2_NRPM_DCP_SET_ERROR 6
485 
486 /* RMPM ERROR CODE 2 */
487 #define ERR_CODE2_RMPM_ARGLEN_INVALID 0
488 #define ERR_CODE2_RMPM_UNKNOW_BLOC 1
489 #define ERR_CODE2_RMPM_IOCR_MISSING 2
490 #define ERR_CODE2_RMPM_WRONG_ALRM_COUNT 3
491 #define ERR_CODE2_RMPM_OUT_OF_AR_RESSOURC 4
492 #define ERR_CODE2_RMPM_AR_UUID_UNKNOWN 5
493 #define ERR_CODE2_RMPM_STATE_CONFLICT 6
494 #define ERR_CODE2_RMPM_OUT_OF_CR_RESSOURC 7 /* 2.2*/
495 #define ERR_CODE2_RMPM_OUT_OF_MEMORY 8 /* 2.2*/
496 #define ERR_CODE2_RMPM_NO_DCP_ACTIVE 9
497 
498 /* Norme 2.2 - ligne 461 table 337*/
499 #define ERR_CODE2_CMDEV_STATE_CONFLICT 0
500 #define ERR_CODE2_CMDEV_STATE_RESSOURCE 1
501 
502 /* RPC Error Code 2*/
503 #define ERR_CODE2_RPC_ERR_REJECTED 1
504 #define ERR_CODE2_RPC_ERR_FAULTED 2
505 #define ERR_CODE2_RPC_ERR_TIMEOUT 3
506 #define ERR_CODE2_RPC_ERR_IN_ARGS 4
507 #define ERR_CODE2_RPC_ERR_OUT_ARGS 5
508 #define ERR_CODE2_RPC_ERR_DECODE 6
509 #define ERR_CODE2_RPC_ERR_PNIO_OUT_ARGS 7
510 #define ERR_CODE2_RPC_ERR_PNIO_APP_TIMEOUT 8
511 
512 #endif