Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csr_wifi_router_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 
17 #ifdef CSR_LOG_ENABLE
18 #include "csr_log.h"
19 #endif
20 
21 #ifndef EXCLUDE_CSR_WIFI_ROUTER_MODULE
23 #include "csr_wifi_router_prim.h"
24 
25 static CsrMsgConvMsgEntry csrwifirouter_conv_lut[] = {
35 
36  { 0, NULL, NULL, NULL, NULL },
37 };
38 
40 {
41  if (msgType & CSR_PRIM_UPSTREAM)
42  {
43  u16 idx = (msgType & ~CSR_PRIM_UPSTREAM) + CSR_WIFI_ROUTER_PRIM_DOWNSTREAM_COUNT;
45  csrwifirouter_conv_lut[idx].msgType == msgType)
46  {
47  return &csrwifirouter_conv_lut[idx];
48  }
49  }
50  else
51  {
53  csrwifirouter_conv_lut[msgType].msgType == msgType)
54  {
55  return &csrwifirouter_conv_lut[msgType];
56  }
57  }
58  return NULL;
59 }
60 
61 
63 {
64  CsrMsgConvInsert(CSR_WIFI_ROUTER_PRIM, csrwifirouter_conv_lut);
66 }
67 
68 
69 #ifdef CSR_LOG_ENABLE
70 static const CsrLogPrimitiveInformation csrwifirouter_conv_info = {
72  (char *)"CSR_WIFI_ROUTER_PRIM",
73  csrwifirouter_conv_lut
74 };
75 const CsrLogPrimitiveInformation* CsrWifiRouterTechInfoGet(void)
76 {
77  return &csrwifirouter_conv_info;
78 }
79 
80 
81 #endif /* CSR_LOG_ENABLE */
82 #endif /* EXCLUDE_CSR_WIFI_ROUTER_MODULE */