FreeCalypso > hg > fc-magnetite
comparison src/condat3/frame/config/gprsdrv.c @ 18:c8bd5a927942
src/condat3: import of "condat" tree from TCS3.2, pruned
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 27 Sep 2016 21:25:36 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
17:6323e661f2ed | 18:c8bd5a927942 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : | |
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 : Driver Table for GPRS | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef __GPRSDRV_C__ | |
22 #define __GPRSDRV_C__ | |
23 #endif | |
24 | |
25 #ifndef _TARGET_ | |
26 #define NEW_ENTITY | |
27 #endif | |
28 | |
29 #ifdef _TARGET_ | |
30 #ifdef FF_TRACE_OVER_MTST | |
31 #define MTST_TRACE | |
32 #else | |
33 #define TI_TRACE | |
34 #endif | |
35 #endif | |
36 | |
37 #include "gdi.h" | |
38 #include "vsi.h" | |
39 #include "pei.h" | |
40 #include "gprsconst.h" | |
41 #include "frm_defs.h" | |
42 #include "frm_types.h" | |
43 | |
44 /*==== TYPES ======================================================*/ | |
45 | |
46 | |
47 /*==== CONSTANTS ==================================================*/ | |
48 | |
49 #if defined _TARGET_ && !defined PCON | |
50 #define TR_RCV_BUF_SIZE 1024 | |
51 #else | |
52 #define TR_RCV_BUF_SIZE 1024 | |
53 #endif | |
54 | |
55 #define TR_MAX_IND (TR_RCV_BUF_SIZE-1) | |
56 | |
57 /*==== EXTERNALS ==================================================*/ | |
58 | |
59 #ifdef TI_TRACE | |
60 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
61 T_DRV_EXPORT const **DrvInfo ); | |
62 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
63 T_DRV_EXPORT const **DrvInfo ); | |
64 extern USHORT TITRC_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
65 T_DRV_EXPORT const **DrvInfo ); | |
66 #else | |
67 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
68 T_DRV_EXPORT const **DrvInfo ); | |
69 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
70 T_DRV_EXPORT const **DrvInfo ); | |
71 extern USHORT SER_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
72 T_DRV_EXPORT const **DrvInfo ); | |
73 #endif | |
74 extern USHORT mux_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc, | |
75 T_DRV_EXPORT const **DrvInfo ); | |
76 /*==== VARIABLES ==================================================*/ | |
77 | |
78 ULONG TR_RcvBufferSize = TR_RCV_BUF_SIZE; | |
79 ULONG TR_MaxInd = TR_MAX_IND; | |
80 | |
81 const T_DRV_LIST_ENTRY DrvList[] = | |
82 { | |
83 { NULL, NULL, NULL, NULL }, | |
84 #ifdef TI_TRACE | |
85 #if defined _TARGET_ | |
86 { "TIF", TIF_Init, "RCV", NULL }, | |
87 #else | |
88 { "TIF", TIF_Init, "RCV", "ENABLE_PCON" }, | |
89 #endif | |
90 { "TR", TR_Init, NULL, NULL }, | |
91 { "TITRC",TITRC_Init, NULL, "" }, | |
92 #else | |
93 #ifdef MTST_TRACE | |
94 #if defined _TARGET_ | |
95 { "TIF", TIF_Init, "RCV", NULL }, | |
96 #else | |
97 { "TIF", TIF_Init, "RCV", "ENABLE_PCON" }, | |
98 #endif | |
99 { "TR", TR_Init, NULL, NULL }, | |
100 { "MUX", mux_Init, NULL, "" }, | |
101 #else | |
102 #if defined _TARGET_ | |
103 { "TIF", TIF_Init, "RCV", NULL }, | |
104 #else | |
105 { "TIF", TIF_Init, "RCV", "ENABLE_PCON" }, | |
106 #endif | |
107 { "TR", TR_Init, NULL, NULL }, | |
108 { "SER", SER_Init, NULL, "" }, | |
109 #endif | |
110 #endif | |
111 { NULL, NULL, NULL, NULL } | |
112 }; | |
113 | |
114 int vsi_o_trace (char *caller, ULONG tclass, char *text,...) | |
115 { | |
116 return 0; | |
117 } |