Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csr_wifi_router_ctrl_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_LOG_ENABLE
17 #include "csr_log.h"
18 #endif
19 
20 #ifndef EXCLUDE_CSR_WIFI_ROUTER_CTRL_MODULE
23 
24 static CsrMsgConvMsgEntry csrwifirouterctrl_conv_lut[] = {
87 
88  { 0, NULL, NULL, NULL, NULL },
89 };
90 
92 {
93  if (msgType & CSR_PRIM_UPSTREAM)
94  {
95  u16 idx = (msgType & ~CSR_PRIM_UPSTREAM) + CSR_WIFI_ROUTER_CTRL_PRIM_DOWNSTREAM_COUNT;
97  csrwifirouterctrl_conv_lut[idx].msgType == msgType)
98  {
99  return &csrwifirouterctrl_conv_lut[idx];
100  }
101  }
102  else
103  {
105  csrwifirouterctrl_conv_lut[msgType].msgType == msgType)
106  {
107  return &csrwifirouterctrl_conv_lut[msgType];
108  }
109  }
110  return NULL;
111 }
112 
113 
115 {
116  CsrMsgConvInsert(CSR_WIFI_ROUTER_CTRL_PRIM, csrwifirouterctrl_conv_lut);
118 }
119 
120 
121 #ifdef CSR_LOG_ENABLE
122 static const CsrLogPrimitiveInformation csrwifirouterctrl_conv_info = {
124  (char *)"CSR_WIFI_ROUTER_CTRL_PRIM",
125  csrwifirouterctrl_conv_lut
126 };
127 const CsrLogPrimitiveInformation* CsrWifiRouterCtrlTechInfoGet(void)
128 {
129  return &csrwifirouterctrl_conv_info;
130 }
131 
132 
133 #endif /* CSR_LOG_ENABLE */
134 #endif /* EXCLUDE_CSR_WIFI_ROUTER_CTRL_MODULE */