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)
Only thing left in here is the TRUE/FALSE #defines, so move them to csr_macro.h and remove the file. 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>
188 lines
5.6 KiB
C
188 lines
5.6 KiB
C
#ifndef CSR_LIB_H__
|
|
#define CSR_LIB_H__
|
|
/*****************************************************************************
|
|
|
|
(c) Cambridge Silicon Radio Limited 2010
|
|
All rights reserved and confidential information of CSR
|
|
|
|
Refer to LICENSE.txt included with this source for details
|
|
on the license terms.
|
|
|
|
*****************************************************************************/
|
|
|
|
#include "csr_prim_defs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
} CsrEvent;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEvent_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEvent
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEvent *CsrEvent_struct(u16 primtype, u16 msgtype);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u8 value;
|
|
} CsrEventCsrUint8;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint8_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint8
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint8 *CsrEventCsrUint8_struct(u16 primtype, u16 msgtype, u8 value);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u16 value;
|
|
} CsrEventCsrUint16;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint16_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint16
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint16 *CsrEventCsrUint16_struct(u16 primtype, u16 msgtype, u16 value);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u16 value1;
|
|
u8 value2;
|
|
} CsrEventCsrUint16CsrUint8;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint16CsrUint8_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint16CsrUint8
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint16CsrUint8 *CsrEventCsrUint16CsrUint8_struct(u16 primtype, u16 msgtype, u16 value1, u8 value2);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u16 value1;
|
|
u16 value2;
|
|
} CsrEventCsrUint16CsrUint16;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint16CsrUint16_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint16CsrUint16
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint16CsrUint16 *CsrEventCsrUint16CsrUint16_struct(u16 primtype, u16 msgtype, u16 value1, u16 value2);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u16 value1;
|
|
u32 value2;
|
|
} CsrEventCsrUint16CsrUint32;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint16_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint16
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint16CsrUint32 *CsrEventCsrUint16CsrUint32_struct(u16 primtype, u16 msgtype, u16 value1, u32 value2);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u16 value1;
|
|
char *value2;
|
|
} CsrEventCsrUint16CsrCharString;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint16CsrCharString_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint16CsrCharString
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint16CsrCharString *CsrEventCsrUint16CsrCharString_struct(u16 primtype, u16 msgtype, u16 value1, char *value2);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u32 value;
|
|
} CsrEventCsrUint32;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint32_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint32
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint32 *CsrEventCsrUint32_struct(u16 primtype, u16 msgtype, u32 value);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u32 value1;
|
|
u16 value2;
|
|
} CsrEventCsrUint32CsrUint16;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint32CsrUint16_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint32CsrUint16
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint32CsrUint16 *CsrEventCsrUint32CsrUint16_struct(u16 primtype, u16 msgtype, u32 value1, u32 value2);
|
|
|
|
typedef struct
|
|
{
|
|
CsrPrim type;
|
|
u32 value1;
|
|
char *value2;
|
|
} CsrEventCsrUint32CsrCharString;
|
|
|
|
/*----------------------------------------------------------------------------*
|
|
* CsrEventCsrUint32CsrCharString_struct
|
|
*
|
|
* DESCRIPTION
|
|
* Generic message creator.
|
|
* Allocates and fills in a message with the signature CsrEventCsrUint32CsrCharString
|
|
*
|
|
*----------------------------------------------------------------------------*/
|
|
CsrEventCsrUint32CsrCharString *CsrEventCsrUint32CsrCharString_struct(u16 primtype, u16 msgtype, u32 value1, char *value2);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* CSR_LIB_H__ */
|