comparison gpf/frame/frm_ext.c @ 0:75a11d740a02

initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 09 Jun 2016 00:02:41 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:75a11d740a02
1 /*
2 +------------------------------------------------------------------------------
3 | File: frm_ext.c
4 +------------------------------------------------------------------------------
5 | Copyright 2005 Texas Instruments Berlin, AG
6 | All rights reserved.
7 |
8 | This file is confidential and a trade secret of Texas
9 | Instruments Berlin, AG
10 | The receipt of or possession of this file does not convey
11 | any rights to reproduce or disclose its contents or to
12 | manufacture, use, or sell anything it may describe, in
13 | whole, or in part, without the specific written consent of
14 | Texas Instruments Berlin, AG.
15 +-----------------------------------------------------------------------------
16 | Purpose : This module provides functionality for the Frame Extension
17 | Interface.
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef __FRM_EXT_C__
22 #define __FRM_EXT_C__
23 /*==== INCLUDES ===================================================*/
24
25 #include <stdio.h>
26 #include <string.h>
27
28 #include "gpfconf.h"
29 #include "typedefs.h"
30 #include "os.h"
31 #include "vsi.h"
32 #include "frame.h"
33 #include "tools.h"
34 #include "frm_defs.h"
35 #include "frm_types.h"
36 #include "frm_glob.h"
37 #include "p_mem.h"
38 #include "frm_ext.h"
39
40 /*==== TYPES ================================================================*/
41
42
43 /*==== PROTOTYPES ===============================================================*/
44
45 void fei_lemu_SendToQueue_init ( void );
46 void fei_lemu_SendToQueue_register(int(* func)(OS_HANDLE SndComHandle, OS_HANDLE RcvComHandle,
47 OS_HANDLE RcvQHandle, USHORT Prio, ULONG Suspend,
48 OS_QDATA *Msg ), ULONG ret_ok);
49
50 /*==== MACROS ================================================================*/
51
52 #define LEMU_SENDTOQUEUE_INITIALIZED 0xaffedead
53
54 /*==== VARIABLES ==================================================*/
55
56 #ifndef _TOOLS_
57 #ifndef RUN_INT_RAM
58 T_lemu_SendToQueue lemu_SendToQueue_func;
59 #else
60 extern T_lemu_SendToQueue lemu_SendToQueue_func;
61 #endif
62 #endif
63
64 /*==== FUNCTIONS ==================================================*/
65
66 #ifndef _TOOLS_
67 #ifndef RUN_INT_RAM
68 /*
69 +------------------------------------------------------------------------------
70 | Function : fei_lemu_SendToQueue_register
71 +------------------------------------------------------------------------------
72 | Description : register the lemu_SendToQueue function.
73 |
74 | Parameters : func - pointer to API function pointer table
75 |
76 | Return : void
77 +------------------------------------------------------------------------------
78 */
79 void fei_lemu_SendToQueue_register( int (* func)(OS_HANDLE SndComHandle,
80 OS_HANDLE RcvComHandle, OS_HANDLE RcvQHandle, USHORT Prio,
81 ULONG Suspend, OS_QDATA *Msg ), ULONG ret_ok)
82 {
83 lemu_SendToQueue_func.ret_ok = ret_ok;
84 lemu_SendToQueue_func.plemu_SendToQueue = func;
85 lemu_SendToQueue_func.magic_nr = LEMU_SENDTOQUEUE_INITIALIZED;
86 }
87 #endif
88
89 #ifndef RUN_INT_RAM
90 /*
91 +------------------------------------------------------------------------------
92 | Function : fei_lemu_SendToQueue_init
93 +------------------------------------------------------------------------------
94 | Description : initialize lemu_SendToQueue function pointer table.
95 |
96 | Parameters : void
97 |
98 | Return : void
99 +------------------------------------------------------------------------------
100 */
101 void fei_lemu_SendToQueue_init ( void )
102 {
103 if ( lemu_SendToQueue_func.magic_nr != LEMU_SENDTOQUEUE_INITIALIZED)
104 {
105 lemu_SendToQueue_func.ret_ok = 0;
106 lemu_SendToQueue_func.plemu_SendToQueue = NULL;
107 lemu_SendToQueue_func.magic_nr = 0;
108 }
109 }
110 #endif
111
112 #endif /* !_TOOLS_*/
113
114
115 #endif /* __FRM_EXT_C__ */