mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-25 02:09:42 +00:00
![Greg Kroah-Hartman](/assets/img/avatar_default.png)
Use char instead. Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com> Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com> Cc: Riku Mettälä <riku.mettala@bluegiga.com> Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1 KiB
C
46 lines
1 KiB
C
/*****************************************************************************
|
|
|
|
(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"
|
|
|
|
struct sig_name
|
|
{
|
|
s16 id;
|
|
const char *name;
|
|
};
|
|
|
|
static const struct sig_name Unifi_bulkcmd_names[] = {
|
|
{ 0, "SignalCmd" },
|
|
{ 1, "CopyToHost" },
|
|
{ 2, "CopyToHostAck" },
|
|
{ 3, "CopyFromHost" },
|
|
{ 4, "CopyFromHostAck" },
|
|
{ 5, "ClearSlot" },
|
|
{ 6, "CopyOverlay" },
|
|
{ 7, "CopyOverlayAck" },
|
|
{ 8, "CopyFromHostAndClearSlot" },
|
|
{ 15, "Padding" }
|
|
};
|
|
|
|
const char* lookup_bulkcmd_name(u16 id)
|
|
{
|
|
if (id < 9)
|
|
{
|
|
return Unifi_bulkcmd_names[id].name;
|
|
}
|
|
if (id == 15)
|
|
{
|
|
return "Padding";
|
|
}
|
|
|
|
return "UNKNOWN";
|
|
}
|
|
|
|
|