Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csr_wifi_nme_ap_converter_init.c
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  (c) Cambridge Silicon Radio Limited 2012
4  All rights reserved and confidential information of CSR
5 
6  Refer to LICENSE.txt included with this source for details
7  on the license terms.
8 
9 *****************************************************************************/
10 
11 /* Note: this is an auto-generated file. */
12 
13 #include "csr_msgconv.h"
14 #include "csr_macro.h"
15 
16 #ifdef CSR_WIFI_NME_ENABLE
17 #ifdef CSR_WIFI_AP_ENABLE
18 
19 #ifdef CSR_LOG_ENABLE
20 #include "csr_log.h"
21 #endif
22 
23 #ifndef EXCLUDE_CSR_WIFI_NME_AP_MODULE
25 #include "csr_wifi_nme_ap_prim.h"
26 
27 static CsrMsgConvMsgEntry csrwifinmeap_conv_lut[] = {
41 
42  { 0, NULL, NULL, NULL, NULL },
43 };
44 
45 CsrMsgConvMsgEntry* CsrWifiNmeApConverterLookup(CsrMsgConvMsgEntry *ce, u16 msgType)
46 {
47  if (msgType & CSR_PRIM_UPSTREAM)
48  {
49  u16 idx = (msgType & ~CSR_PRIM_UPSTREAM) + CSR_WIFI_NME_AP_PRIM_DOWNSTREAM_COUNT;
51  csrwifinmeap_conv_lut[idx].msgType == msgType)
52  {
53  return &csrwifinmeap_conv_lut[idx];
54  }
55  }
56  else
57  {
59  csrwifinmeap_conv_lut[msgType].msgType == msgType)
60  {
61  return &csrwifinmeap_conv_lut[msgType];
62  }
63  }
64  return NULL;
65 }
66 
67 
69 {
70  CsrMsgConvInsert(CSR_WIFI_NME_AP_PRIM, csrwifinmeap_conv_lut);
71  CsrMsgConvCustomLookupRegister(CSR_WIFI_NME_AP_PRIM, CsrWifiNmeApConverterLookup);
72 }
73 
74 
75 #ifdef CSR_LOG_ENABLE
76 static const CsrLogPrimitiveInformation csrwifinmeap_conv_info = {
78  (char *)"CSR_WIFI_NME_AP_PRIM",
79  csrwifinmeap_conv_lut
80 };
81 const CsrLogPrimitiveInformation* CsrWifiNmeApTechInfoGet(void)
82 {
83  return &csrwifinmeap_conv_info;
84 }
85 
86 
87 #endif /* CSR_LOG_ENABLE */
88 #endif /* EXCLUDE_CSR_WIFI_NME_AP_MODULE */
89 #endif /* CSR_WIFI_NME_ENABLE */
90 #endif /* CSR_WIFI_AP_ENABLE */