Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csr_wifi_hip_unifi_signal_names.c
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  (c) Cambridge Silicon Radio Limited 2011
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 #include "csr_wifi_hip_unifi.h"
12 
13 struct sig_name
14 {
16  const char *name;
17 };
18 
19 static const struct sig_name Unifi_bulkcmd_names[] = {
20  { 0, "SignalCmd" },
21  { 1, "CopyToHost" },
22  { 2, "CopyToHostAck" },
23  { 3, "CopyFromHost" },
24  { 4, "CopyFromHostAck" },
25  { 5, "ClearSlot" },
26  { 6, "CopyOverlay" },
27  { 7, "CopyOverlayAck" },
28  { 8, "CopyFromHostAndClearSlot" },
29  { 15, "Padding" }
30 };
31 
32 const char* lookup_bulkcmd_name(u16 id)
33 {
34  if (id < 9)
35  {
36  return Unifi_bulkcmd_names[id].name;
37  }
38  if (id == 15)
39  {
40  return "Padding";
41  }
42 
43  return "UNKNOWN";
44 }
45 
46