comparison gsm-fw/cdg/cdginc-locosto/p_sim.h @ 654:95c433d8c274

gsm-fw/cdg: LoCosto version of cdginc regenerated
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 25 Sep 2014 09:46:42 +0000
parents
children
comparison
equal deleted inserted replaced
653:31d82d090499 654:95c433d8c274
1 /*
2 +--------------------------------------------------------------------------+
3 | PROJECT : PROTOCOL STACK |
4 | FILE : p_sim.h |
5 | SOURCE : "sap\sim.pdf" |
6 | LastModified : "2003-01-24" |
7 | IdAndVersion : "6147.108.99.113" |
8 | SrcFileTime : "Fri Jul 4 11:26:04 2008" |
9 | Generated by CCDGEN_2.5.5A on Thu Sep 25 09:18:53 2014 |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! |
11 +--------------------------------------------------------------------------+
12 */
13
14 /* PRAGMAS
15 * PREFIX : NONE
16 * COMPATIBILITY_DEFINES : NO (require PREFIX)
17 * ALWAYS_ENUM_IN_VAL_FILE: NO
18 * ENABLE_GROUP: NO
19 * CAPITALIZE_TYPENAME: NO
20 */
21
22
23 #ifndef P_SIM_H
24 #define P_SIM_H
25
26
27 #define CDG_ENTER__P_SIM_H
28
29 #define CDG_ENTER__FILENAME _P_SIM_H
30 #define CDG_ENTER__P_SIM_H__FILE_TYPE CDGINC
31 #define CDG_ENTER__P_SIM_H__LAST_MODIFIED _2003_01_24
32 #define CDG_ENTER__P_SIM_H__ID_AND_VERSION _6147_108_99_113
33
34 #define CDG_ENTER__P_SIM_H__SRC_FILE_TIME _Fri_Jul_4_11_26_04_2008
35
36 #include "CDG_ENTER.h"
37
38 #undef CDG_ENTER__P_SIM_H
39
40 #undef CDG_ENTER__FILENAME
41
42
43 #include "p_sim.val"
44
45 #ifndef __T_imsi_field__
46 #define __T_imsi_field__
47 /*
48 * international mobile subscriber identity
49 * CCDGEN:WriteStruct_Count==3009
50 */
51 typedef struct
52 {
53 U8 c_field; /*< 0: 1> length of imsi */
54 U8 field[MAX_IMSI]; /*< 1: 9> imsi */
55 U8 _align0; /*< 10: 1> alignment */
56 U8 _align1; /*< 11: 1> alignment */
57 } T_imsi_field;
58 #endif
59
60 #ifndef __T_loc_info__
61 #define __T_loc_info__
62 /*
63 * location information
64 * CCDGEN:WriteStruct_Count==3010
65 */
66 typedef struct
67 {
68 U8 c_loc; /*< 0: 1> Length of Location Information */
69 U8 loc[MAX_LOCIGSM]; /*< 1: 11> Location Information */
70 } T_loc_info;
71 #endif
72
73 #ifndef __T_acc_ctrl__
74 #define __T_acc_ctrl__
75 /*
76 * access control classes
77 * CCDGEN:WriteStruct_Count==3011
78 */
79 typedef struct
80 {
81 U8 c_acc; /*< 0: 1> length of access control classes */
82 U8 acc[2]; /*< 1: 2> access control classes */
83 U8 _align0; /*< 3: 1> alignment */
84 } T_acc_ctrl;
85 #endif
86
87 #ifndef __T_bcch_inf__
88 #define __T_bcch_inf__
89 /*
90 * BCCH information
91 * CCDGEN:WriteStruct_Count==3012
92 */
93 typedef struct
94 {
95 U8 c_bcch; /*< 0: 1> Length of bcch information */
96 U8 bcch[16]; /*< 1: 16> bcch information */
97 U8 _align0; /*< 17: 1> alignment */
98 U8 _align1; /*< 18: 1> alignment */
99 U8 _align2; /*< 19: 1> alignment */
100 } T_bcch_inf;
101 #endif
102
103 #ifndef __T_kc_n__
104 #define __T_kc_n__
105 /*
106 * Kc and cipher key sequence number
107 * CCDGEN:WriteStruct_Count==3013
108 */
109 typedef struct
110 {
111 U8 c_kc; /*< 0: 1> Length of data field */
112 U8 kc[MAX_KC + 1]; /*< 1: 9> authentication parameter Kc */
113 U8 _align0; /*< 10: 1> alignment */
114 U8 _align1; /*< 11: 1> alignment */
115 } T_kc_n;
116 #endif
117
118 #ifndef __T_forb_plmn__
119 #define __T_forb_plmn__
120 /*
121 * Forbidden PLMN list
122 * CCDGEN:WriteStruct_Count==3014
123 */
124 typedef struct
125 {
126 U8 c_forb; /*< 0: 1> length of forbidden PLMN list */
127 U8 forb[12]; /*< 1: 12> Forbidden PLMN list */
128 U8 _align0; /*< 13: 1> alignment */
129 U8 _align1; /*< 14: 1> alignment */
130 U8 _align2; /*< 15: 1> alignment */
131 } T_forb_plmn;
132 #endif
133
134 #ifndef __T_stk_cmd__
135 #define __T_stk_cmd__
136 /*
137 * SIM toolkit command
138 * CCDGEN:WriteStruct_Count==3015
139 */
140 typedef struct
141 {
142 U16 l_cmd; /*< 0: 2> command length */
143 U16 o_cmd; /*< 2: 2> command offset */
144 U8 cmd[MAX_STK_CMD]; /*< 4:256> command data */
145 } T_stk_cmd;
146 #endif
147
148 #ifndef __T_gprs_loc_info__
149 #define __T_gprs_loc_info__
150 /*
151 * location information
152 * CCDGEN:WriteStruct_Count==3016
153 */
154 typedef struct
155 {
156 U8 c_loc; /*< 0: 1> Length of Location Information */
157 U8 loc[MAX_LOCIGPRS]; /*< 1: 14> Location Information */
158 U8 _align0; /*< 15: 1> alignment */
159 } T_gprs_loc_info;
160 #endif
161
162 #ifndef __T_cbmid_rec__
163 #define __T_cbmid_rec__
164 /*
165 * This structure contains the CBMID records
166 * CCDGEN:WriteStruct_Count==3017
167 */
168 typedef struct
169 {
170 U8 c_rec; /*< 0: 1> counter */
171 U8 rec[MAX_CBMID_REC]; /*< 1:255> Records in the EF(CBMID) */
172 } T_cbmid_rec;
173 #endif
174
175 #ifndef __T_path_info__
176 #define __T_path_info__
177 /*
178 * Path information
179 * CCDGEN:WriteStruct_Count==3018
180 */
181 typedef struct
182 {
183 U16 df_level1; /*< 0: 2> First level directory */
184 U8 _align0; /*< 2: 1> alignment */
185 U8 v_df_level2; /*< 3: 1> valid-flag */
186 U16 df_level2; /*< 4: 2> Second level directory */
187 U8 _align1; /*< 6: 1> alignment */
188 U8 _align2; /*< 7: 1> alignment */
189 } T_path_info;
190 #endif
191
192 #ifndef __T_file_info__
193 #define __T_file_info__
194 /*
195 * File Information for FILE UPDATE
196 * CCDGEN:WriteStruct_Count==3019
197 */
198 typedef struct
199 {
200 U16 datafield; /*< 0: 2> data field identification */
201 U8 _align0; /*< 2: 1> alignment */
202 U8 v_path_info; /*< 3: 1> valid-flag */
203 T_path_info path_info; /*< 4: 8> Path information */
204 } T_file_info;
205 #endif
206
207
208 /*
209 * End of substructure section, begin of primitive definition section
210 */
211
212 #ifndef __T_SIM_READ_REQ__
213 #define __T_SIM_READ_REQ__
214 /*
215 *
216 * CCDGEN:WriteStruct_Count==3020
217 */
218 typedef struct
219 {
220 U16 source; /*< 0: 2> source process */
221 U16 offset; /*< 2: 2> offset of data field */
222 U16 datafield; /*< 4: 2> data field identification */
223 U8 req_id; /*< 6: 1> used to uniquely identify requests to SIM */
224 U8 length; /*< 7: 1> length of data field */
225 U8 max_length; /*< 8: 1> Maximum of length */
226 U8 _align0; /*< 9: 1> alignment */
227 U8 _align1; /*< 10: 1> alignment */
228 U8 v_path_info; /*< 11: 1> valid-flag */
229 T_path_info path_info; /*< 12: 8> Path information */
230 } T_SIM_READ_REQ;
231 #endif
232
233 #ifndef __T_SIM_READ_CNF__
234 #define __T_SIM_READ_CNF__
235 /*
236 *
237 * CCDGEN:WriteStruct_Count==3021
238 */
239 typedef struct
240 {
241 U16 cause; /*< 0: 2> error code */
242 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
243 U8 length; /*< 3: 1> length of data field */
244 U8 trans_data[MAX_SIM_CMD]; /*< 4:256> Transparent data content */
245 } T_SIM_READ_CNF;
246 #endif
247
248 #ifndef __T_SIM_UPDATE_REQ__
249 #define __T_SIM_UPDATE_REQ__
250 /*
251 *
252 * CCDGEN:WriteStruct_Count==3022
253 */
254 typedef struct
255 {
256 U16 source; /*< 0: 2> source process */
257 U16 offset; /*< 2: 2> offset of data field */
258 U16 datafield; /*< 4: 2> data field identification */
259 U8 req_id; /*< 6: 1> used to uniquely identify requests to SIM */
260 U8 v_path_info; /*< 7: 1> valid-flag */
261 T_path_info path_info; /*< 8: 8> Path information */
262 U8 length; /*< 16: 1> length of data field */
263 U8 trans_data[MAX_SIM_CMD]; /*< 17:256> Transparent data content */
264 U8 _align0; /*<273: 1> alignment */
265 U8 _align1; /*<274: 1> alignment */
266 U8 _align2; /*<275: 1> alignment */
267 } T_SIM_UPDATE_REQ;
268 #endif
269
270 #ifndef __T_SIM_UPDATE_CNF__
271 #define __T_SIM_UPDATE_CNF__
272 /*
273 *
274 * CCDGEN:WriteStruct_Count==3023
275 */
276 typedef struct
277 {
278 U16 cause; /*< 0: 2> error code */
279 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
280 U8 _align0; /*< 3: 1> alignment */
281 } T_SIM_UPDATE_CNF;
282 #endif
283
284 #ifndef __T_SIM_READ_RECORD_REQ__
285 #define __T_SIM_READ_RECORD_REQ__
286 /*
287 *
288 * CCDGEN:WriteStruct_Count==3024
289 */
290 typedef struct
291 {
292 U16 source; /*< 0: 2> source process */
293 U8 record; /*< 2: 1> record number */
294 U8 length; /*< 3: 1> length of data field */
295 U16 datafield; /*< 4: 2> data field identification */
296 U8 req_id; /*< 6: 1> used to uniquely identify requests to SIM */
297 U8 v_path_info; /*< 7: 1> valid-flag */
298 T_path_info path_info; /*< 8: 8> Path information */
299 } T_SIM_READ_RECORD_REQ;
300 #endif
301
302 #ifndef __T_SIM_READ_RECORD_CNF__
303 #define __T_SIM_READ_RECORD_CNF__
304 /*
305 *
306 * CCDGEN:WriteStruct_Count==3025
307 */
308 typedef struct
309 {
310 U16 cause; /*< 0: 2> error code */
311 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
312 U8 max_record; /*< 3: 1> Maximum record number */
313 U8 length; /*< 4: 1> length of data field */
314 U8 linear_data[MAX_SIM_CMD]; /*< 5:256> Linear fixed data content */
315 U8 _align0; /*<261: 1> alignment */
316 U8 _align1; /*<262: 1> alignment */
317 U8 _align2; /*<263: 1> alignment */
318 } T_SIM_READ_RECORD_CNF;
319 #endif
320
321 #ifndef __T_SIM_UPDATE_RECORD_REQ__
322 #define __T_SIM_UPDATE_RECORD_REQ__
323 /*
324 *
325 * CCDGEN:WriteStruct_Count==3026
326 */
327 typedef struct
328 {
329 U16 source; /*< 0: 2> source process */
330 U8 record; /*< 2: 1> record number */
331 U8 req_id; /*< 3: 1> used to uniquely identify requests to SIM */
332 U16 datafield; /*< 4: 2> data field identification */
333 U8 length; /*< 6: 1> length of data field */
334 U8 v_path_info; /*< 7: 1> valid-flag */
335 T_path_info path_info; /*< 8: 8> Path information */
336 U8 linear_data[MAX_SIM_CMD]; /*< 16:256> Linear fixed data content */
337 } T_SIM_UPDATE_RECORD_REQ;
338 #endif
339
340 #ifndef __T_SIM_UPDATE_RECORD_CNF__
341 #define __T_SIM_UPDATE_RECORD_CNF__
342 /*
343 *
344 * CCDGEN:WriteStruct_Count==3027
345 */
346 typedef struct
347 {
348 U16 cause; /*< 0: 2> error code */
349 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
350 U8 _align0; /*< 3: 1> alignment */
351 } T_SIM_UPDATE_RECORD_CNF;
352 #endif
353
354 #ifndef __T_SIM_INCREMENT_REQ__
355 #define __T_SIM_INCREMENT_REQ__
356 /*
357 *
358 * CCDGEN:WriteStruct_Count==3028
359 */
360 typedef struct
361 {
362 U16 source; /*< 0: 2> source process */
363 U16 datafield; /*< 2: 2> data field identification */
364 U8 req_id; /*< 4: 1> used to uniquely identify requests to SIM */
365 U8 length; /*< 5: 1> length of data field */
366 U8 _align0; /*< 6: 1> alignment */
367 U8 v_path_info; /*< 7: 1> valid-flag */
368 T_path_info path_info; /*< 8: 8> Path information */
369 U8 linear_data[MAX_SIM_CMD]; /*< 16:256> Linear fixed data content */
370 } T_SIM_INCREMENT_REQ;
371 #endif
372
373 #ifndef __T_SIM_INCREMENT_CNF__
374 #define __T_SIM_INCREMENT_CNF__
375 /*
376 *
377 * CCDGEN:WriteStruct_Count==3029
378 */
379 typedef struct
380 {
381 U16 cause; /*< 0: 2> error code */
382 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
383 U8 length; /*< 3: 1> length of data field */
384 U8 linear_data[MAX_SIM_CMD]; /*< 4:256> Linear fixed data content */
385 } T_SIM_INCREMENT_CNF;
386 #endif
387
388 #ifndef __T_SIM_VERIFY_PIN_REQ__
389 #define __T_SIM_VERIFY_PIN_REQ__
390 /*
391 *
392 * CCDGEN:WriteStruct_Count==3030
393 */
394 typedef struct
395 {
396 U16 source; /*< 0: 2> source process */
397 U8 pin[MAX_PIN_LEN]; /*< 2: 8> personal identification number */
398 U8 pin_id; /*< 10: 1> PIN identification */
399 U8 _align0; /*< 11: 1> alignment */
400 } T_SIM_VERIFY_PIN_REQ;
401 #endif
402
403 #ifndef __T_SIM_VERIFY_PIN_CNF__
404 #define __T_SIM_VERIFY_PIN_CNF__
405 /*
406 *
407 * CCDGEN:WriteStruct_Count==3031
408 */
409 typedef struct
410 {
411 U16 cause; /*< 0: 2> error code */
412 U8 pin_id; /*< 2: 1> PIN identification */
413 U8 pin_cnt; /*< 3: 1> PIN counter */
414 U8 puk_cnt; /*< 4: 1> PUK counter */
415 U8 pin2_cnt; /*< 5: 1> PIN 2 counter */
416 U8 puk2_cnt; /*< 6: 1> PUK 2 counter */
417 U8 _align0; /*< 7: 1> alignment */
418 } T_SIM_VERIFY_PIN_CNF;
419 #endif
420
421 #ifndef __T_SIM_CHANGE_PIN_REQ__
422 #define __T_SIM_CHANGE_PIN_REQ__
423 /*
424 *
425 * CCDGEN:WriteStruct_Count==3032
426 */
427 typedef struct
428 {
429 U16 source; /*< 0: 2> source process */
430 U8 old_pin[MAX_PIN_LEN]; /*< 2: 8> personal identification number */
431 U8 new_pin[MAX_PIN_LEN]; /*< 10: 8> personal identification number */
432 U8 pin_id; /*< 18: 1> PIN identification */
433 U8 _align0; /*< 19: 1> alignment */
434 } T_SIM_CHANGE_PIN_REQ;
435 #endif
436
437 #ifndef __T_SIM_CHANGE_PIN_CNF__
438 #define __T_SIM_CHANGE_PIN_CNF__
439 /*
440 *
441 * CCDGEN:WriteStruct_Count==3033
442 */
443 typedef struct
444 {
445 U16 cause; /*< 0: 2> error code */
446 U8 pin_id; /*< 2: 1> PIN identification */
447 U8 pin_cnt; /*< 3: 1> PIN counter */
448 U8 puk_cnt; /*< 4: 1> PUK counter */
449 U8 pin2_cnt; /*< 5: 1> PIN 2 counter */
450 U8 puk2_cnt; /*< 6: 1> PUK 2 counter */
451 U8 _align0; /*< 7: 1> alignment */
452 } T_SIM_CHANGE_PIN_CNF;
453 #endif
454
455 #ifndef __T_SIM_DISABLE_PIN_REQ__
456 #define __T_SIM_DISABLE_PIN_REQ__
457 /*
458 *
459 * CCDGEN:WriteStruct_Count==3034
460 */
461 typedef struct
462 {
463 U16 source; /*< 0: 2> source process */
464 U8 pin[MAX_PIN_LEN]; /*< 2: 8> personal identification number */
465 U8 _align0; /*< 10: 1> alignment */
466 U8 _align1; /*< 11: 1> alignment */
467 } T_SIM_DISABLE_PIN_REQ;
468 #endif
469
470 #ifndef __T_SIM_DISABLE_PIN_CNF__
471 #define __T_SIM_DISABLE_PIN_CNF__
472 /*
473 *
474 * CCDGEN:WriteStruct_Count==3035
475 */
476 typedef struct
477 {
478 U16 cause; /*< 0: 2> error code */
479 U8 pin_cnt; /*< 2: 1> PIN counter */
480 U8 puk_cnt; /*< 3: 1> PUK counter */
481 U8 pin2_cnt; /*< 4: 1> PIN 2 counter */
482 U8 puk2_cnt; /*< 5: 1> PUK 2 counter */
483 U8 _align0; /*< 6: 1> alignment */
484 U8 _align1; /*< 7: 1> alignment */
485 } T_SIM_DISABLE_PIN_CNF;
486 #endif
487
488 #ifndef __T_SIM_ENABLE_PIN_REQ__
489 #define __T_SIM_ENABLE_PIN_REQ__
490 /*
491 *
492 * CCDGEN:WriteStruct_Count==3036
493 */
494 typedef struct
495 {
496 U16 source; /*< 0: 2> source process */
497 U8 pin[MAX_PIN_LEN]; /*< 2: 8> personal identification number */
498 U8 _align0; /*< 10: 1> alignment */
499 U8 _align1; /*< 11: 1> alignment */
500 } T_SIM_ENABLE_PIN_REQ;
501 #endif
502
503 #ifndef __T_SIM_ENABLE_PIN_CNF__
504 #define __T_SIM_ENABLE_PIN_CNF__
505 /*
506 *
507 * CCDGEN:WriteStruct_Count==3037
508 */
509 typedef struct
510 {
511 U16 cause; /*< 0: 2> error code */
512 U8 pin_cnt; /*< 2: 1> PIN counter */
513 U8 puk_cnt; /*< 3: 1> PUK counter */
514 U8 pin2_cnt; /*< 4: 1> PIN 2 counter */
515 U8 puk2_cnt; /*< 5: 1> PUK 2 counter */
516 U8 _align0; /*< 6: 1> alignment */
517 U8 _align1; /*< 7: 1> alignment */
518 } T_SIM_ENABLE_PIN_CNF;
519 #endif
520
521 #ifndef __T_SIM_UNBLOCK_REQ__
522 #define __T_SIM_UNBLOCK_REQ__
523 /*
524 *
525 * CCDGEN:WriteStruct_Count==3038
526 */
527 typedef struct
528 {
529 U16 source; /*< 0: 2> source process */
530 U8 unblock_key[MAX_PIN_LEN]; /*< 2: 8> unblocking key */
531 U8 pin[MAX_PIN_LEN]; /*< 10: 8> personal identification number */
532 U8 pin_id; /*< 18: 1> PIN identification */
533 U8 _align0; /*< 19: 1> alignment */
534 } T_SIM_UNBLOCK_REQ;
535 #endif
536
537 #ifndef __T_SIM_UNBLOCK_CNF__
538 #define __T_SIM_UNBLOCK_CNF__
539 /*
540 *
541 * CCDGEN:WriteStruct_Count==3039
542 */
543 typedef struct
544 {
545 U16 cause; /*< 0: 2> error code */
546 U8 pin_id; /*< 2: 1> PIN identification */
547 U8 pin_cnt; /*< 3: 1> PIN counter */
548 U8 puk_cnt; /*< 4: 1> PUK counter */
549 U8 pin2_cnt; /*< 5: 1> PIN 2 counter */
550 U8 puk2_cnt; /*< 6: 1> PUK 2 counter */
551 U8 _align0; /*< 7: 1> alignment */
552 } T_SIM_UNBLOCK_CNF;
553 #endif
554
555 #ifndef __T_SIM_AUTHENTICATION_REQ__
556 #define __T_SIM_AUTHENTICATION_REQ__
557 /*
558 *
559 * CCDGEN:WriteStruct_Count==3040
560 */
561 typedef struct
562 {
563 U16 source; /*< 0: 2> source process */
564 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
565 U8 cksn; /*< 3: 1> ciphering key sequence number */
566 U8 rand[MAX_RAND]; /*< 4: 16> authentication parameter rand */
567 } T_SIM_AUTHENTICATION_REQ;
568 #endif
569
570 #ifndef __T_SIM_AUTHENTICATION_CNF__
571 #define __T_SIM_AUTHENTICATION_CNF__
572 /*
573 *
574 * CCDGEN:WriteStruct_Count==3041
575 */
576 typedef struct
577 {
578 U8 req_id; /*< 0: 1> used to uniquely identify requests to SIM */
579 U8 sres[MAX_SRES]; /*< 1: 4> authentication parameter Sres */
580 U8 kc[MAX_KC]; /*< 5: 8> authentication parameter Kc */
581 U8 _align0; /*< 13: 1> alignment */
582 U8 _align1; /*< 14: 1> alignment */
583 U8 _align2; /*< 15: 1> alignment */
584 } T_SIM_AUTHENTICATION_CNF;
585 #endif
586
587 #ifndef __T_SIM_MMI_INSERT_IND__
588 #define __T_SIM_MMI_INSERT_IND__
589 /*
590 *
591 * CCDGEN:WriteStruct_Count==3042
592 */
593 typedef struct
594 {
595 U8 func; /*< 0: 1> SIM card functionality */
596 U8 sim_serv[MAX_SRV_TBL]; /*< 1: 16> SIM service table */
597 U8 _align0; /*< 17: 1> alignment */
598 U8 _align1; /*< 18: 1> alignment */
599 U8 _align2; /*< 19: 1> alignment */
600 T_imsi_field imsi_field; /*< 20: 12> international mobile subscriber identity */
601 U8 phase; /*< 32: 1> phase of SIM card */
602 U8 access_acm; /*< 33: 1> Access ACM */
603 U8 access_acmmax; /*< 34: 1> Access ACMMAX */
604 U8 access_puct; /*< 35: 1> Access PUCT */
605 T_cbmid_rec cbmid_rec; /*< 36:256> This structure contains the CBMID records */
606 U8 c_ad; /*<292: 1> counter */
607 U8 ad[MAX_AD]; /*<293: 4> Contents of Administrative Data file */
608 U8 _align3; /*<297: 1> alignment */
609 U8 _align4; /*<298: 1> alignment */
610 U8 _align5; /*<299: 1> alignment */
611 } T_SIM_MMI_INSERT_IND;
612 #endif
613
614 #ifndef __T_SIM_MM_INSERT_IND__
615 #define __T_SIM_MM_INSERT_IND__
616 /*
617 *
618 * CCDGEN:WriteStruct_Count==3043
619 */
620 typedef struct
621 {
622 U8 c_ad; /*< 0: 1> counter */
623 U8 ad[MAX_AD]; /*< 1: 4> Contents of Administrative Data file */
624 U8 _align0; /*< 5: 1> alignment */
625 U8 _align1; /*< 6: 1> alignment */
626 U8 _align2; /*< 7: 1> alignment */
627 T_imsi_field imsi_field; /*< 8: 12> international mobile subscriber identity */
628 T_loc_info loc_info; /*< 20: 12> location information */
629 T_acc_ctrl acc_ctrl; /*< 32: 4> access control classes */
630 T_bcch_inf bcch_inf; /*< 36: 20> BCCH information */
631 T_kc_n kc_n; /*< 56: 12> Kc and cipher key sequence number */
632 T_forb_plmn forb_plmn; /*< 68: 16> Forbidden PLMN list */
633 U8 phase; /*< 84: 1> phase of SIM card */
634 U8 hplmn; /*< 85: 1> HPLMN search period */
635 U8 v_act_hplmn; /*< 86: 1> valid-flag */
636 U8 act_hplmn[MAX_SIM_PLMN_SIZE]; /*< 87: 3> Acting HPLMN */
637 U16 pref_plmn_list_sz; /*< 90: 2> List size of the preferred PLMN. Size =0 means that preferred PLMN does not present. */
638 // ELEM-FF: REL99
639 U16 u_ctl_plmn_sel_actech_list_sz; /*< 92: 2> Size of the PLMN list 'User controlled PLMN Selector with Access Technology'. Size =0 means that plmn list is not present. */
640 // ELEM-FF: REL99
641 U16 o_ctl_plmn_sel_actech_list_sz; /*< 94: 2> Size of the PLMN list 'Operator controlled PLMN Selector with Access Technology'. Size =0 means that plmn list is not present. */
642 } T_SIM_MM_INSERT_IND;
643 #endif
644
645 #ifndef __T_SIM_REMOVE_IND__
646 #define __T_SIM_REMOVE_IND__
647 /*
648 *
649 * CCDGEN:WriteStruct_Count==3044
650 */
651 typedef struct
652 {
653 U16 cause; /*< 0: 2> error code */
654 U8 _align0; /*< 2: 1> alignment */
655 U8 _align1; /*< 3: 1> alignment */
656 } T_SIM_REMOVE_IND;
657 #endif
658
659 #ifndef __T_SIM_MM_UPDATE_REQ__
660 #define __T_SIM_MM_UPDATE_REQ__
661 /*
662 *
663 * CCDGEN:WriteStruct_Count==3045
664 */
665 typedef struct
666 {
667 T_loc_info loc_info; /*< 0: 12> location information */
668 T_bcch_inf bcch_inf; /*< 12: 20> BCCH information */
669 T_forb_plmn forb_plmn; /*< 32: 16> Forbidden PLMN list */
670 U8 cksn; /*< 48: 1> ciphering key sequence number */
671 U8 kc[MAX_KC]; /*< 49: 8> authentication parameter Kc */
672 U8 _align0; /*< 57: 1> alignment */
673 U16 cell_identity; /*< 58: 2> cell identity */
674 U8 ef_indicator; /*< 60: 1> EF Indicator */
675 U8 _align1; /*< 61: 1> alignment */
676 U8 _align2; /*< 62: 1> alignment */
677 U8 _align3; /*< 63: 1> alignment */
678 } T_SIM_MM_UPDATE_REQ;
679 #endif
680
681 #ifndef __T_SIM_SYNC_REQ__
682 #define __T_SIM_SYNC_REQ__
683 /*
684 *
685 * CCDGEN:WriteStruct_Count==3046
686 */
687 typedef struct
688 {
689 U8 synccs; /*< 0: 1> Synchronisation Cause */
690 U8 _align0; /*< 1: 1> alignment */
691 U8 _align1; /*< 2: 1> alignment */
692 U8 _align2; /*< 3: 1> alignment */
693 } T_SIM_SYNC_REQ;
694 #endif
695
696 #ifndef __T_SIM_SYNC_CNF__
697 #define __T_SIM_SYNC_CNF__
698 /*
699 *
700 * CCDGEN:WriteStruct_Count==3047
701 */
702 typedef struct
703 {
704 U16 cause; /*< 0: 2> error code */
705 U8 _align0; /*< 2: 1> alignment */
706 U8 _align1; /*< 3: 1> alignment */
707 } T_SIM_SYNC_CNF;
708 #endif
709
710 #ifndef __T_SIM_ACTIVATE_REQ__
711 #define __T_SIM_ACTIVATE_REQ__
712 /*
713 *
714 * CCDGEN:WriteStruct_Count==3048
715 */
716 typedef struct
717 {
718 U8 proc; /*< 0: 1> procedure type */
719 U8 mmi_pro_file; /*< 1: 1> MMI profile */
720 U8 stk_pro_file[MAX_STK_PRF]; /*< 2: 20> SIM toolkit profile */
721 U8 cust_mode; /*< 22: 1> Customisation Mode */
722 U8 sim_num; /*< 23: 1> SIM Interface Identifier */
723 U8 v_trmst_file; /*< 24: 1> valid-flag */
724 U8 trmst_file[MAX_TRMST]; /*< 25: 8> Terminal Support Table EF */
725 U8 _align0; /*< 33: 1> alignment */
726 U8 _align1; /*< 34: 1> alignment */
727 U8 _align2; /*< 35: 1> alignment */
728 } T_SIM_ACTIVATE_REQ;
729 #endif
730
731 #ifndef __T_SIM_ACTIVATE_CNF__
732 #define __T_SIM_ACTIVATE_CNF__
733 /*
734 *
735 * CCDGEN:WriteStruct_Count==3049
736 */
737 typedef struct
738 {
739 U16 cause; /*< 0: 2> error code */
740 U8 pin_cnt; /*< 2: 1> PIN counter */
741 U8 puk_cnt; /*< 3: 1> PUK counter */
742 U8 pin2_cnt; /*< 4: 1> PIN 2 counter */
743 U8 puk2_cnt; /*< 5: 1> PUK 2 counter */
744 U8 ec_code[MAX_ECC]; /*< 6: 15> Emergency call codes */
745 U8 pref_lang[MAX_LNG_PREF]; /*< 21: 5> preferred languages */
746 U8 sim_num; /*< 26: 1> SIM Interface Identifier */
747 U8 c_atr; /*< 27: 1> counter */
748 U8 atr[MAX_SIM_ATR]; /*< 28: 33> Answer to Reset */
749 U8 _align0; /*< 61: 1> alignment */
750 U8 _align1; /*< 62: 1> alignment */
751 U8 _align2; /*< 63: 1> alignment */
752 } T_SIM_ACTIVATE_CNF;
753 #endif
754
755 #ifndef __T_SIM_SMS_INSERT_IND__
756 #define __T_SIM_SMS_INSERT_IND__
757 /*
758 *
759 * CCDGEN:WriteStruct_Count==3050
760 */
761 typedef struct
762 {
763 U8 phase; /*< 0: 1> phase of SIM card */
764 U8 tp_mr; /*< 1: 1> message reference */
765 U8 mem_cap_avail; /*< 2: 1> memory capacity available flag */
766 U8 download_sms; /*< 3: 1> Download SMS Flag */
767 U8 smsr_mem_cap; /*< 4: 1> Indicator for short message status report storage */
768 U8 _align0; /*< 5: 1> alignment */
769 U8 _align1; /*< 6: 1> alignment */
770 U8 _align2; /*< 7: 1> alignment */
771 } T_SIM_SMS_INSERT_IND;
772 #endif
773
774 #ifndef __T_SIM_TOOLKIT_REQ__
775 #define __T_SIM_TOOLKIT_REQ__
776 /*
777 *
778 * CCDGEN:WriteStruct_Count==3051
779 */
780 typedef struct
781 {
782 U16 source; /*< 0: 2> source process */
783 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
784 U8 _align0; /*< 3: 1> alignment */
785 T_stk_cmd stk_cmd; /*< 4:260> SIM toolkit command */
786 } T_SIM_TOOLKIT_REQ;
787 #endif
788
789 #ifndef __T_SIM_TOOLKIT_RES__
790 #define __T_SIM_TOOLKIT_RES__
791 /*
792 *
793 * CCDGEN:WriteStruct_Count==3052
794 */
795 typedef struct
796 {
797 T_stk_cmd stk_cmd; /*< 0:260> SIM toolkit command */
798 } T_SIM_TOOLKIT_RES;
799 #endif
800
801 #ifndef __T_SIM_TOOLKIT_IND__
802 #define __T_SIM_TOOLKIT_IND__
803 /*
804 *
805 * CCDGEN:WriteStruct_Count==3053
806 */
807 typedef struct
808 {
809 T_stk_cmd stk_cmd; /*< 0:260> SIM toolkit command */
810 } T_SIM_TOOLKIT_IND;
811 #endif
812
813 #ifndef __T_SIM_TOOLKIT_CNF__
814 #define __T_SIM_TOOLKIT_CNF__
815 /*
816 *
817 * CCDGEN:WriteStruct_Count==3054
818 */
819 typedef struct
820 {
821 U16 cause; /*< 0: 2> error code */
822 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
823 U8 _align0; /*< 3: 1> alignment */
824 T_stk_cmd stk_cmd; /*< 4:260> SIM toolkit command */
825 } T_SIM_TOOLKIT_CNF;
826 #endif
827
828 #ifndef __T_SIM_ACTIVATE_IND__
829 #define __T_SIM_ACTIVATE_IND__
830 /*
831 *
832 * CCDGEN:WriteStruct_Count==3055
833 */
834 typedef struct
835 {
836 U16 cause; /*< 0: 2> error code */
837 U8 pin_cnt; /*< 2: 1> PIN counter */
838 U8 puk_cnt; /*< 3: 1> PUK counter */
839 U8 pin2_cnt; /*< 4: 1> PIN 2 counter */
840 U8 puk2_cnt; /*< 5: 1> PUK 2 counter */
841 U8 ec_code[MAX_ECC]; /*< 6: 15> Emergency call codes */
842 U8 pref_lang[MAX_LNG_PREF]; /*< 21: 5> preferred languages */
843 U8 c_atr; /*< 26: 1> counter */
844 U8 atr[MAX_SIM_ATR]; /*< 27: 33> Answer to Reset */
845 } T_SIM_ACTIVATE_IND;
846 #endif
847
848 #ifndef __T_SIM_MM_INFO_IND__
849 #define __T_SIM_MM_INFO_IND__
850 /*
851 *
852 * CCDGEN:WriteStruct_Count==3056
853 */
854 typedef struct
855 {
856 U16 datafield; /*< 0: 2> data field identification */
857 U8 _align0; /*< 2: 1> alignment */
858 U8 _align1; /*< 3: 1> alignment */
859 } T_SIM_MM_INFO_IND;
860 #endif
861
862 #ifndef __T_SIM_ACCESS_REQ__
863 #define __T_SIM_ACCESS_REQ__
864 /*
865 *
866 * CCDGEN:WriteStruct_Count==3057
867 */
868 typedef struct
869 {
870 U16 source; /*< 0: 2> source process */
871 U16 datafield; /*< 2: 2> data field identification */
872 U8 req_id; /*< 4: 1> used to uniquely identify requests to SIM */
873 U8 sim_command; /*< 5: 1> SIM Command */
874 U8 p1; /*< 6: 1> P1 Parameter */
875 U8 p2; /*< 7: 1> P2 Parameter */
876 U8 p3; /*< 8: 1> P3 Parameter */
877 U8 _align0; /*< 9: 1> alignment */
878 U16 c_trans_data; /*< 10: 2> counter */
879 U8 trans_data[MAX_SIM_TRANSP]; /*< 12:262> Transparent data content */
880 U8 _align1; /*<274: 1> alignment */
881 U8 _align2; /*<275: 1> alignment */
882 } T_SIM_ACCESS_REQ;
883 #endif
884
885 #ifndef __T_SIM_ACCESS_CNF__
886 #define __T_SIM_ACCESS_CNF__
887 /*
888 *
889 * CCDGEN:WriteStruct_Count==3058
890 */
891 typedef struct
892 {
893 U16 cause; /*< 0: 2> error code */
894 U8 req_id; /*< 2: 1> used to uniquely identify requests to SIM */
895 U8 sw1; /*< 3: 1> SW1 Parameter */
896 U8 sw2; /*< 4: 1> SW2 Parameter */
897 U8 _align0; /*< 5: 1> alignment */
898 U16 c_trans_data; /*< 6: 2> counter */
899 U8 trans_data[MAX_SIM_CMD]; /*< 8:256> Transparent data content */
900 } T_SIM_ACCESS_CNF;
901 #endif
902
903 #ifndef __T_SIM_FILE_UPDATE_IND__
904 #define __T_SIM_FILE_UPDATE_IND__
905 /*
906 *
907 * CCDGEN:WriteStruct_Count==3059
908 */
909 typedef struct
910 {
911 U16 val_nr; /*< 0: 2> valid entries of a file ID list */
912 U8 _align0; /*< 2: 1> alignment */
913 U8 _align1; /*< 3: 1> alignment */
914 T_file_info file_info[MAX_FILE_ID]; /*< 4:768> File Information for FILE UPDATE */
915 } T_SIM_FILE_UPDATE_IND;
916 #endif
917
918 #ifndef __T_SIM_FILE_UPDATE_RES__
919 #define __T_SIM_FILE_UPDATE_RES__
920 /*
921 *
922 * CCDGEN:WriteStruct_Count==3060
923 */
924 typedef struct
925 {
926 U16 source; /*< 0: 2> source process */
927 U16 fu_rsc; /*< 2: 2> result code for SIM_FILE_UPDATE_IND */
928 } T_SIM_FILE_UPDATE_RES;
929 #endif
930
931 #ifndef __T_SIM_GMM_INSERT_IND__
932 #define __T_SIM_GMM_INSERT_IND__
933 /*
934 *
935 * CCDGEN:WriteStruct_Count==3061
936 */
937 typedef struct
938 {
939 U8 op_mode; /*< 0: 1> operation mode */
940 U8 _align0; /*< 1: 1> alignment */
941 U8 _align1; /*< 2: 1> alignment */
942 U8 _align2; /*< 3: 1> alignment */
943 T_imsi_field imsi_field; /*< 4: 12> international mobile subscriber identity */
944 T_loc_info loc_info; /*< 16: 12> location information */
945 T_gprs_loc_info gprs_loc_info; /*< 28: 16> location information */
946 T_acc_ctrl acc_ctrl; /*< 44: 4> access control classes */
947 T_kc_n kc_n; /*< 48: 12> Kc and cipher key sequence number */
948 U8 phase; /*< 60: 1> phase of SIM card */
949 U8 _align3; /*< 61: 1> alignment */
950 U8 _align4; /*< 62: 1> alignment */
951 U8 _align5; /*< 63: 1> alignment */
952 } T_SIM_GMM_INSERT_IND;
953 #endif
954
955 #ifndef __T_SIM_GMM_UPDATE_REQ__
956 #define __T_SIM_GMM_UPDATE_REQ__
957 /*
958 *
959 * CCDGEN:WriteStruct_Count==3062
960 */
961 typedef struct
962 {
963 T_gprs_loc_info gprs_loc_info; /*< 0: 16> location information */
964 U8 cksn; /*< 16: 1> ciphering key sequence number */
965 U8 kc[MAX_KC]; /*< 17: 8> authentication parameter Kc */
966 U8 att_status; /*< 25: 1> GPRS IMSI attach status */
967 U8 _align0; /*< 26: 1> alignment */
968 U8 _align1; /*< 27: 1> alignment */
969 } T_SIM_GMM_UPDATE_REQ;
970 #endif
971
972 #ifndef __T_SIM_DTI_REQ__
973 #define __T_SIM_DTI_REQ__
974 /*
975 *
976 * CCDGEN:WriteStruct_Count==3063
977 */
978 typedef struct
979 {
980 U32 link_id; /*< 0: 4> DTI link identifier */
981 U8 dti_conn; /*< 4: 1> connection qualifier */
982 U8 dti_direction; /*< 5: 1> DTI direction */
983 U8 _align0; /*< 6: 1> alignment */
984 U8 _align1; /*< 7: 1> alignment */
985 U32 entity_name; /*< 8: 4> DTI entity name */
986 } T_SIM_DTI_REQ;
987 #endif
988
989 #ifndef __T_SIM_DTI_CNF__
990 #define __T_SIM_DTI_CNF__
991 /*
992 *
993 * CCDGEN:WriteStruct_Count==3064
994 */
995 typedef struct
996 {
997 U32 link_id; /*< 0: 4> DTI link identifier */
998 U8 dti_conn; /*< 4: 1> connection qualifier */
999 U8 _align0; /*< 5: 1> alignment */
1000 U8 _align1; /*< 6: 1> alignment */
1001 U8 _align2; /*< 7: 1> alignment */
1002 } T_SIM_DTI_CNF;
1003 #endif
1004
1005 #ifndef __T_SIM_BIP_REQ__
1006 #define __T_SIM_BIP_REQ__
1007 /*
1008 *
1009 * CCDGEN:WriteStruct_Count==3065
1010 */
1011 typedef struct
1012 {
1013 U8 bip_ch_id; /*< 0: 1> BIP channel identifier */
1014 U8 bip_conn; /*< 1: 1> bip connection qualifier */
1015 U8 _align0; /*< 2: 1> alignment */
1016 U8 _align1; /*< 3: 1> alignment */
1017 U32 release_time; /*< 4: 4> link release timeout */
1018 U8 add_info_result; /*< 8: 1> additional information on result code */
1019 U8 general_result; /*< 9: 1> general result code */
1020 U8 _align2; /*< 10: 1> alignment */
1021 U8 _align3; /*< 11: 1> alignment */
1022 } T_SIM_BIP_REQ;
1023 #endif
1024
1025 #ifndef __T_SIM_BIP_CNF__
1026 #define __T_SIM_BIP_CNF__
1027 /*
1028 *
1029 * CCDGEN:WriteStruct_Count==3066
1030 */
1031 typedef struct
1032 {
1033 U8 bip_ch_id; /*< 0: 1> BIP channel identifier */
1034 U8 bip_conn; /*< 1: 1> bip connection qualifier */
1035 U8 _align0; /*< 2: 1> alignment */
1036 U8 _align1; /*< 3: 1> alignment */
1037 } T_SIM_BIP_CNF;
1038 #endif
1039
1040 #ifndef __T_SIM_BIP_CONFIG_REQ__
1041 #define __T_SIM_BIP_CONFIG_REQ__
1042 /*
1043 *
1044 * CCDGEN:WriteStruct_Count==3067
1045 */
1046 typedef struct
1047 {
1048 U32 local_ip; /*< 0: 4> local IP address */
1049 U32 destination_ip; /*< 4: 4> destination IP address */
1050 U16 destination_port; /*< 8: 2> destination port number */
1051 U8 con_type; /*< 10: 1> connection type */
1052 U8 _align0; /*< 11: 1> alignment */
1053 } T_SIM_BIP_CONFIG_REQ;
1054 #endif
1055
1056 #ifndef __T_SIM_BIP_CONFIG_CNF__
1057 #define __T_SIM_BIP_CONFIG_CNF__
1058 /*
1059 *
1060 * CCDGEN:WriteStruct_Count==3068
1061 */
1062 typedef struct
1063 {
1064 U8 dummy; /*< 0: 1> no parameters */
1065 } T_SIM_BIP_CONFIG_CNF;
1066 #endif
1067
1068 #ifndef __T_SIM_DTI_BIP_IND__
1069 #define __T_SIM_DTI_BIP_IND__
1070 /*
1071 *
1072 * CCDGEN:WriteStruct_Count==3069
1073 */
1074 typedef struct
1075 {
1076 U32 link_id; /*< 0: 4> DTI link identifier */
1077 U8 dti_conn; /*< 4: 1> connection qualifier */
1078 U8 bip_ch_id; /*< 5: 1> BIP channel identifier */
1079 U8 bip_conn; /*< 6: 1> bip connection qualifier */
1080 U8 _align0; /*< 7: 1> alignment */
1081 } T_SIM_DTI_BIP_IND;
1082 #endif
1083
1084 #ifndef __T_SIM_EVENTLIST_REQ__
1085 #define __T_SIM_EVENTLIST_REQ__
1086 /*
1087 *
1088 * CCDGEN:WriteStruct_Count==3070
1089 */
1090 typedef struct
1091 {
1092 U8 event_data_avail; /*< 0: 1> data available event */
1093 U8 _align0; /*< 1: 1> alignment */
1094 U8 _align1; /*< 2: 1> alignment */
1095 U8 _align2; /*< 3: 1> alignment */
1096 } T_SIM_EVENTLIST_REQ;
1097 #endif
1098
1099 #ifndef __T_SIM_EVENTLIST_CNF__
1100 #define __T_SIM_EVENTLIST_CNF__
1101 /*
1102 *
1103 * CCDGEN:WriteStruct_Count==3071
1104 */
1105 typedef struct
1106 {
1107 U8 event_data_avail; /*< 0: 1> data available event */
1108 U8 _align0; /*< 1: 1> alignment */
1109 U8 _align1; /*< 2: 1> alignment */
1110 U8 _align2; /*< 3: 1> alignment */
1111 } T_SIM_EVENTLIST_CNF;
1112 #endif
1113
1114 #ifndef __T_SIM_TEST_REQ__
1115 #define __T_SIM_TEST_REQ__
1116 /*
1117 *
1118 * CCDGEN:WriteStruct_Count==3072
1119 */
1120 typedef struct
1121 {
1122 U8 cla; /*< 0: 1> class of instruction */
1123 U8 ins_code; /*< 1: 1> instruction code */
1124 U8 p1; /*< 2: 1> P1 Parameter */
1125 U8 p2; /*< 3: 1> P2 Parameter */
1126 U8 le; /*< 4: 1> length of response */
1127 U8 _align0; /*< 5: 1> alignment */
1128 U8 _align1; /*< 6: 1> alignment */
1129 U8 _align2; /*< 7: 1> alignment */
1130 T_stk_cmd stk_cmd; /*< 8:260> SIM toolkit command */
1131 } T_SIM_TEST_REQ;
1132 #endif
1133
1134 #ifndef __T_SIM_TEST_CNF__
1135 #define __T_SIM_TEST_CNF__
1136 /*
1137 *
1138 * CCDGEN:WriteStruct_Count==3073
1139 */
1140 typedef struct
1141 {
1142 U8 sw1; /*< 0: 1> SW1 Parameter */
1143 U8 sw2; /*< 1: 1> SW2 Parameter */
1144 U8 _align0; /*< 2: 1> alignment */
1145 U8 _align1; /*< 3: 1> alignment */
1146 T_stk_cmd stk_cmd; /*< 4:260> SIM toolkit command */
1147 } T_SIM_TEST_CNF;
1148 #endif
1149
1150 #ifndef __T_SIM_REFRESH_USER_RES__
1151 #define __T_SIM_REFRESH_USER_RES__
1152 /*
1153 *
1154 * CCDGEN:WriteStruct_Count==3074
1155 */
1156 typedef struct
1157 {
1158 U8 user_accepts; /*< 0: 1> User Response */
1159 U8 _align0; /*< 1: 1> alignment */
1160 U8 _align1; /*< 2: 1> alignment */
1161 U8 _align2; /*< 3: 1> alignment */
1162 T_stk_cmd stk_cmd; /*< 4:260> SIM toolkit command */
1163 } T_SIM_REFRESH_USER_RES;
1164 #endif
1165
1166
1167 #include "CDG_LEAVE.h"
1168
1169
1170 #endif