comparison g23m/condat/frame/config/gprsdrv.c @ 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 :
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 { "TIF", TIF_Init, "RCV", NULL },
86 { "TR", TR_Init, NULL, NULL },
87 { "TITRC",TITRC_Init, NULL, "" },
88 #else
89 #ifdef MTST_TRACE
90 { "TIF", TIF_Init, "RCV", NULL },
91 { "TR", TR_Init, NULL, NULL },
92 { "MUX", mux_Init, NULL, "" },
93 #else
94 { "TIF", TIF_Init, "RCV", NULL },
95 { "TR", TR_Init, NULL, NULL },
96 { "SER", SER_Init, NULL, "" },
97 #endif
98 #endif
99 { NULL, NULL, NULL, NULL }
100 };
101
102 int vsi_o_trace (char *caller, ULONG tclass, char *text,...)
103 {
104 return 0;
105 }