2012-06-19 17:15:42 -06:00
|
|
|
/*****************************************************************************
|
|
|
|
|
|
|
|
(c) Cambridge Silicon Radio Limited 2011
|
|
|
|
All rights reserved and confidential information of CSR
|
|
|
|
|
|
|
|
Refer to LICENSE.txt included with this source for details
|
|
|
|
on the license terms.
|
|
|
|
|
|
|
|
*****************************************************************************/
|
|
|
|
|
|
|
|
#include "csr_wifi_hip_unifi.h"
|
|
|
|
|
2012-11-02 15:10:18 -06:00
|
|
|
struct sig_name {
|
2012-11-02 15:10:19 -06:00
|
|
|
s16 id;
|
2012-11-02 15:10:17 -06:00
|
|
|
const char *name;
|
2012-06-19 17:15:42 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
static const struct sig_name Unifi_bulkcmd_names[] = {
|
2012-11-02 15:10:19 -06:00
|
|
|
{ 0, "SignalCmd" },
|
|
|
|
{ 1, "CopyToHost" },
|
|
|
|
{ 2, "CopyToHostAck" },
|
|
|
|
{ 3, "CopyFromHost" },
|
|
|
|
{ 4, "CopyFromHostAck" },
|
|
|
|
{ 5, "ClearSlot" },
|
|
|
|
{ 6, "CopyOverlay" },
|
|
|
|
{ 7, "CopyOverlayAck" },
|
|
|
|
{ 8, "CopyFromHostAndClearSlot" },
|
|
|
|
{ 15, "Padding" }
|
2012-06-19 17:15:42 -06:00
|
|
|
};
|
|
|
|
|
2012-11-02 15:10:20 -06:00
|
|
|
const char *lookup_bulkcmd_name(u16 id)
|
2012-06-19 17:15:42 -06:00
|
|
|
{
|
2012-11-02 15:10:17 -06:00
|
|
|
if (id < 9)
|
|
|
|
return Unifi_bulkcmd_names[id].name;
|
|
|
|
if (id == 15)
|
|
|
|
return "Padding";
|
|
|
|
|
|
|
|
return "UNKNOWN";
|
2012-06-19 17:15:42 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|