comparison gsm-fw/include/condat/prim.h @ 662:a712c95b60c1

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