comparison gsm-fw/gpf/conf/gpf_tst_drv.c @ 486:c8e12b7bbd0b

gsm-fw/gpf/conf/gpf_tst_drv.c: added
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sun, 29 Jun 2014 20:09:08 +0000
parents
children
comparison
equal deleted inserted replaced
485:890ffca53a09 486:c8e12b7bbd0b
1 /*
2 * This module is our FreeCalypso adaptation of
3 * g23m/condat/frame/config/gprsdrv.c from the Leonardo semi-src.
4 * I renamed it from gprsdrv.c to gpf_tst_drv.c because nothing
5 * in this module is specific to the GPRS configuration.
6 */
7
8 #ifndef __GPRSDRV_C__
9 #define __GPRSDRV_C__
10 #endif
11
12 #include "gpfconf.h"
13
14 #ifndef _TARGET_
15 #define NEW_ENTITY
16 #endif
17
18 #ifdef _TARGET_
19 #ifdef FF_TRACE_OVER_MTST
20 #define MTST_TRACE
21 #else
22 #define TI_TRACE
23 #endif
24 #endif
25
26 #include "gdi.h"
27 #include "vsi.h"
28 #include "pei.h"
29 /* #include "gprsconst.h" */
30 #include "frm_defs.h"
31 #include "frm_types.h"
32
33 /*==== TYPES ======================================================*/
34
35
36 /*==== CONSTANTS ==================================================*/
37
38 #if defined _TARGET_ && !defined PCON
39 #define TR_RCV_BUF_SIZE 1024
40 #else
41 #define TR_RCV_BUF_SIZE 1024
42 #endif
43
44 #define TR_MAX_IND (TR_RCV_BUF_SIZE-1)
45
46 /*==== EXTERNALS ==================================================*/
47
48 #ifdef TI_TRACE
49 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
50 T_DRV_EXPORT const **DrvInfo );
51 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
52 T_DRV_EXPORT const **DrvInfo );
53 extern USHORT TITRC_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
54 T_DRV_EXPORT const **DrvInfo );
55 #else
56 extern USHORT TIF_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
57 T_DRV_EXPORT const **DrvInfo );
58 extern USHORT TR_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
59 T_DRV_EXPORT const **DrvInfo );
60 extern USHORT SER_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
61 T_DRV_EXPORT const **DrvInfo );
62 #endif
63 extern USHORT mux_Init ( USHORT DrvHandle, T_DRV_CB_FUNC CallbackFunc,
64 T_DRV_EXPORT const **DrvInfo );
65 /*==== VARIABLES ==================================================*/
66
67 ULONG TR_RcvBufferSize = TR_RCV_BUF_SIZE;
68 ULONG TR_MaxInd = TR_MAX_IND;
69
70 const T_DRV_LIST_ENTRY DrvList[] =
71 {
72 { NULL, NULL, NULL, NULL },
73 #ifdef TI_TRACE
74 { "TIF", TIF_Init, "RCV", NULL },
75 { "TR", TR_Init, NULL, NULL },
76 { "TITRC",TITRC_Init, NULL, "" },
77 #else
78 #ifdef MTST_TRACE
79 { "TIF", TIF_Init, "RCV", NULL },
80 { "TR", TR_Init, NULL, NULL },
81 { "MUX", mux_Init, NULL, "" },
82 #else
83 { "TIF", TIF_Init, "RCV", NULL },
84 { "TR", TR_Init, NULL, NULL },
85 { "SER", SER_Init, NULL, "" },
86 #endif
87 #endif
88 { NULL, NULL, NULL, NULL }
89 };
90
91 int vsi_o_trace (char *caller, ULONG tclass, char *text,...)
92 {
93 return 0;
94 }