comparison g23m/condat/com/include/prim.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : PRIM
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Primitive Definitions, depending on entity
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef PRIM_H
22 #define PRIM_H
23
24 /*
25 * Definitions for Primitive Opcodes
26 */
27
28 #ifndef PCONST_CDG
29 #include "pconst.cdg"
30 #endif /* PCONST_CDG */
31
32 /*
33 * Define the service access points depending on the entity
34 */
35
36 #ifdef ENTITY_PL
37
38 #define SAP_PH
39 #define SAP_DL
40 #define SAP_MPH
41 #ifdef ALR
42 #define SAP_MPHC
43 #elif defined(FF_GTI)
44 /* GTI */
45 /* do nothing */
46 #else
47 #define SAP_MPH5
48 #endif /* ALR, FF_GTI */
49 #if defined(GPRS) && defined(ALR)
50 #define SAP_TB
51 #endif /* GPRS */
52 #define SAP_MMI
53 #define SAP_MON
54 #ifdef FF_EM_MODE
55 #define SAP_EM
56 #endif /* FF_EM_MODE */
57
58
59 /* added by ppuel on 06/10 */
60 #define SAP_CST
61
62 #endif /* ENTITY_PL */
63
64 #ifdef ENTITY_L1
65 #ifdef ALR
66 #define SAP_MPHC
67 #elif defined(FF_GTI)
68 /* GTI */
69 /* do nothing */
70 #else
71 #define SAP_MPH5
72 #endif /* ALR, FF_GTI */
73 #endif /* ENTITY_L1 */
74
75 #ifdef ENTITY_DL
76
77 #define SAP_MPHC /* for PH_DATA_IND */
78 #define SAP_PH
79 #define SAP_DL
80 #define SAP_MDL
81
82 #ifdef FF_EM_MODE
83 #define SAP_EM
84 #endif /* FF_EM_MODE */
85
86 #endif /* ENTITY_DL*/
87
88 #ifdef ENTITY_RR
89
90 #define SAP_DL
91 #define SAP_RR
92 #define SAP_MPH
93 #define SAP_MON
94 #define SAP_RRRRLP
95 #define SAP_RRLC
96
97 #ifdef GPRS
98 #define SAP_RRGRR
99 #endif /* GPRS */
100
101 #ifdef FF_EM_MODE
102 #define SAP_EM
103 #endif /* FF_EM_MODE */
104
105 #endif /* ENTITIY_RR */
106
107 #ifdef ENTITY_LC
108
109 #define SAP_RRLC
110 #define SAP_RRLP
111 #define SAP_CSRLC
112 #define SAP_MNLC
113
114 #endif /* ENTITY_LC */
115
116 #ifdef ENTITY_RRLP
117
118 #define SAP_RRRRLP
119 #define SAP_RRLP
120
121 #endif /* ENTITY_RRLP */
122
123 #ifdef ENTITY_CSR
124
125 #define SAP_CSRLC
126
127 #endif /* ENTITY_CSR */
128
129 #ifdef ENTITY_MM
130
131 #ifdef GPRS
132 #define SAP_MMGMM
133 #else
134 #define SAP_MMREG
135 #endif /* GPRS */
136 #define SAP_MMCC
137 #define SAP_MMSS
138 #define SAP_MMSMS
139 #define SAP_MDL
140 #define SAP_RR
141 #define SAP_SIM
142
143 #ifdef FF_EM_MODE
144 #define SAP_EM
145 #endif /* FF_EM_MODE */
146
147 #endif /* ENTITY_MM */
148
149 #ifdef ENTITY_CC
150
151 #define SAP_MMCC
152 #define SAP_MNCC
153
154 #ifdef FF_EM_MODE
155 #define SAP_EM
156 #endif /* FF_EM_MODE */
157
158 #endif /* ENTITY_CC*/
159
160 #ifdef ENTITY_ESIM
161 #define SAP_AAA
162 #define SAP_MMI
163 #endif /* ENTITY_ESIM */
164
165 #ifdef ENTITY_SS
166
167 #define SAP_MMSS
168 #define SAP_MNSS
169
170 #ifdef FF_EM_MODE
171 #define SAP_EM
172 #endif /* FF_EM_MODE */
173
174 #endif /* ENTITY_SS */
175
176 #ifdef ENTITY_SMS
177
178 #define SAP_MMSMS
179 #define SAP_MNSMS
180 #define SAP_SIM
181
182 #ifdef GPRS
183 #define SAP_LL
184 #define SAP_GMMSMS
185 #endif /* GPRS */
186
187 #ifdef FF_EM_MODE
188 #define SAP_EM
189 #endif /* FF_EM_MODE */
190
191 #endif /* ENTITY_SMS */
192
193
194 #ifdef ENTITY_CST
195
196 /* added by ppuel on 06/10 */
197 #define SAP_CST
198 #ifdef ALR
199 #define SAP_MPHC
200 #elif defined(FF_GTI)
201 /* GTI */
202 /* do nothing */
203 #else
204 #define SAP_MPH5
205 #endif /* ALR, FF_GTI */
206 #define SAP_MNSMS
207 #define SAP_MMREG
208 #ifdef GPRS
209 #define SAP_GMMREG
210 #endif /*GPRS*/
211 #endif /* ENTITY_CST */
212
213 #ifdef ENTITY_MMI
214
215 #define SAP_MNSS
216 #define SAP_MNSMS
217 #define SAP_MNCC
218 #define SAP_MMREG
219 #define SAP_MMI
220 #define SAP_SIM
221 #ifdef FF_ESIM
222 #define SAP_AAA /* needed for esim */
223 #endif
224 #ifdef FF_WAP
225 #define SAP_WAP
226 #endif /* FF_WAP */
227
228 #endif /* ENTITY_MMI */
229
230 #ifdef ENTITY_SMI
231
232 #define SAP_ACI
233 #define SAP_MNSS
234 #define SAP_MNSMS
235 #define SAP_MNCC
236 #define SAP_MMI
237 #define SAP_SIM
238 #define SAP_CST
239
240 #ifdef UART
241 #define SAP_DTI2
242 #define SAP_UART
243 #endif /* UART */
244
245 #ifdef FF_PSI
246 #define SAP_PSI
247 #endif /* FF_PSI */
248
249 #ifdef FF_BAT
250 #define SAP_APP
251 #endif /* FF_BAT */
252
253 #if defined FF_EOTD
254 #define SAP_MNLC
255 #endif /* FF_EOTD */
256
257 #ifdef BT_ADAPTER
258 #define SAP_BTP
259 #endif /* BT_ADAPTER */
260
261 #ifdef FAX_AND_DATA
262 #define SAP_L2R
263 #define SAP_TRA
264 #define SAP_RA
265
266 #ifdef FF_FAX
267 #define SAP_T30
268 #endif
269
270 #endif /* FAX_AND_DATA */
271
272 #ifdef GPRS
273 #define SAP_GMMREG
274 #define SAP_SN
275 #define SAP_SMREG
276 #define SAP_PPP
277 #define SAP_DTI
278 #define SAP_UART
279 #define SAP_PKT
280 #endif /* GPRS */
281
282 #ifdef FF_EM_MODE
283 #define SAP_EM
284 #endif /* FF_EM_MODE */
285
286 #define SAP_MMREG
287
288 #if defined (FF_WAP) || defined (FF_SAT_E)
289 #define SAP_PPP
290 #endif
291
292 #ifdef CO_UDP_IP
293 #define SAP_IPA
294 #define SAP_UDPA
295 #endif /* CO_UDP_IP */
296
297 #ifdef FF_WAP
298 #define SAP_WAP
299 #endif /* FF_WAP */
300
301 #ifdef FF_TCP_IP
302 #define SAP_PPP
303 #define SAP_AAA
304 #endif /* FF_TCP_IP */
305
306 #ifdef FF_GPF_TCPIP
307 #define SAP_TCPIP
308 #define SAP_DCM
309 #endif
310
311 #ifdef FF_WAP
312 #define SAP_WAP
313 #endif
314
315 #endif /* ENTITY_SMI */
316
317 #ifdef ENTITY_MFW
318
319 #define SAP_ACI
320 #define SAP_MNSS
321 #define SAP_MNSMS
322 #define SAP_MNCC
323 #define SAP_MMI
324 #define SAP_SIM
325 #define SAP_CST
326
327 #ifdef UART
328 #define SAP_DTI2
329 #define SAP_UART
330 #endif /* UART */
331
332 #ifdef FF_PSI
333 #define SAP_PSI
334 #endif /* FF_PSI */
335
336 #ifdef FF_BAT
337 #define SAP_APP
338 #endif /* FF_BAT */
339
340 #ifdef FAX_AND_DATA
341 #define SAP_L2R
342
343 #ifdef FF_FAX
344 #define SAP_T30
345 #endif
346
347 #define SAP_RA
348 #define SAP_TRA
349 #endif /* FAX_AND_DATA */
350
351 #ifdef GPRS
352 #define SAP_GMMREG
353 #define SAP_SN
354 #define SAP_SMREG
355 #define SAP_PPP
356 #define SAP_DTI
357 #define SAP_UART
358 #define SAP_PKT
359 #endif /* GPRS */
360
361 #define SAP_MMREG
362
363 #if defined (FF_WAP) || defined (FF_SAT_E)
364 #define SAP_PPP
365 #endif
366
367 #ifdef CO_UDP_IP
368 #define SAP_IPA
369 #define SAP_UDPA
370 #endif /* CO_UDP_IP */
371
372 #ifdef FF_WAP
373 #define SAP_WAP
374 #endif /* FF_WAP */
375
376 #ifdef FF_EM_MODE
377 #define SAP_EM
378 #endif /* FF_EM_MODE */
379
380 #ifdef FF_TCP_IP
381 #define SAP_PPP
382 #define SAP_AAA
383 #endif /* FF_TCP_IP */
384
385 #ifdef FF_GPF_TCPIP
386 #define SAP_TCPIP
387 #define SAP_DCM
388 #endif
389
390 #ifdef FF_WAP
391 #define SAP_WAP
392 #endif
393
394 #if defined FF_EOTD
395 #define SAP_MNLC
396 #endif /* FF_EOTD */
397
398 #ifdef BT_ADAPTER
399 #define SAP_BTP
400 #endif /* BT_ADAPTER */
401
402 #endif /* ENTITY_MFW */
403
404
405 #ifdef ENTITY_SIM
406
407 #define SAP_SIM
408 #ifdef CO_UDP_IP
409 #define SAP_UDP
410 #endif /* FF_WAP || FF_SAT_E */
411
412 #ifdef UART
413 #define SAP_DTI2
414 #endif /* UART*/
415 #ifdef FF_EM_MODE
416 #define SAP_EM
417 #endif /* FF_EM_MODE */
418
419 #endif /* ENTITY_SIM */
420
421 #ifdef ENTITY_ACI
422
423 #define SAP_ACI
424 #define SAP_MNSS
425 #define SAP_MNSMS
426 #define SAP_SIM
427 #define SAP_MNCC
428 #define SAP_MMI
429 #define SAP_CST
430 #ifdef FF_ESIM
431 #define SAP_AAA /* needed for esim */
432 #endif
433 #ifdef UART
434 #define SAP_DTI2
435 #define SAP_UART
436 #endif /* UART */
437
438 #ifdef FF_PSI
439 #define SAP_PSI
440 #endif /* FF_PSI */
441
442 #ifdef FF_BAT
443 #define SAP_APP
444 #endif /* FF_BAT */
445
446 #ifdef FF_EOTD
447 #define SAP_MNLC
448 #endif /* FF_EOTD*/
449
450 #ifdef FAX_AND_DATA
451 #define SAP_L2R
452 #define SAP_RA
453
454 #ifdef FF_FAX
455 #define SAP_T30
456 #endif
457
458 #define SAP_TRA
459 #endif /* FAX_AND_DATA */
460
461 #ifdef GPRS
462 #define SAP_GMMREG
463 #define SAP_SN
464 #define SAP_SMREG
465 #define SAP_PPP
466 #define SAP_DTI
467 #define SAP_UART
468 #define SAP_PKT
469 #endif /* GPRS */
470
471 #define SAP_MMREG
472
473 #if defined (FF_WAP) || defined (FF_SAT_E)
474 #define SAP_PPP
475 #endif
476
477 #ifdef CO_UDP_IP
478 #define SAP_IPA
479 #define SAP_UDPA
480 #endif /* CO_UDP_IP */
481
482 #ifdef FF_EM_MODE
483 #define SAP_EM
484 #endif /* FF_EM_MODE */
485
486 #ifdef FF_TCP_IP
487 #define SAP_PPP
488 #define SAP_AAA
489 #endif /* FF_TCP_IP */
490
491 #ifdef FF_GPF_TCPIP
492 #define SAP_TCPIP
493 #define SAP_DCM
494 #endif
495
496 #ifdef FF_WAP
497 #define SAP_WAP
498 #endif
499
500 #endif /* ENTITY_ACI */
501
502 #ifdef ENTITY_L2R
503
504 #define SAP_L2R
505 #define SAP_RLP
506 #define SAP_DTI2
507 #define SAP_TRA
508 #define SAP_RA
509
510 #endif /* ENTITY_L2R */
511
512 #ifdef ENTITY_RLP
513
514 #define SAP_RLP
515 #define SAP_RA
516
517 #endif /* ENTITY_RLP */
518
519 #ifdef ENTITY_T30
520
521 #define SAP_T30
522 #define SAP_DTI2
523 #define SAP_FAD
524
525 #endif /* ENTITY_T30 */
526
527 #ifdef ENTITY_FAD
528
529 #define SAP_FAD
530 #define SAP_RA
531
532 #endif /* ENTITY_FAD */
533
534 #ifdef ENTITY_RA
535
536 #define SAP_RA
537
538 #endif /* ENTITY_RA */
539
540 #ifdef ENTITY_WAP
541
542 #define SAP_WAP
543
544 #ifdef FF_GPF_TCPIP
545 #define SAP_TCPIP
546 #define SAP_DCM
547 #endif
548
549 #ifdef CO_UDP_IP
550 #define SAP_UDP
551 #define SAP_UDPA
552 #endif /* CO_UDP_IP */
553
554 #define SAP_DTI2
555
556 #endif /* ENTITY_WAP */
557
558 #ifdef ENTITY_UDP
559
560 #define SAP_UDP
561 #define SAP_UDPA
562 #define SAP_IP
563 #define SAP_DTI2
564
565 #endif /* ENTITY_UDP */
566
567 #ifdef ENTITY_IP
568
569 #define SAP_IP
570 #define SAP_IPA
571 #define SAP_DTI2
572
573 #endif /* ENTITY_IP */
574
575 #ifdef ENTITY_BTI
576
577 /* removed check if compiling for dialup as it is part of the minimum choice
578 * kk 010525
579 */
580 #define SAP_ACI
581 #define SAP_BTP
582 #define SAP_DTI2
583
584 #endif /* ENTITY_BTI */
585
586
587 #ifdef ENTITY_GRR
588
589 #define SAP_GMMRR
590 #define SAP_RRGRR
591 #define SAP_MPHP
592 #define SAP_TB
593 #define SAP_CGRLC
594
595 #ifdef FF_EM_MODE
596 #define SAP_EM
597 #endif /* FF_EM_MODE */
598
599 /*
600 * The following SAP are not used in GRR,
601 * but some of the structures defined
602 * in theses interfaces are used.
603 */
604 #define SAP_MPH
605
606 #endif /* ENTITY_GRR */
607
608
609 #ifdef ENTITY_GRLC
610
611 #define SAP_CGRLC
612 #define SAP_GRLC
613 #define SAP_MAC
614 #define SAP_L1TEST
615
616 #ifdef FF_EM_MODE
617 #define SAP_EM
618 #endif /* FF_EM_MODE */
619
620 #endif /* ENTITY_GRLC */
621
622 #ifdef ENTITY_LLC
623
624 #define SAP_LLGMM
625 #define SAP_LL
626 #define SAP_CCI
627 #define SAP_GRLC
628 #define SAP_DTI2
629 #endif /* ENTITY_LLC */
630
631 #ifdef ENTITY_SM
632
633 #define SAP_SMREG
634 #define SAP_SNSM
635 #define SAP_GMMSM
636 #define SAP_GMMAA
637 #define SAP_LL
638
639 #endif /* ENTITY_SM */
640
641 #ifdef ENTITY_SNDCP
642
643 #define SAP_SN
644 #define SAP_SNSM
645 #define SAP_LL
646 #define SAP_CCI
647 #define SAP_DTI2
648
649 #endif /* ENTITY_SNDCP */
650
651 #ifdef ENTITY_GMM
652
653 #define SAP_GMMAA
654 #define SAP_GMMREG
655 #define SAP_GMMRR
656 #define SAP_GMMSM
657 #define SAP_GMMSMS
658 #define SAP_SIM
659 #define SAP_LL
660 #define SAP_LLGMM
661 #define SAP_MMGMM
662 #define SAP_CGRLC
663
664 #ifdef FF_EM_MODE
665 #define SAP_EM
666 #endif /* FF_EM_MODE */
667
668 #endif /* ENTITY_GMM */
669
670 #ifdef ENTITY_PPP
671
672 #define SAP_PPP
673 #define SAP_DTI
674 #ifdef GPRS
675 #define SAP_UART
676 #endif
677 #endif /* ENTITY_PPP */
678
679 #ifdef ENTITY_UART
680
681 #define SAP_UART
682 #define SAP_DTI2
683
684 #endif /* ENTITY_UART */
685
686 #ifdef ENTITY_PKTIO
687
688 #define SAP_PKT
689 #define SAP_DTI2
690
691 #endif /* ENTITY_PKTIO */
692
693 #ifdef ENTITY_PSI
694
695 #define SAP_PSI
696 #define SAP_DTI2
697 #define SAP_DIO
698
699 #endif /* ENTITY_PSI */
700
701 #ifdef ENTITY_AAA
702
703 #define SAP_AAA
704
705 #endif /* ENTITY_AAA */
706
707
708 #ifdef ENTITY_TCPIP
709
710 #define SAP_TCPIP
711 #define SAP_DTI2
712
713 #endif /* ENTITY_TCPIP */
714
715
716 #ifdef ENTITY_APP
717
718 #ifdef FF_BAT
719 #define SAP_APP
720 #endif /* FF_BAT */
721
722 #ifdef FF_GPF_TCPIP
723 #define SAP_TCPIP
724 #define SAP_DCM
725 #endif
726
727 #endif /* ENTITY_APP */
728
729 /*
730 * Define constants and primitive definitions depending on the
731 * service access points
732 */
733
734 #ifdef SAP_PH
735
736 /*
737 * Mask for PH Opcodes
738 */
739
740 #define PH_DL 0x4100
741 #define PH_UL 0x0100
742
743 #include "p_ph.h"
744
745 #endif /* SAP_PH */
746
747 #ifdef SAP_MPH
748
749 /*
750 * Mask for MPH Opcodes
751 * old values:
752 #define MPH_DL 0x4200
753 #define MPH_UL 0x0200
754 * changed to avoid double opcodes in TAP
755 */
756 #define MPH_DL 0x5700
757 #define MPH_UL 0x1700
758
759 #include "p_mph.h"
760
761 #endif /* SAP_MPH */
762
763 #ifdef SAP_MPH5
764
765 #include "p_mph5.h"
766
767 #endif /* SAP_MPH5 */
768
769 #ifdef SAP_MPHC
770
771 /*
772 * Mask for DL Opcodes
773 */
774
775 #define MPHC_DL 0x0000 /* same as MPHC_UL */
776 #define MPHC_UL 0x0000 /* same as MPHC_DL */
777
778 #include "p_mphc.h"
779
780 #endif /* SAP_MPHC */
781
782 #ifdef SAP_DL
783
784 /*
785 * Mask for DL Opcodes
786 */
787
788 #define DL_DL 0x80004003
789 #define DL_UL 0x80000003
790
791 #include "p_dl.h"
792
793 #endif /* SAP_DL */
794
795 #ifdef SAP_MDL
796
797 /*
798 * Mask for MDL Opcodes
799 */
800
801 #define MDL_DL 0x80004004
802 #define MDL_UL 0x80000004
803
804 #include "p_mdl.h"
805
806 #endif /* SAP_MDL */
807
808 #ifdef SAP_SIM
809
810 /*
811 * Mask for SIM Opcodes
812 */
813
814 #define SIM_DL 0x80004005
815 #define SIM_UL 0x80000005
816
817 #include "p_sim.h"
818
819 #ifdef TI_PS_UICC_CHIPSET_15
820 #include "p_8010_136_simdrv_sap.h"
821 #endif
822
823 #endif /* SAP_SIM */
824
825 #ifdef SAP_RR
826
827 /*
828 * Mask for RR Opcodes
829 */
830
831 #define RR_DL 0x80004006
832 #define RR_UL 0x80000006
833
834 #include "p_rr.h"
835
836 #endif /* SAP_RR */
837
838 #ifdef SAP_MMCC
839
840 /*
841 * Mask for MMCC Opcodes
842 */
843
844 #define MMCC_DL 0x80004007
845 #define MMCC_UL 0x80000007
846
847 #include "p_mmcc.h"
848
849 #endif /* SAP_MMCC */
850
851 #ifdef SAP_MMSS
852
853 /*
854 * Mask for MMSS Opcodes
855 */
856
857 #define MMSS_DL 0x80004008
858 #define MMSS_UL 0x80000008
859
860 #include "p_mmss.h"
861
862 #endif /* SAP_MMSS */
863
864 #ifdef SAP_MMSMS
865
866 /*
867 * Mask for MMSMS Opcodes
868 */
869
870 #define MMSMS_DL 0x80004009
871 #define MMSMS_UL 0x80000009
872
873 #include "p_mmsms.h"
874
875 #endif /* SAP_MMSMS */
876
877 #ifdef SAP_MMREG
878
879 /*
880 * Mask for MMREG Opcodes
881 */
882
883 #define MMREG_DL 0x8000400A
884 #define MMREG_UL 0x8000000A
885
886 #include "p_mmreg.h"
887
888 #endif /* SAP_MMREG */
889
890 #ifdef SAP_MNCC
891
892 /*
893 * Mask for MNCC Opcodes
894 */
895
896 #define MNCC_DL 0x8000400B
897 #define MNCC_UL 0x8000000B
898
899 #include "p_mncc.h"
900
901 #endif /* SAP_MNCC */
902
903 #ifdef SAP_MNSS
904
905 /*
906 * Mask for MNSS Opcodes
907 */
908
909 #define MNSS_DL 0x8000400C
910 #define MNSS_UL 0x8000000C
911
912 #include "p_mnss.h"
913
914 #endif /* SAP_MNSS */
915
916 #ifdef SAP_MNSMS
917
918 /*
919 * Mask for MNSMS Opcodes
920 */
921
922 #define MNSMS_DL 0x8000400D
923 #define MNSMS_UL 0x8000000D
924
925 #include "p_mnsms.h"
926
927 #endif /* SAP_MNSMS */
928
929 #ifdef SAP_MMI
930
931 /*
932 * Mask for MMI Opcodes
933 */
934
935 #define MMI_DL 0x4E00
936 #define MMI_UL 0x0E00
937
938 #include "p_mmi.h"
939
940 #endif /* SAP_MMI */
941
942 #ifdef SAP_MON
943
944 #include "p_mon.h"
945
946 #endif /* SAP_MON */
947
948 #ifdef SAP_ACI
949
950 /*
951 * Mask for ACI Opcodes
952 */
953
954 #define ACI_DL 0x5500
955 #define ACI_UL 0x1500
956
957 #include "p_aci.h"
958
959 #endif /* SAP_ACI */
960
961 #ifdef SAP_L2R
962
963 /*
964 * Mask for L2R Opcodes
965 */
966
967 #define L2R_DL 0x80004012
968 #define L2R_UL 0x80000012
969
970 #include "p_l2r.h"
971
972 #endif /* SAP_L2R */
973
974
975 #ifdef SAP_TRA
976
977 /*
978 * Mask for TRA Opcodes
979 */
980
981 #define TRA_DL 0x80004019
982 #define TRA_UL 0x80000019
983
984 #include "p_tra.h"
985
986 #endif /* SAP_TRA */
987
988
989 #ifdef SAP_RLP
990
991 /*
992 * Mask for RLP Opcodes
993 */
994
995 #define RLP_DL 0x80004011
996 #define RLP_UL 0x80000011
997
998 #include "p_rlp.h"
999
1000 #endif /* SAP_RLP */
1001
1002 #ifdef SAP_T30
1003
1004 /*
1005 * Mask for T30 Opcodes
1006 */
1007
1008 #define T30_DL 0x80004014
1009 #define T30_UL 0x80000014
1010
1011 #ifdef FF_FAX
1012 #include "p_t30.h"
1013 #endif
1014
1015 #endif /* SAP_T30 */
1016
1017 #ifdef SAP_FAD
1018
1019 /*
1020 * Mask for FAD Opcodes
1021 */
1022
1023 #define FAD_DL 0x80004013
1024 #define FAD_UL 0x80000013
1025
1026 #ifdef FF_FAX
1027 #include "p_fad.h"
1028 #endif
1029
1030 #endif /* SAP_FAD */
1031
1032 #ifdef SAP_RA
1033
1034 /*
1035 * Mask for RA Opcodes
1036 */
1037
1038 #define RA_DL 0x80004010
1039 #define RA_UL 0x80000010
1040
1041 #include "p_ra.h"
1042
1043 #endif /* SAP_RA */
1044
1045
1046
1047 #ifdef SAP_DTI
1048
1049 /*
1050 * Mask for DTI Opcodes
1051 */
1052
1053 #define DTI_DL 0x7700
1054 #define DTI_UL 0x3700
1055
1056 #include "p_dti.h"
1057
1058 #endif /* SAP_DTI */
1059
1060
1061 #ifdef SAP_WAP
1062
1063 /*
1064 * Mask for WAPcodes
1065 */
1066
1067 #define WAP_DL 0x7D00
1068 #define WAP_UL 0x3D00
1069
1070 #include "p_wap.h"
1071
1072 #endif /* SAP_WAP */
1073
1074
1075
1076 #ifdef SAP_UDP
1077
1078 /*
1079 * Mask for UDP Opcodes
1080 */
1081
1082 #define UDP_DL 0x80004046
1083 #define UDP_UL 0x80000046
1084
1085 #include "p_udp.h"
1086
1087 #endif /* SAP_UDP */
1088
1089
1090
1091 #ifdef SAP_TCPIP
1092
1093 /*
1094 * Mask for TCPIP Opcodes
1095 */
1096
1097 #define TCPIP_DL 0x80004048
1098 #define TCPIP_UL 0x80000048
1099
1100 #include "p_tcpip.h"
1101
1102 #endif
1103
1104
1105
1106 #ifdef SAP_UDPA
1107
1108 /*
1109 * Mask for UDPA Opcodes
1110 */
1111
1112 #define UDPA_DL 0x8000403B
1113 #define UDPA_UL 0x8000003B
1114
1115 #include "p_udpa.h"
1116
1117 #endif /* SAP_UDPA */
1118
1119
1120
1121 #ifdef SAP_IP
1122
1123 /*
1124 * Mask for IP Opcodes
1125 */
1126
1127 #define IP_DL 0x7900
1128 #define IP_UL 0x3900
1129
1130 #include "p_ip.h"
1131
1132 #endif /* SAP_IP */
1133
1134
1135
1136 #ifdef SAP_IPA
1137
1138 /*
1139 * Mask for IPA Opcodes
1140 */
1141 #define IPA_DL 0x8000403C
1142 #define IPA_UL 0x8000003C
1143
1144 #include "p_ipa.h"
1145
1146 #endif /* SAP_IPA */
1147
1148
1149
1150 #ifdef SAP_PPP
1151
1152 /*
1153 * Mask for PPP Opcodes
1154 */
1155
1156 #define PPP_DL 0x7500
1157 #define PPP_UL 0x3500
1158
1159 #include "p_ppp.h"
1160
1161 #endif /* SAP_PPP */
1162
1163
1164
1165 #ifdef SAP_CST
1166
1167 /*
1168 * Mask for CST Opcodes
1169 */
1170 #define CST_DL 0x5600
1171 #define CST_UL 0x1600
1172
1173 #include "p_cst.h"
1174
1175 #endif /* SAP_CST */
1176
1177 #ifdef SAP_TB
1178
1179 /*
1180 * Mask for TB Opcodes
1181 */
1182
1183 #define TB_DL 0x5800
1184 #define TB_UL 0x1800
1185
1186 #include "p_tb.h"
1187
1188 #endif /* SAP_TB */
1189
1190 #ifdef SAP_MPHP
1191
1192 /*
1193 * Mask for MPHP Opcodes
1194 */
1195
1196 #define MPHP_DL 0x0200
1197 #define MPHP_UL 0x0200
1198
1199 #include "p_mphp.h"
1200
1201 #endif /* SAP_MPHP */
1202
1203 #ifdef SAP_CGRLC
1204
1205 /*
1206 * Mask for CGRLC Opcodes
1207 */
1208
1209 #define CGRLC_DL 0x80014098
1210 #define CGRLC_UL 0x80000098
1211
1212 #include "p_cgrlc.h"
1213
1214 #endif /* SAP_CGRLC */
1215
1216 #ifdef SAP_MAC
1217
1218 /*
1219 * Mask for MAC Opcodes
1220 */
1221
1222 #define MAC_DL 0x7200
1223 #define MAC_UL 0x3200
1224
1225 #include "p_mac.h"
1226
1227 #endif /* SAP_MAC */
1228
1229 #ifdef SAP_L1TEST
1230
1231 /*
1232 * Mask for L1TEST Opcodes
1233 */
1234
1235 #define L1TEST_DL 0x8000409B
1236 #define L1TEST_UL 0x8000009B
1237
1238 #include "p_l1test.h"
1239
1240 #endif /* SAP_L1TEST */
1241
1242 #ifdef SAP_RRGRR
1243
1244 /*
1245 * Mask for RRGRR Opcodes
1246 */
1247
1248 #define RRGRR_DL 0x6d00
1249 #define RRGRR_UL 0x2d00
1250
1251 #include "p_rrgrr.h"
1252
1253 #endif /* SAP_RRGRR */
1254
1255 #ifdef SAP_LLGMM
1256
1257 /*
1258 * Mask for LLGMM Opcodes
1259 */
1260
1261 #define LLGMM_DL 0x6100
1262 #define LLGMM_UL 0x2100
1263
1264 #include "p_llgmm.h"
1265
1266 #endif /* SAP_LLGMM */
1267
1268 #ifdef SAP_LL
1269
1270 /*
1271 * Mask for LL Opcodes
1272 */
1273
1274 #define LL_DL 0x6200
1275 #define LL_UL 0x2200
1276
1277 #include "p_ll.h"
1278
1279 #endif /* SAP_LL */
1280
1281
1282 #ifdef SAP_SNSM
1283 /*
1284 * Mask for SNSM Opcodes
1285 */
1286 #define SNSM_DL 0x6700
1287 #define SNSM_UL 0x2700
1288 #include "p_snsm.h"
1289
1290 #endif /* SAP_SNSM */
1291
1292 #ifdef SAP_SN
1293 /*
1294 * Mask for SN Opcodes
1295 */
1296 #define SN_DL 0x6800
1297 #define SN_UL 0x2800
1298 #include "p_sn.h"
1299
1300 #endif /* SAP_SN */
1301
1302
1303 #ifdef SAP_SMREG
1304
1305 /*
1306 * Mask for SMREG Opcodes
1307 */
1308
1309 #define SMREG_DL 0x6600
1310 #define SMREG_UL 0x2600
1311
1312 #include "p_smreg.h"
1313
1314 #endif /* SAP_SMREG */
1315
1316
1317 #ifdef SAP_GRLC
1318
1319 /*
1320 * Mask for GRLC Opcodes
1321 */
1322
1323 #define GRLC_DL 0x80004097
1324 #define GRLC_UL 0x80000097
1325
1326 #include "p_grlc.h"
1327
1328 #endif /* SAP_GRLC */
1329
1330 #ifdef SAP_GMMAA
1331
1332 /*
1333 * Mask for GMMAA Opcodes
1334 */
1335
1336 #define GMMAA_DL 0x6500
1337 #define GMMAA_UL 0x2500
1338
1339 #include "p_gmmaa.h"
1340
1341 #endif /* SAP_GMMAA */
1342
1343 #ifdef SAP_GMMREG
1344
1345 /*
1346 * Mask for GMMREG Opcodes
1347 */
1348
1349 #define GMMREG_DL 0x7300
1350 #define GMMREG_UL 0x3300
1351
1352 #include "p_gmmreg.h"
1353
1354 #endif /* SAP_GMMREG */
1355
1356 #ifdef SAP_GMMRR
1357
1358 /*
1359 * Mask for GMMRR Opcodes
1360 */
1361
1362 #define GMMRR_DL 0x5f00
1363 #define GMMRR_UL 0x1f00
1364
1365 #include "p_gmmrr.h"
1366
1367 #endif /* SAP_GMMRR */
1368
1369 #ifdef SAP_GMMSM
1370
1371 /*
1372 * Mask for GMMSM Opcodes
1373 */
1374
1375 #define GMMSM_DL 0x6400
1376 #define GMMSM_UL 0x2400
1377
1378 #include "p_gmmsm.h"
1379
1380 #endif /* SAP_GMMSM */
1381
1382 #ifdef SAP_GMMSMS
1383
1384 /*
1385 * Mask for GMMSMS Opcodes
1386 */
1387
1388 #define GMMSMS_DL 0x6300
1389 #define GMMSMS_UL 0x2300
1390
1391 #include "p_gmmsms.h"
1392
1393 #endif /* SAP_GMMSMS */
1394
1395
1396 #ifdef SAP_GSIM
1397
1398 /*
1399 * Mask for GMMSIM Opcodes
1400 */
1401
1402 #define GSIM_DL 0x6900
1403 #define GSIM_UL 0x2900
1404
1405 #include "p_gsim.h"
1406
1407 #endif /* SAP_GSIM */
1408
1409 #ifdef SAP_MMGMM
1410
1411 /*
1412 * Mask for MMGMM Opcodes
1413 */
1414
1415 #define MMGMM_DL 0x6e00
1416 #define MMGMM_UL 0x2e00
1417
1418 #include "p_mmgmm.h"
1419
1420 #endif /* SAP_MMGMM */
1421
1422 #ifdef SAP_BTP
1423
1424 /*
1425 * Mask for BTP Opcodes
1426 */
1427
1428 #define BTP_G 0x7a00
1429 #define BTP_B 0x3a00
1430
1431 #include "p_btp.h"
1432
1433 #endif /* SAP_BTP */
1434
1435 #ifdef SAP_PPP
1436
1437 /*
1438 * Mask for PPP Opcodes
1439 */
1440
1441 #define PPP_DL 0x7500
1442 #define PPP_UL 0x3500
1443
1444 #include "p_ppp.h"
1445
1446 #endif /* SAP_PPP */
1447
1448 #ifdef SAP_UART
1449
1450 /*
1451 * Mask for UART Opcodes
1452 */
1453
1454 #define UART_DL 0x7400
1455 #define UART_UL 0x3400
1456
1457 #include "p_uart.h"
1458
1459 #endif /* SAP_UART */
1460
1461 #ifdef SAP_CCI
1462
1463 /*
1464 * Mask for CCI Opcodes
1465 */
1466
1467 #define CCI_DL 0x7600
1468 #define CCI_UL 0x3600
1469
1470 #include "p_cci.h"
1471
1472 #endif /* SAP_CCI */
1473
1474 #ifdef SAP_DTI2
1475
1476 /*
1477 * Mask for DTI Opcodes
1478 */
1479
1480 #define DTI2_DL 0x7700
1481 #define DTI2_UL 0x3700
1482
1483 #include "p_dti2.h"
1484
1485 #endif /* SAP_DTI2 */
1486
1487 #ifdef SAP_PKT
1488
1489 /*
1490 * Mask for PKT opcodes
1491 */
1492
1493 #define PKT_DL 0x80004045
1494 #define PKT_UL 0x80000045
1495
1496 #include "p_pkt.h"
1497
1498 #endif /* SAP_PKT */
1499 #ifdef SAP_EM
1500
1501 /*
1502 * Mask for EM Opcodes
1503 */
1504
1505 #define EM_Dl 0x7E00
1506 #define EM_Ul 0x3E00
1507
1508 #include "p_em.h"
1509
1510 #endif /* SAP_EM */
1511
1512
1513
1514 #ifdef SAP_RRLC
1515
1516 /*
1517 * Mask for RREOTD Opcodes
1518 */
1519
1520 #define RRLC_DL 0x80004040
1521 #define RRLC_UL 0x80000040
1522
1523 #include "p_rrlc.h"
1524
1525 #endif /* SAP_RRLC */
1526
1527 #ifdef SAP_RRRRLP
1528
1529 /*
1530 * Mask for RRRRLP Opcodes
1531 */
1532
1533 #define RRRRLP_DL 0x80004041
1534 #define RRRRLP_UL 0x80000041
1535
1536 #include "p_rrrrlp.h"
1537
1538 #endif /* SAP_RRRRLP */
1539
1540 #ifdef SAP_RRLP
1541
1542 /*
1543 * Mask for RRLP Opcodes
1544 */
1545
1546 #define RRLP_DL 0x80004042
1547 #define RRLP_UL 0x80000042
1548
1549 #include "p_rrlp.h"
1550
1551 #endif /* SAP_RRLP */
1552
1553 #ifdef SAP_CSRLC
1554
1555 /*
1556 * Mask for CSRLC Opcodes
1557 */
1558
1559 #define CSRLC_DL 0x80004043
1560 #define CSRLC_UL 0x80000043
1561
1562 //#include "p_csrlc.h"
1563
1564 #endif /* SAP_CSRLC */
1565
1566 #ifdef SAP_MNLC
1567
1568 /*
1569 * Mask for MNLC Opcodes
1570 */
1571
1572 #define MNLC_DL 0x80004044
1573 #define MNLC_UL 0x80000044
1574
1575 #include "p_mnlc.h"
1576
1577 #endif /* SAP_MNLC */
1578
1579
1580 #ifdef SAP_AAA
1581
1582 /*
1583 * Mask for AAA Opcodes
1584 */
1585 #define AAA_DL 0x80004047
1586 #define AAA_UL 0x80000047
1587
1588 #include "p_aaa.h"
1589
1590 #endif /* SAP_AAA */
1591
1592 /*
1593 * Mask for DCM Opcodes
1594 */
1595 #ifdef SAP_DCM
1596
1597 #define DCM_DL 0x8000401C
1598 #define DCM_UL 0x8000001C
1599
1600 #include "p_dcm.h"
1601
1602 #endif /* SAP_DCM */
1603 #ifdef SAP_PSI
1604
1605 /*
1606 * Mask for PSI Opcodes
1607 */
1608 #define PSI_DL 0x8000401D
1609 #define PSI_UL 0x8000001D
1610
1611 #include "p_psi.h"
1612 #include "DIO_inline.h"
1613 #endif /* SAP_PSI */
1614
1615 #ifdef SAP_APP
1616
1617 /*
1618 * Mask for APP Opcodes
1619 */
1620 #define APP_DL 0x8000401E
1621 #define APP_UL 0x8000001E
1622
1623 #include "p_app.h"
1624 #endif /* SAP_APP */
1625
1626 #ifdef FF_BAT
1627 #include "p_bat.h"
1628 #endif /* FF_BAT */
1629
1630 #endif /* PRIM_H */