import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / connectivity / combo / common / core / include / wmt_func.h
1 /*! \file
2 \brief Declaration of library functions
3
4 Any definitions in this file will be shared among GLUE Layer and internal Driver Stack.
5 */
6
7
8
9 #ifndef _WMT_FUNC_H_
10 #define _WMT_FUNC_H_
11
12 #include "wmt_core.h"
13 #include "wmt_plat.h"
14 #include "osal.h"
15 /*******************************************************************************
16 * C O M P I L E R F L A G S
17 ********************************************************************************
18 */
19
20 /*******************************************************************************
21 * M A C R O S
22 ********************************************************************************
23 */
24
25 #if 1 /* defined(CONFIG_MTK_COMBO_HCI_DRIVER) || defined(CONFIG_MTK_COMBO_BT) */
26 #define CFG_FUNC_BT_SUPPORT 1
27 #else
28 #define CFG_FUNC_BT_SUPPORT 0
29 #endif
30
31
32 #if 1 /* defined(CONFIG_MTK_COMBO_FM) */
33 #define CFG_FUNC_FM_SUPPORT 1
34 #else
35 #define CFG_FUNC_FM_SUPPORT 0
36 #endif
37
38 #if 1 /* defined(CONFIG_MTK_COMBO_GPS) */
39 #define CFG_FUNC_GPS_SUPPORT 1
40 #else
41 #define CFG_FUNC_GPS_SUPPORT 0
42 #endif
43
44 #if 1 /* defined(CONFIG_MTK_COMBO_WIFI) */
45 #define CFG_FUNC_WIFI_SUPPORT 1
46 #else
47 #define CFG_FUNC_WIFI_SUPPORT 0
48 #endif
49
50 #if 1
51 #define CFG_FUNC_ANT_SUPPORT 1
52 #else
53 #define CFG_FUNC_ANT_SUPPORT 0
54 #endif
55
56
57 /*******************************************************************************
58 * E X T E R N A L R E F E R E N C E S
59 ********************************************************************************
60 */
61
62
63 /*******************************************************************************
64 * C O N S T A N T S
65 ********************************************************************************
66 */
67
68
69 /*******************************************************************************
70 * D A T A T Y P E S
71 ********************************************************************************
72 */
73
74 typedef INT32(*SUBSYS_FUNC_ON) (P_WMT_IC_OPS pOps, P_WMT_GEN_CONF pConf);
75 typedef INT32(*SUBSYS_FUNC_OFF) (P_WMT_IC_OPS pOps, P_WMT_GEN_CONF pConf);
76
77 typedef struct _WMT_FUNC_OPS_ {
78 SUBSYS_FUNC_ON func_on;
79 SUBSYS_FUNC_OFF func_off;
80 } WMT_FUNC_OPS, *P_WMT_FUNC_OPS;
81
82 typedef struct _CMB_PIN_CTRL_REG_ {
83 UINT32 regAddr;
84 UINT32 regValue;
85 UINT32 regMask;
86
87 } CMB_PIN_CTRL_REG, *P_CMB_PIN_CTRL_REG;
88
89 typedef struct _CMB_PIN_CTRL_ {
90 UINT32 pinId;
91 UINT32 regNum;
92 P_CMB_PIN_CTRL_REG pFuncOnArray;
93 P_CMB_PIN_CTRL_REG pFuncOffArray;
94
95 } CMB_PIN_CTRL, *P_CMB_PIN_CTRL;
96
97 typedef enum _ENUM_CMP_PIN_ID_ {
98 CMB_PIN_EEDI_ID = 0,
99 CMB_PIN_EEDO_ID = 1,
100 CMB_PIN_GSYNC_ID = 2,
101 } ENUM_CMP_PIN_ID, *P_ENUM_CMP_PIN_ID;
102
103 /*******************************************************************************
104 * P U B L I C D A T A
105 ********************************************************************************
106 */
107
108
109 /*******************************************************************************
110 * P R I V A T E D A T A
111 ********************************************************************************
112 */
113
114 /*******************************************************************************
115 * F U N C T I O N D E C L A R A T I O N S
116 ********************************************************************************
117 */
118
119
120 /*******************************************************************************
121 * F U N C T I O N S
122 ********************************************************************************
123 */
124
125
126
127
128
129
130
131 #endif /* _WMT_FUNC_H_ */