summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/csr/bh.c2
-rw-r--r--drivers/staging/csr/csr_framework_ext.h12
-rw-r--r--drivers/staging/csr/csr_framework_ext_types.h2
-rw-r--r--drivers/staging/csr/csr_lib.h16
-rw-r--r--drivers/staging/csr/csr_log.h32
-rw-r--r--drivers/staging/csr/csr_log_configure.h4
-rw-r--r--drivers/staging/csr/csr_macro.h18
-rw-r--r--drivers/staging/csr/csr_msgconv.h10
-rw-r--r--drivers/staging/csr/csr_pmem.h10
-rw-r--r--drivers/staging/csr/csr_sched.h10
-rw-r--r--drivers/staging/csr/csr_sdio.h36
-rw-r--r--drivers/staging/csr/csr_serialize_primitive_types.c24
-rw-r--r--drivers/staging/csr/csr_time.h4
-rw-r--r--drivers/staging/csr/csr_types.h5
-rw-r--r--drivers/staging/csr/csr_unicode.h12
-rw-r--r--drivers/staging/csr/csr_utf16.c76
-rw-r--r--drivers/staging/csr/csr_util.c30
-rw-r--r--drivers/staging/csr/csr_util.h14
-rw-r--r--drivers/staging/csr/csr_wifi_fsm.h14
-rw-r--r--drivers/staging/csr/csr_wifi_fsm_types.h10
-rw-r--r--drivers/staging/csr/csr_wifi_hip_card.h6
-rw-r--r--drivers/staging/csr/csr_wifi_hip_card_sdio.c44
-rw-r--r--drivers/staging/csr/csr_wifi_hip_card_sdio.h112
-rw-r--r--drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c12
-rw-r--r--drivers/staging/csr/csr_wifi_hip_card_sdio_mem.c98
-rw-r--r--drivers/staging/csr/csr_wifi_hip_chiphelper.c16
-rw-r--r--drivers/staging/csr/csr_wifi_hip_chiphelper.h24
-rw-r--r--drivers/staging/csr/csr_wifi_hip_chiphelper_private.h28
-rw-r--r--drivers/staging/csr/csr_wifi_hip_download.c32
-rw-r--r--drivers/staging/csr/csr_wifi_hip_dump.c12
-rw-r--r--drivers/staging/csr/csr_wifi_hip_send.c14
-rw-r--r--drivers/staging/csr/csr_wifi_hip_signals.c2
-rw-r--r--drivers/staging/csr/csr_wifi_hip_sigs.h10
-rw-r--r--drivers/staging/csr/csr_wifi_hip_ta_sampling.c32
-rw-r--r--drivers/staging/csr/csr_wifi_hip_ta_sampling.h14
-rw-r--r--drivers/staging/csr/csr_wifi_hip_unifi.h50
-rw-r--r--drivers/staging/csr/csr_wifi_hip_unifi_udi.h2
-rw-r--r--drivers/staging/csr/csr_wifi_hip_xbv.c166
-rw-r--r--drivers/staging/csr/csr_wifi_hip_xbv.h34
-rw-r--r--drivers/staging/csr/csr_wifi_lib.h4
-rw-r--r--drivers/staging/csr/csr_wifi_msgconv.h12
-rw-r--r--drivers/staging/csr/csr_wifi_nme_prim.h18
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_prim.h46
-rw-r--r--drivers/staging/csr/csr_wifi_router_ctrl_serialize.c108
-rw-r--r--drivers/staging/csr/csr_wifi_router_prim.h10
-rw-r--r--drivers/staging/csr/csr_wifi_router_serialize.c24
-rw-r--r--drivers/staging/csr/csr_wifi_router_transport.c2
-rw-r--r--drivers/staging/csr/csr_wifi_serialize_primitive_types.c18
-rw-r--r--drivers/staging/csr/csr_wifi_sme_prim.h78
-rw-r--r--drivers/staging/csr/csr_wifi_sme_serialize.c222
-rw-r--r--drivers/staging/csr/drv.c6
-rw-r--r--drivers/staging/csr/firmware.c4
-rw-r--r--drivers/staging/csr/netdev.c6
-rw-r--r--drivers/staging/csr/sdio_mmc.c20
-rw-r--r--drivers/staging/csr/sme_blocking.c2
-rw-r--r--drivers/staging/csr/sme_native.c8
-rw-r--r--drivers/staging/csr/sme_sys.c8
-rw-r--r--drivers/staging/csr/sme_userspace.c8
-rw-r--r--drivers/staging/csr/sme_wext.c4
-rw-r--r--drivers/staging/csr/ul_int.c4
-rw-r--r--drivers/staging/csr/unifi_clients.h2
-rw-r--r--drivers/staging/csr/unifi_event.c4
-rw-r--r--drivers/staging/csr/unifi_pdu_processing.c32
-rw-r--r--drivers/staging/csr/unifi_priv.h20
-rw-r--r--drivers/staging/csr/unifi_sme.c12
-rw-r--r--drivers/staging/csr/unifi_sme.h2
66 files changed, 865 insertions, 868 deletions
diff --git a/drivers/staging/csr/bh.c b/drivers/staging/csr/bh.c
index bfc2f9ef1b6..b089c28d561 100644
--- a/drivers/staging/csr/bh.c
+++ b/drivers/staging/csr/bh.c
@@ -227,7 +227,7 @@ bh_thread_function(void *arg)
unifi_priv_t *priv = (unifi_priv_t*)arg;
CsrResult csrResult;
long ret;
- CsrUint32 timeout, t;
+ u32 timeout, t;
struct uf_thread *this_thread;
unifi_trace(priv, UDBG2, "bh_thread_function starting\n");
diff --git a/drivers/staging/csr/csr_framework_ext.h b/drivers/staging/csr/csr_framework_ext.h
index 942db87faa0..82da0a4db5e 100644
--- a/drivers/staging/csr/csr_framework_ext.h
+++ b/drivers/staging/csr/csr_framework_ext.h
@@ -66,7 +66,7 @@ CsrResult CsrEventCreate(CsrEventHandle *eventHandle);
* CSR_FE_RESULT_INVALID_POINTER in case the eventBits pointer is invalid
*
*----------------------------------------------------------------------------*/
-CsrResult CsrEventWait(CsrEventHandle *eventHandle, u16 timeoutInMs, CsrUint32 *eventBits);
+CsrResult CsrEventWait(CsrEventHandle *eventHandle, u16 timeoutInMs, u32 *eventBits);
/*----------------------------------------------------------------------------*
* NAME
@@ -81,7 +81,7 @@ CsrResult CsrEventWait(CsrEventHandle *eventHandle, u16 timeoutInMs, CsrUint32 *
* CSR_FE_RESULT_INVALID_HANDLE in case the eventHandle is invalid
*
*----------------------------------------------------------------------------*/
-CsrResult CsrEventSet(CsrEventHandle *eventHandle, CsrUint32 eventBits);
+CsrResult CsrEventSet(CsrEventHandle *eventHandle, u32 eventBits);
/*----------------------------------------------------------------------------*
* NAME
@@ -195,7 +195,7 @@ void CsrGlobalMutexUnlock(void);
*
*----------------------------------------------------------------------------*/
CsrResult CsrThreadCreate(void (*threadFunction)(void *pointer), void *pointer,
- CsrUint32 stackSize, u16 priority,
+ u32 stackSize, u16 priority,
const CsrCharString *threadName, CsrThreadHandle *threadHandle);
/*----------------------------------------------------------------------------*
@@ -257,7 +257,7 @@ void CsrThreadSleep(u16 sleepTimeInMs);
*----------------------------------------------------------------------------*/
#ifdef CSR_MEM_DEBUG
void *CsrMemAllocDebug(CsrSize size,
- const CsrCharString *file, CsrUint32 line);
+ const CsrCharString *file, u32 line);
#define CsrMemAlloc(sz) CsrMemAllocDebug((sz), __FILE__, __LINE__)
#else
void *CsrMemAlloc(CsrSize size);
@@ -278,7 +278,7 @@ void *CsrMemAlloc(CsrSize size);
*----------------------------------------------------------------------------*/
#ifdef CSR_MEM_DEBUG
void *CsrMemCallocDebug(CsrSize numberOfElements, CsrSize elementSize,
- const CsrCharString *file, CsrUint32 line);
+ const CsrCharString *file, u32 line);
#define CsrMemCalloc(cnt, sz) CsrMemAllocDebug((cnt), (sz), __FILE__, __LINE__)
#else
void *CsrMemCalloc(CsrSize numberOfElements, CsrSize elementSize);
@@ -311,7 +311,7 @@ void CsrMemFree(void *pointer);
*----------------------------------------------------------------------------*/
#ifdef CSR_MEM_DEBUG
void *CsrMemAllocDmaDebug(CsrSize size,
- const CsrCharString *file, CsrUint32 line);
+ const CsrCharString *file, u32 line);
#define CsrMemAllocDma(sz) CsrMemAllocDmaDebug((sz), __FILE__, __LINE__)
#else
void *CsrMemAllocDma(CsrSize size);
diff --git a/drivers/staging/csr/csr_framework_ext_types.h b/drivers/staging/csr/csr_framework_ext_types.h
index d155a2b8eee..b1ff72f2ccf 100644
--- a/drivers/staging/csr/csr_framework_ext_types.h
+++ b/drivers/staging/csr/csr_framework_ext_types.h
@@ -49,7 +49,7 @@ struct CsrEvent
{
pthread_cond_t event;
pthread_mutex_t mutex;
- CsrUint32 eventBits;
+ u32 eventBits;
};
typedef struct CsrEvent CsrEventHandle;
diff --git a/drivers/staging/csr/csr_lib.h b/drivers/staging/csr/csr_lib.h
index 7259b63f17a..55768f857a2 100644
--- a/drivers/staging/csr/csr_lib.h
+++ b/drivers/staging/csr/csr_lib.h
@@ -102,7 +102,7 @@ typedef struct
{
CsrPrim type;
u16 value1;
- CsrUint32 value2;
+ u32 value2;
} CsrEventCsrUint16CsrUint32;
/*----------------------------------------------------------------------------*
@@ -113,7 +113,7 @@ typedef struct
* Allocates and fills in a message with the signature CsrEventCsrUint16
*
*----------------------------------------------------------------------------*/
-CsrEventCsrUint16CsrUint32 *CsrEventCsrUint16CsrUint32_struct(u16 primtype, u16 msgtype, u16 value1, CsrUint32 value2);
+CsrEventCsrUint16CsrUint32 *CsrEventCsrUint16CsrUint32_struct(u16 primtype, u16 msgtype, u16 value1, u32 value2);
typedef struct
{
@@ -135,7 +135,7 @@ CsrEventCsrUint16CsrCharString *CsrEventCsrUint16CsrCharString_struct(u16 primty
typedef struct
{
CsrPrim type;
- CsrUint32 value;
+ u32 value;
} CsrEventCsrUint32;
/*----------------------------------------------------------------------------*
@@ -146,12 +146,12 @@ typedef struct
* Allocates and fills in a message with the signature CsrEventCsrUint32
*
*----------------------------------------------------------------------------*/
-CsrEventCsrUint32 *CsrEventCsrUint32_struct(u16 primtype, u16 msgtype, CsrUint32 value);
+CsrEventCsrUint32 *CsrEventCsrUint32_struct(u16 primtype, u16 msgtype, u32 value);
typedef struct
{
CsrPrim type;
- CsrUint32 value1;
+ u32 value1;
u16 value2;
} CsrEventCsrUint32CsrUint16;
@@ -163,12 +163,12 @@ typedef struct
* Allocates and fills in a message with the signature CsrEventCsrUint32CsrUint16
*
*----------------------------------------------------------------------------*/
-CsrEventCsrUint32CsrUint16 *CsrEventCsrUint32CsrUint16_struct(u16 primtype, u16 msgtype, CsrUint32 value1, CsrUint32 value2);
+CsrEventCsrUint32CsrUint16 *CsrEventCsrUint32CsrUint16_struct(u16 primtype, u16 msgtype, u32 value1, u32 value2);
typedef struct
{
CsrPrim type;
- CsrUint32 value1;
+ u32 value1;
CsrCharString *value2;
} CsrEventCsrUint32CsrCharString;
@@ -180,7 +180,7 @@ typedef struct
* Allocates and fills in a message with the signature CsrEventCsrUint32CsrCharString
*
*----------------------------------------------------------------------------*/
-CsrEventCsrUint32CsrCharString *CsrEventCsrUint32CsrCharString_struct(u16 primtype, u16 msgtype, CsrUint32 value1, CsrCharString *value2);
+CsrEventCsrUint32CsrCharString *CsrEventCsrUint32CsrCharString_struct(u16 primtype, u16 msgtype, u32 value1, CsrCharString *value2);
#ifdef __cplusplus
}
diff --git a/drivers/staging/csr/csr_log.h b/drivers/staging/csr/csr_log.h
index f6aaac18f99..748657b6f80 100644
--- a/drivers/staging/csr/csr_log.h
+++ b/drivers/staging/csr/csr_log.h
@@ -27,7 +27,7 @@ extern "C" {
/*----------------------------------------------------*/
/* Filtering on environment specific log levels */
/*----------------------------------------------------*/
-typedef CsrUint32 CsrLogLevelEnvironment;
+typedef u32 CsrLogLevelEnvironment;
#define CSR_LOG_LEVEL_ENVIRONMENT_OFF ((CsrLogLevelEnvironment) 0x00000000) /* No environment data/events are logged */
#define CSR_LOG_LEVEL_ENVIRONMENT_BCI_ACL ((CsrLogLevelEnvironment) 0x00000001) /* BlueCore Channel Interface HCI Acl data are logged */
#define CSR_LOG_LEVEL_ENVIRONMENT_BCI_HCI ((CsrLogLevelEnvironment) 0x00000002) /* BlueCore Channel Interface HCI Cmd/Evt data are logged */
@@ -47,7 +47,7 @@ typedef CsrUint32 CsrLogLevelEnvironment;
/*----------------------------------------------------*/
/* Filtering on task specific log levels */
/*----------------------------------------------------*/
-typedef CsrUint32 CsrLogLevelTask;
+typedef u32 CsrLogLevelTask;
#define CSR_LOG_LEVEL_TASK_OFF ((CsrLogLevelTask) 0x00000000) /* No events are logged for this task */
#define CSR_LOG_LEVEL_TASK_TEXT ((CsrLogLevelTask) 0x00000001) /* Text strings printed by a task are logged NB: This bit does not affect the CSR_LOG_TEXT_LEVEL interface. This has to be configured separately */
#define CSR_LOG_LEVEL_TASK_TEXT_LOC ((CsrLogLevelTask) 0x00000002) /* The locaction where the text string call occured are logged. NB: This is a supplement to CSR_LOG_LEVEL_TASK_TEXT, it has no effect without it */
@@ -104,7 +104,7 @@ typedef struct
typedef struct
{
const CsrCharString *techVer;
- CsrUint32 primitiveInfoCount;
+ u32 primitiveInfoCount;
CsrLogPrimitiveInformation *primitiveInfo;
} CsrLogTechInformation;
@@ -113,7 +113,7 @@ typedef struct
/*---------------------------------*/
typedef u8 bitmask8_t;
typedef u16 bitmask16_t;
-typedef CsrUint32 bitmask32_t;
+typedef u32 bitmask32_t;
#ifdef CSR_LOG_ENABLE
#ifdef CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER
@@ -141,7 +141,7 @@ typedef CsrUint32 bitmask32_t;
/* DEPRECATED - replaced by csr_log_text.h */
void CsrLogTaskText(const CsrCharString *text,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
#define CSR_LOG_STATE_TRANSITION_MASK_FSM_NAME (0x001)
@@ -154,15 +154,15 @@ void CsrLogTaskText(const CsrCharString *text,
/* DEPRECATED - replaced by csr_log_text.h */
void CsrLogStateTransition(bitmask16_t mask,
- CsrUint32 identifier,
+ u32 identifier,
const CsrCharString *fsm_name,
- CsrUint32 prev_state,
+ u32 prev_state,
const CsrCharString *prev_state_str,
- CsrUint32 in_event,
+ u32 in_event,
const CsrCharString *in_event_str,
- CsrUint32 next_state,
+ u32 next_state,
const CsrCharString *next_state_str,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
/*---------------------------------*/
@@ -183,7 +183,7 @@ void CsrLogDeactivate(CsrSchedQid tskid);
#define SYNERGY_SERIALIZER_TYPE_DUMP (0x000)
#define SYNERGY_SERIALIZER_TYPE_SER (0x001)
-void CsrLogMessagePut(CsrUint32 line,
+void CsrLogMessagePut(u32 line,
const CsrCharString *file,
CsrSchedQid src_task_id,
CsrSchedQid dst_taskid,
@@ -198,7 +198,7 @@ void CsrLogMessageGet(CsrSchedQid src_task_id,
u16 prim_type,
const void *msg);
-void CsrLogTimedEventIn(CsrUint32 line,
+void CsrLogTimedEventIn(u32 line,
const CsrCharString *file,
CsrSchedQid task_id,
CsrSchedTid tid,
@@ -212,7 +212,7 @@ void CsrLogTimedEventFire(CsrSchedQid task_id,
void CsrLogTimedEventDone(CsrSchedQid task_id,
CsrSchedTid tid);
-void CsrLogTimedEventCancel(CsrUint32 line,
+void CsrLogTimedEventCancel(u32 line,
const CsrCharString *file,
CsrSchedQid task_id,
CsrSchedTid tid,
@@ -230,17 +230,17 @@ void CsrLogBgintServiceDone(CsrSchedBgint irq);
void CsrLogExceptionStateEvent(u16 prim_type,
CsrPrim msg_type,
u16 state,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
void CsrLogExceptionGeneral(u16 prim_type,
u16 state,
const CsrCharString *text,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
void CsrLogExceptionWarning(u16 prim_type,
u16 state,
const CsrCharString *text,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
#ifdef __cplusplus
diff --git a/drivers/staging/csr/csr_log_configure.h b/drivers/staging/csr/csr_log_configure.h
index c47016ba833..60e7be9ebde 100644
--- a/drivers/staging/csr/csr_log_configure.h
+++ b/drivers/staging/csr/csr_log_configure.h
@@ -45,7 +45,7 @@ void CsrLogLevelTaskSetSpecific(CsrSchedQid taskId, CsrLogLevelTask taskLogLevel
/*--------------------------------------------*/
/* Filtering on log text warning levels */
/*--------------------------------------------*/
-typedef CsrUint32 CsrLogLevelText;
+typedef u32 CsrLogLevelText;
#define CSR_LOG_LEVEL_TEXT_OFF ((CsrLogLevelText) 0x0000)
#define CSR_LOG_LEVEL_TEXT_CRITICAL ((CsrLogLevelText) 0x0001)
@@ -64,7 +64,7 @@ typedef CsrUint32 CsrLogLevelText;
* clashes the technologies are only allowed to assign values within the same restrictive range as allies to
* primitive identifiers. eg. for the framework components outside the scheduler is only allowed to assign
* taskId's in the range 0x0600xxxx to 0x06FFxxxx. And so on for other technologies. */
-typedef CsrUint32 CsrLogTextTaskId;
+typedef u32 CsrLogTextTaskId;
/* Set the text logging level for all Tasks */
/* This function call takes precedence over all previous calls to CsrLogLevelTextSetTask() and CsrLogLevelTextSetTaskSubOrigin() */
diff --git a/drivers/staging/csr/csr_macro.h b/drivers/staging/csr/csr_macro.h
index 7656e2ac5d5..92cdb8d37f5 100644
--- a/drivers/staging/csr/csr_macro.h
+++ b/drivers/staging/csr/csr_macro.h
@@ -17,7 +17,7 @@ extern "C" {
#endif
/*------------------------------------------------------------------*/
-/* Bits - intended to operate on CsrUint32 values */
+/* Bits - intended to operate on u32 values */
/*------------------------------------------------------------------*/
#define CSR_MASK_IS_SET(val, mask) (((val) & (mask)) == (mask))
#define CSR_MASK_IS_UNSET(val, mask) ((((val) & (mask)) ^ mask) == (mask))
@@ -32,8 +32,8 @@ extern "C" {
/* Endian conversion */
/*------------------------------------------------------------------*/
#define CSR_GET_UINT16_FROM_LITTLE_ENDIAN(ptr) (((u16) ((u8 *) (ptr))[0]) | ((u16) ((u8 *) (ptr))[1]) << 8)
-#define CSR_GET_UINT32_FROM_LITTLE_ENDIAN(ptr) (((CsrUint32) ((u8 *) (ptr))[0]) | ((CsrUint32) ((u8 *) (ptr))[1]) << 8 | \
- ((CsrUint32) ((u8 *) (ptr))[2]) << 16 | ((CsrUint32) ((u8 *) (ptr))[3]) << 24)
+#define CSR_GET_UINT32_FROM_LITTLE_ENDIAN(ptr) (((u32) ((u8 *) (ptr))[0]) | ((u32) ((u8 *) (ptr))[1]) << 8 | \
+ ((u32) ((u8 *) (ptr))[2]) << 16 | ((u32) ((u8 *) (ptr))[3]) << 24)
#define CSR_COPY_UINT16_TO_LITTLE_ENDIAN(uint, ptr) ((u8 *) (ptr))[0] = ((u8) ((uint) & 0x00FF)); \
((u8 *) (ptr))[1] = ((u8) ((uint) >> 8))
#define CSR_COPY_UINT32_TO_LITTLE_ENDIAN(uint, ptr) ((u8 *) (ptr))[0] = ((u8) ((uint) & 0x000000FF)); \
@@ -43,8 +43,8 @@ extern "C" {
#define CSR_GET_UINT16_FROM_BIG_ENDIAN(ptr) (((u16) ((u8 *) (ptr))[1]) | ((u16) ((u8 *) (ptr))[0]) << 8)
#define CSR_GET_UINT24_FROM_BIG_ENDIAN(ptr) (((CsrUint24) ((u8 *) (ptr))[2]) | \
((CsrUint24) ((u8 *) (ptr))[1]) << 8 | ((CsrUint24) ((u8 *) (ptr))[0]) << 16)
-#define CSR_GET_UINT32_FROM_BIG_ENDIAN(ptr) (((CsrUint32) ((u8 *) (ptr))[3]) | ((CsrUint32) ((u8 *) (ptr))[2]) << 8 | \
- ((CsrUint32) ((u8 *) (ptr))[1]) << 16 | ((CsrUint32) ((u8 *) (ptr))[0]) << 24)
+#define CSR_GET_UINT32_FROM_BIG_ENDIAN(ptr) (((u32) ((u8 *) (ptr))[3]) | ((u32) ((u8 *) (ptr))[2]) << 8 | \
+ ((u32) ((u8 *) (ptr))[1]) << 16 | ((u32) ((u8 *) (ptr))[0]) << 24)
#define CSR_COPY_UINT16_TO_BIG_ENDIAN(uint, ptr) ((u8 *) (ptr))[1] = ((u8) ((uint) & 0x00FF)); \
((u8 *) (ptr))[0] = ((u8) ((uint) >> 8))
#define CSR_COPY_UINT24_TO_BIG_ENDIAN(uint, ptr) ((u8 *) (ptr))[2] = ((u8) ((uint) & 0x000000FF)); \
@@ -70,10 +70,10 @@ extern "C" {
((u16) (input)[0]));(input) += 2
#define CSR_CONVERT_32_FROM_XAP(output, input) \
- (output) = (((CsrUint32) (input)[1]) << 24) | \
- (((CsrUint32) (input)[0]) << 16) | \
- (((CsrUint32) (input)[3]) << 8) | \
- ((CsrUint32) (input)[2]);input += 4
+ (output) = (((u32) (input)[1]) << 24) | \
+ (((u32) (input)[0]) << 16) | \
+ (((u32) (input)[3]) << 8) | \
+ ((u32) (input)[2]);input += 4
#define CSR_ADD_UINT8_TO_XAP(output, input) \
(output)[0] = (input); \
diff --git a/drivers/staging/csr/csr_msgconv.h b/drivers/staging/csr/csr_msgconv.h
index 7438f9578f0..0f614bc7db8 100644
--- a/drivers/staging/csr/csr_msgconv.h
+++ b/drivers/staging/csr/csr_msgconv.h
@@ -73,14 +73,14 @@ void CsrMsgConvDeinit(void);
/* SHOULD BE INTERNAL TO FRAMEWORK AKA DEPRECATED */
-CsrUint32 CsrCharStringSerLen(const CsrCharString *str);
-CsrUint32 CsrUtf8StringSerLen(const CsrUtf8String *str);
-CsrUint32 CsrUtf16StringSerLen(const CsrUtf16String *str);
+u32 CsrCharStringSerLen(const CsrCharString *str);
+u32 CsrUtf8StringSerLen(const CsrUtf8String *str);
+u32 CsrUtf16StringSerLen(const CsrUtf16String *str);
/* Prototypes for primitive type serializers */
void CsrUint8Ser(u8 *buffer, CsrSize *offset, u8 value);
void CsrUint16Ser(u8 *buffer, CsrSize *offset, u16 value);
-void CsrUint32Ser(u8 *buffer, CsrSize *offset, CsrUint32 value);
+void CsrUint32Ser(u8 *buffer, CsrSize *offset, u32 value);
void CsrMemCpySer(u8 *buffer, CsrSize *offset, const void *value, CsrSize length);
void CsrCharStringSer(u8 *buffer, CsrSize *offset, const CsrCharString *value);
void CsrUtf8StringSer(u8 *buffer, CsrSize *offset, const CsrUtf8String *value);
@@ -90,7 +90,7 @@ void CsrSizeSer(u8 *buffer, CsrSize *offset, CsrSize value);
void CsrUint8Des(u8 *value, u8 *buffer, CsrSize *offset);
void CsrUint16Des(u16 *value, u8 *buffer, CsrSize *offset);
-void CsrUint32Des(CsrUint32 *value, u8 *buffer, CsrSize *offset);
+void CsrUint32Des(u32 *value, u8 *buffer, CsrSize *offset);
void CsrMemCpyDes(void *value, u8 *buffer, CsrSize *offset, CsrSize length);
void CsrCharStringDes(CsrCharString **value, u8 *buffer, CsrSize *offset);
void CsrUtf8StringDes(CsrUtf8String **value, u8 *buffer, CsrSize *offset);
diff --git a/drivers/staging/csr/csr_pmem.h b/drivers/staging/csr/csr_pmem.h
index 4007915cc4c..be21186dbc0 100644
--- a/drivers/staging/csr/csr_pmem.h
+++ b/drivers/staging/csr/csr_pmem.h
@@ -39,7 +39,7 @@ extern "C" {
*****************************************************************************/
#ifdef CSR_PMEM_DEBUG
void *CsrPmemAllocDebug(CsrSize size,
- const CsrCharString *file, CsrUint32 line);
+ const CsrCharString *file, u32 line);
#define CsrPmemAlloc(sz) CsrPmemAllocDebug((sz), __FILE__, __LINE__)
#else
void *CsrPmemAlloc(CsrSize size);
@@ -108,8 +108,8 @@ typedef u8 CsrPmemDebugAllocType;
#define CSR_PMEM_DEBUG_TYPE_MEM_CALLOC 3
#define CSR_PMEM_DEBUG_TYPE_MEM_ALLOC_DMA 4
-typedef void (CsrPmemDebugOnAlloc)(void *ptr, void *userptr, CsrSize size, CsrPmemDebugAllocType type, const CsrCharString* file, CsrUint32 line);
-typedef void (CsrPmemDebugOnFree)(void *ptr, void *userptr, CsrPmemDebugAllocType type, const CsrCharString* file, CsrUint32 line);
+typedef void (CsrPmemDebugOnAlloc)(void *ptr, void *userptr, CsrSize size, CsrPmemDebugAllocType type, const CsrCharString* file, u32 line);
+typedef void (CsrPmemDebugOnFree)(void *ptr, void *userptr, CsrPmemDebugAllocType type, const CsrCharString* file, u32 line);
/*----------------------------------------------------------------------------*
* NAME
@@ -127,10 +127,10 @@ typedef void (CsrPmemDebugOnFree)(void *ptr, void *userptr, CsrPmemDebugAllocTyp
*----------------------------------------------------------------------------*/
void CsrPmemDebugInstallHooks(u8 headSize, u8 endSize, CsrPmemDebugOnAlloc *onAllocCallback, CsrPmemDebugOnFree *onFreeCallback);
-void *CsrPmemDebugAlloc(CsrSize size, CsrPmemDebugAllocType type, const CsrCharString* file, CsrUint32 line);
+void *CsrPmemDebugAlloc(CsrSize size, CsrPmemDebugAllocType type, const CsrCharString* file, u32 line);
#define CsrPmemAlloc(size) CsrPmemDebugAlloc(size, CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC, __FILE__, __LINE__)
-void CsrPmemDebugFree(void *ptr, CsrPmemDebugAllocType type, const CsrCharString* file, CsrUint32 line);
+void CsrPmemDebugFree(void *ptr, CsrPmemDebugAllocType type, const CsrCharString* file, u32 line);
#define CsrPmemFree(ptr) CsrPmemDebugFree(ptr, CSR_PMEM_DEBUG_TYPE_PMEM_ALLOC, __FILE__, __LINE__)
#endif
diff --git a/drivers/staging/csr/csr_sched.h b/drivers/staging/csr/csr_sched.h
index 944b7c13a05..530ee288de6 100644
--- a/drivers/staging/csr/csr_sched.h
+++ b/drivers/staging/csr/csr_sched.h
@@ -17,7 +17,7 @@ extern "C" {
#endif
/* An identifier issued by the scheduler. */
-typedef CsrUint32 CsrSchedIdentifier;
+typedef u32 CsrSchedIdentifier;
/* A task identifier */
typedef u16 CsrSchedTaskId;
@@ -135,7 +135,7 @@ void CsrSchedBgintSet(CsrSchedBgint bgint);
void CsrSchedMessagePutStringLog(CsrSchedQid q,
u16 mi,
void *mv,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
#define CsrSchedMessagePut(q, mi, mv) CsrSchedMessagePutStringLog((q), (mi), (mv), __LINE__, __FILE__)
#else
@@ -167,7 +167,7 @@ void CsrSchedMessagePut(CsrSchedQid q,
void CsrSchedMessageBroadcastStringLog(u16 mi,
void *(*msg_build_func)(void *),
void *msg_build_ptr,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
#define CsrSchedMessageBroadcast(mi, fn, ptr) CsrSchedMessageBroadcastStringLog((mi), (fn), (ptr), __LINE__, __FILE__)
#else
@@ -222,7 +222,7 @@ CsrSchedTid CsrSchedTimerSetStringLog(CsrTime delay,
void (*fn)(u16 mi, void *mv),
u16 fniarg,
void *fnvarg,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
#define CsrSchedTimerSet(d, fn, fni, fnv) CsrSchedTimerSetStringLog((d), (fn), (fni), (fnv), __LINE__, __FILE__)
#else
@@ -248,7 +248,7 @@ CsrSchedTid CsrSchedTimerSet(CsrTime delay,
CsrBool CsrSchedTimerCancelStringLog(CsrSchedTid eventid,
u16 *pmi,
void **pmv,
- CsrUint32 line,
+ u32 line,
const CsrCharString *file);
#define CsrSchedTimerCancel(e, pmi, pmv) CsrSchedTimerCancelStringLog((e), (pmi), (pmv), __LINE__, __FILE__)
#else
diff --git a/drivers/staging/csr/csr_sdio.h b/drivers/staging/csr/csr_sdio.h
index 0b24f55aa0b..861604de633 100644
--- a/drivers/staging/csr/csr_sdio.h
+++ b/drivers/staging/csr/csr_sdio.h
@@ -85,7 +85,7 @@ typedef struct
{
CsrSdioFunctionId sdioId;
u16 blockSize; /* Actual configured block size, or 0 if unconfigured */
- CsrUint32 features; /* Bit mask with any of CSR_SDIO_FEATURE_* set */
+ u32 features; /* Bit mask with any of CSR_SDIO_FEATURE_* set */
void *device; /* Handle of device containing the function */
void *driverData; /* For use by the Function Driver */
void *priv; /* For use by the SDIO Driver */
@@ -479,7 +479,7 @@ CsrResult CsrSdioBlockSizeSet(CsrSdioFunction *function, u16 blockSize);
*
*
*----------------------------------------------------------------------------*/
-CsrResult CsrSdioMaxBusClockFrequencySet(CsrSdioFunction *function, CsrUint32 maxFrequency);
+CsrResult CsrSdioMaxBusClockFrequencySet(CsrSdioFunction *function, u32 maxFrequency);
/*----------------------------------------------------------------------------*
* NAME
@@ -519,10 +519,10 @@ CsrResult CsrSdioMaxBusClockFrequencySet(CsrSdioFunction *function, CsrUint32 ma
* the callback function.
*
*----------------------------------------------------------------------------*/
-CsrResult CsrSdioRead8(CsrSdioFunction *function, CsrUint32 address, u8 *data);
-CsrResult CsrSdioWrite8(CsrSdioFunction *function, CsrUint32 address, u8 data);
-void CsrSdioRead8Async(CsrSdioFunction *function, CsrUint32 address, u8 *data, CsrSdioAsyncCallback callback);
-void CsrSdioWrite8Async(CsrSdioFunction *function, CsrUint32 address, u8 data, CsrSdioAsyncCallback callback);
+CsrResult CsrSdioRead8(CsrSdioFunction *function, u32 address, u8 *data);
+CsrResult CsrSdioWrite8(CsrSdioFunction *function, u32 address, u8 data);
+void CsrSdioRead8Async(CsrSdioFunction *function, u32 address, u8 *data, CsrSdioAsyncCallback callback);
+void CsrSdioWrite8Async(CsrSdioFunction *function, u32 address, u8 data, CsrSdioAsyncCallback callback);
/*----------------------------------------------------------------------------*
* NAME
@@ -563,10 +563,10 @@ void CsrSdioWrite8Async(CsrSdioFunction *function, CsrUint32 address, u8 data, C
* the callback function.
*
*----------------------------------------------------------------------------*/
-CsrResult CsrSdioRead16(CsrSdioFunction *function, CsrUint32 address, u16 *data);
-CsrResult CsrSdioWrite16(CsrSdioFunction *function, CsrUint32 address, u16 data);
-void CsrSdioRead16Async(CsrSdioFunction *function, CsrUint32 address, u16 *data, CsrSdioAsyncCallback callback);
-void CsrSdioWrite16Async(CsrSdioFunction *function, CsrUint32 address, u16 data, CsrSdioAsyncCallback callback);
+CsrResult CsrSdioRead16(CsrSdioFunction *function, u32 address, u16 *data);
+CsrResult CsrSdioWrite16(CsrSdioFunction *function, u32 address, u16 data);
+void CsrSdioRead16Async(CsrSdioFunction *function, u32 address, u16 *data, CsrSdioAsyncCallback callback);
+void CsrSdioWrite16Async(CsrSdioFunction *function, u32 address, u16 data, CsrSdioAsyncCallback callback);
/*----------------------------------------------------------------------------*
* NAME
@@ -608,10 +608,10 @@ void CsrSdioWrite16Async(CsrSdioFunction *function, CsrUint32 address, u16 data,
* the callback function.
*
*----------------------------------------------------------------------------*/
-CsrResult CsrSdioF0Read8(CsrSdioFunction *function, CsrUint32 address, u8 *data);
-CsrResult CsrSdioF0Write8(CsrSdioFunction *function, CsrUint32 address, u8 data);
-void CsrSdioF0Read8Async(CsrSdioFunction *function, CsrUint32 address, u8 *data, CsrSdioAsyncCallback callback);
-void CsrSdioF0Write8Async(CsrSdioFunction *function, CsrUint32 address, u8 data, CsrSdioAsyncCallback callback);
+CsrResult CsrSdioF0Read8(CsrSdioFunction *function, u32 address, u8 *data);
+CsrResult CsrSdioF0Write8(CsrSdioFunction *function, u32 address, u8 data);
+void CsrSdioF0Read8Async(CsrSdioFunction *function, u32 address, u8 *data, CsrSdioAsyncCallback callback);
+void CsrSdioF0Write8Async(CsrSdioFunction *function, u32 address, u8 data, CsrSdioAsyncCallback callback);
/*----------------------------------------------------------------------------*
* NAME
@@ -654,10 +654,10 @@ void CsrSdioF0Write8Async(CsrSdioFunction *function, CsrUint32 address, u8 data,
* the callback function.
*
*----------------------------------------------------------------------------*/
-CsrResult CsrSdioRead(CsrSdioFunction *function, CsrUint32 address, void *data, CsrUint32 length);
-CsrResult CsrSdioWrite(CsrSdioFunction *function, CsrUint32 address, const void *data, CsrUint32 length);
-void CsrSdioReadAsync(CsrSdioFunction *function, CsrUint32 address, void *data, CsrUint32 length, CsrSdioAsyncCallback callback);
-void CsrSdioWriteAsync(CsrSdioFunction *function, CsrUint32 address, const void *data, CsrUint32 length, CsrSdioAsyncCallback callback);
+CsrResult CsrSdioRead(CsrSdioFunction *function, u32 address, void *data, u32 length);
+CsrResult CsrSdioWrite(CsrSdioFunction *function, u32 address, const void *data, u32 length);
+void CsrSdioReadAsync(CsrSdioFunction *function, u32 address, void *data, u32 length, CsrSdioAsyncCallback callback);
+void CsrSdioWriteAsync(CsrSdioFunction *function, u32 address, const void *data, u32 length, CsrSdioAsyncCallback callback);
/*----------------------------------------------------------------------------*
* NAME
diff --git a/drivers/staging/csr/csr_serialize_primitive_types.c b/drivers/staging/csr/csr_serialize_primitive_types.c
index 3b20b7d6304..a96dcb7343b 100644
--- a/drivers/staging/csr/csr_serialize_primitive_types.c
+++ b/drivers/staging/csr/csr_serialize_primitive_types.c
@@ -31,7 +31,7 @@ void CsrUint16Des(u16 *value, u8 *buffer, CsrSize *offset)
}
EXPORT_SYMBOL_GPL(CsrUint16Des);
-void CsrUint32Des(CsrUint32 *value, u8 *buffer, CsrSize *offset)
+void CsrUint32Des(u32 *value, u8 *buffer, CsrSize *offset)
{
*value = (buffer[*offset + 0] << 0) |
(buffer[*offset + 1] << 8) |
@@ -63,7 +63,7 @@ void CsrUtf8StringDes(CsrUtf8String **value, u8 *buffer, CsrSize *offset)
void CsrUtf16StringDes(CsrUtf16String **value, u8 *buffer, CsrSize *offset)
{
- CsrUint32 length, i;
+ u32 length, i;
CsrUint32Des(&length, buffer, offset);
@@ -103,7 +103,7 @@ void CsrUint16Ser(u8 *buffer, CsrSize *offset, u16 value)
}
EXPORT_SYMBOL_GPL(CsrUint16Ser);
-void CsrUint32Ser(u8 *buffer, CsrSize *offset, CsrUint32 value)
+void CsrUint32Ser(u8 *buffer, CsrSize *offset, u32 value)
{
buffer[*offset + 0] = (u8) ((value >> 0) & 0xFF);
buffer[*offset + 1] = (u8) ((value >> 8) & 0xFF);
@@ -143,8 +143,8 @@ void CsrUtf16StringSer(u8 *buffer, CsrSize *offset, const CsrUtf16String *value)
{
if (value)
{
- CsrUint32 length = CsrUtf16StrLen(value) + 1;
- CsrUint32 i;
+ u32 length = CsrUtf16StrLen(value) + 1;
+ u32 i;
CsrUint32Ser(buffer, offset, length);
@@ -173,11 +173,11 @@ void CsrVoidPtrSer(u8 *buffer, CsrSize *offset, void *ptr)
CsrSizeSer(buffer, offset, (CsrSize) ptr);
}
-CsrUint32 CsrCharStringSerLen(const CsrCharString *str)
+u32 CsrCharStringSerLen(const CsrCharString *str)
{
if (str)
{
- return (CsrUint32) (CsrStrLen(str) + sizeof(*str));
+ return (u32) (CsrStrLen(str) + sizeof(*str));
}
else
{
@@ -185,11 +185,11 @@ CsrUint32 CsrCharStringSerLen(const CsrCharString *str)
}
}
-CsrUint32 CsrUtf8StringSerLen(const CsrUtf8String *str)
+u32 CsrUtf8StringSerLen(const CsrUtf8String *str)
{
if (str)
{
- return (CsrUint32) (CsrStrLen((CsrCharString *) str) + sizeof(*str));
+ return (u32) (CsrStrLen((CsrCharString *) str) + sizeof(*str));
}
else
{
@@ -197,16 +197,16 @@ CsrUint32 CsrUtf8StringSerLen(const CsrUtf8String *str)
}
}
-CsrUint32 CsrUtf16StringSerLen(const CsrUtf16String *str)
+u32 CsrUtf16StringSerLen(const CsrUtf16String *str)
{
if (str)
{
/* We always write down the length of the string */
- return sizeof(CsrUint32) + (CsrUtf16StrLen(str) + 1) * sizeof(*str);
+ return sizeof(u32) + (CsrUtf16StrLen(str) + 1) * sizeof(*str);
}
else
{
- return sizeof(CsrUint32);
+ return sizeof(u32);
}
}
diff --git a/drivers/staging/csr/csr_time.h b/drivers/staging/csr/csr_time.h
index 032942712b6..9687b065b55 100644
--- a/drivers/staging/csr/csr_time.h
+++ b/drivers/staging/csr/csr_time.h
@@ -27,7 +27,7 @@ extern "C" {
reference, usually associated with system startup.
*******************************************************************************/
-typedef CsrUint32 CsrTime;
+typedef u32 CsrTime;
/*******************************************************************************
@@ -42,7 +42,7 @@ typedef CsrUint32 CsrTime;
*******************************************************************************/
typedef struct
{
- CsrUint32 sec;
+ u32 sec;
u16 msec;
} CsrTimeUtc;
diff --git a/drivers/staging/csr/csr_types.h b/drivers/staging/csr/csr_types.h
index 061fde835f5..144c980f4db 100644
--- a/drivers/staging/csr/csr_types.h
+++ b/drivers/staging/csr/csr_types.h
@@ -32,9 +32,6 @@ typedef ptrdiff_t CsrPtrdiff; /* Type of the result of subtracting two pointer
typedef uintptr_t CsrUintptr; /* Unsigned integer large enough to hold any pointer (ISO/IEC 9899:1999 7.18.1.4) */
typedef ptrdiff_t CsrIntptr; /* intptr_t is not defined in kernel. Use the equivalent ptrdiff_t. */
-/* Unsigned fixed width types */
-typedef uint32_t CsrUint32;
-
/* Signed fixed width types */
typedef int32_t CsrInt32;
@@ -45,7 +42,7 @@ typedef u8 CsrBool;
typedef char CsrCharString;
typedef u8 CsrUtf8String;
typedef u16 CsrUtf16String; /* 16-bit UTF16 strings */
-typedef CsrUint32 CsrUint24;
+typedef u32 CsrUint24;
/*
* 64-bit integers
diff --git a/drivers/staging/csr/csr_unicode.h b/drivers/staging/csr/csr_unicode.h
index 64519c0d311..4a97771280c 100644
--- a/drivers/staging/csr/csr_unicode.h
+++ b/drivers/staging/csr/csr_unicode.h
@@ -16,10 +16,10 @@
extern "C" {
#endif
-CsrUtf16String *CsrUint32ToUtf16String(CsrUint32 number);
+CsrUtf16String *CsrUint32ToUtf16String(u32 number);
-CsrUint32 CsrUtf16StringToUint32(const CsrUtf16String *unicodeString);
-CsrUint32 CsrUtf16StrLen(const CsrUtf16String *unicodeString);
+u32 CsrUtf16StringToUint32(const CsrUtf16String *unicodeString);
+u32 CsrUtf16StrLen(const CsrUtf16String *unicodeString);
CsrUtf8String *CsrUtf16String2Utf8(const CsrUtf16String *source);
@@ -29,9 +29,9 @@ CsrUtf16String *CsrUtf16StrCpy(CsrUtf16String *target, const CsrUtf16String *sou
CsrUtf16String *CsrUtf16StringDuplicate(const CsrUtf16String *source);
u16 CsrUtf16StrICmp(const CsrUtf16String *string1, const CsrUtf16String *string2);
-u16 CsrUtf16StrNICmp(const CsrUtf16String *string1, const CsrUtf16String *string2, CsrUint32 count);
+u16 CsrUtf16StrNICmp(const CsrUtf16String *string1, const CsrUtf16String *string2, u32 count);
-CsrUtf16String *CsrUtf16MemCpy(CsrUtf16String *dest, const CsrUtf16String *src, CsrUint32 count);
+CsrUtf16String *CsrUtf16MemCpy(CsrUtf16String *dest, const CsrUtf16String *src, u32 count);
CsrUtf16String *CsrUtf16ConcatenateTexts(const CsrUtf16String *inputText1, const CsrUtf16String *inputText2,
const CsrUtf16String *inputText3, const CsrUtf16String *inputText4);
@@ -40,7 +40,7 @@ CsrUtf16String *CsrXML2Utf16String(CsrUtf16String *str);
CsrInt32 CsrUtf8StrCmp(const CsrUtf8String *string1, const CsrUtf8String *string2);
CsrInt32 CsrUtf8StrNCmp(const CsrUtf8String *string1, const CsrUtf8String *string2, CsrSize count);
-CsrUint32 CsrUtf8StringLengthInBytes(const CsrUtf8String *string);
+u32 CsrUtf8StringLengthInBytes(const CsrUtf8String *string);
/*******************************************************************************
diff --git a/drivers/staging/csr/csr_utf16.c b/drivers/staging/csr/csr_utf16.c
index 7e724da7808..b9a5c5f033d 100644
--- a/drivers/staging/csr/csr_utf16.c
+++ b/drivers/staging/csr/csr_utf16.c
@@ -13,15 +13,15 @@
#include "csr_unicode.h"
#include "csr_util.h"
-#define UNI_SUR_HIGH_START ((CsrUint32) 0xD800)
-#define UNI_SUR_HIGH_END ((CsrUint32) 0xDBFF)
-#define UNI_SUR_LOW_START ((CsrUint32) 0xDC00)
-#define UNI_SUR_LOW_END ((CsrUint32) 0xDFFF)
-#define UNI_REPLACEMENT_CHAR ((CsrUint32) 0xFFFD)
+#define UNI_SUR_HIGH_START ((u32) 0xD800)
+#define UNI_SUR_HIGH_END ((u32) 0xDBFF)
+#define UNI_SUR_LOW_START ((u32) 0xDC00)
+#define UNI_SUR_LOW_END ((u32) 0xDFFF)
+#define UNI_REPLACEMENT_CHAR ((u32) 0xFFFD)
#define UNI_HALF_SHIFT ((u8) 10) /* used for shifting by 10 bits */
-#define UNI_HALF_BASE ((CsrUint32) 0x00010000)
-#define UNI_BYTEMASK ((CsrUint32) 0xBF)
-#define UNI_BYTEMARK ((CsrUint32) 0x80)
+#define UNI_HALF_BASE ((u32) 0x00010000)
+#define UNI_BYTEMASK ((u32) 0xBF)
+#define UNI_BYTEMARK ((u32) 0x80)
#define CAPITAL(x) ((x >= 'a') && (x <= 'z') ? ((x) & 0x00DF) : (x))
@@ -55,8 +55,8 @@ static const s8 trailingBytesForUtf8[256] =
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, /* 0xE0 - 0xFF */
};
-/* Values to be substracted from a CsrUint32 when converting from UTF8 to UTF16 */
-static const CsrUint32 offsetsFromUtf8[4] =
+/* Values to be substracted from a u32 when converting from UTF8 to UTF16 */
+static const u32 offsetsFromUtf8[4] =
{
0x00000000, 0x00003080, 0x000E2080, 0x03C82080
};
@@ -73,11 +73,11 @@ static const CsrUint32 offsetsFromUtf8[4] =
* Output: A string of UTF-16 characters.
*
*********************************************************************************/
-CsrUtf16String *CsrUint32ToUtf16String(CsrUint32 number)
+CsrUtf16String *CsrUint32ToUtf16String(u32 number)
{
u16 count, noOfDigits;
CsrUtf16String *output;
- CsrUint32 tempNumber;
+ u32 tempNumber;
/* calculate the number of digits in the output */
tempNumber = number;
@@ -113,10 +113,10 @@ CsrUtf16String *CsrUint32ToUtf16String(CsrUint32 number)
* Output: 32 bit number.
*
*********************************************************************************/
-CsrUint32 CsrUtf16StringToUint32(const CsrUtf16String *unicodeString)
+u32 CsrUtf16StringToUint32(const CsrUtf16String *unicodeString)
{
u16 numLen, count;
- CsrUint32 newNumber = 0;
+ u32 newNumber = 0;
numLen = (u16) CsrUtf16StrLen(unicodeString);
@@ -150,7 +150,7 @@ CsrUint32 CsrUtf16StringToUint32(const CsrUtf16String *unicodeString)
* Output: A pointer to an unicoded string.
*
*********************************************************************************/
-CsrUtf16String *CsrUtf16MemCpy(CsrUtf16String *dest, const CsrUtf16String *src, CsrUint32 count)
+CsrUtf16String *CsrUtf16MemCpy(CsrUtf16String *dest, const CsrUtf16String *src, u32 count)
{
return CsrMemCpy((u8 *) dest, (u8 *) src, count * sizeof(CsrUtf16String));
}
@@ -171,7 +171,7 @@ CsrUtf16String *CsrUtf16ConcatenateTexts(const CsrUtf16String *inputText1, const
const CsrUtf16String *inputText3, const CsrUtf16String *inputText4)
{
CsrUtf16String *outputText;
- CsrUint32 textLen, textLen1, textLen2, textLen3, textLen4;
+ u32 textLen, textLen1, textLen2, textLen3, textLen4;
textLen1 = CsrUtf16StrLen(inputText1);
textLen2 = CsrUtf16StrLen(inputText2);
@@ -225,9 +225,9 @@ CsrUtf16String *CsrUtf16ConcatenateTexts(const CsrUtf16String *inputText1, const
* Output: The number of 16 bit elements in the string.
*
*********************************************************************************/
-CsrUint32 CsrUtf16StrLen(const CsrUtf16String *unicodeString)
+u32 CsrUtf16StrLen(const CsrUtf16String *unicodeString)
{
- CsrUint32 length;
+ u32 length;
length = 0;
if (unicodeString != NULL)
@@ -256,10 +256,10 @@ CsrUint32 CsrUtf16StrLen(const CsrUtf16String *unicodeString)
CsrUtf8String *CsrUtf16String2Utf8(const CsrUtf16String *source)
{
CsrUtf8String *dest, *destStart = NULL;
- CsrUint32 i;
- CsrUint32 ch;
- CsrUint32 length;
- CsrUint32 sourceLength;
+ u32 i;
+ u32 ch;
+ u32 length;
+ u32 sourceLength;
u8 bytes;
CsrBool appendNull = FALSE;
@@ -280,7 +280,7 @@ CsrUtf8String *CsrUtf16String2Utf8(const CsrUtf16String *source)
{
if (i + 1 < sourceLength) /* The low surrogate is in the source */
{
- CsrUint32 ch2 = source[++i];
+ u32 ch2 = source[++i];
if ((ch2 >= UNI_SUR_LOW_START) && (ch2 <= UNI_SUR_LOW_END)) /* And it is a legal low surrogate */
{
length += 4;
@@ -330,7 +330,7 @@ CsrUtf8String *CsrUtf16String2Utf8(const CsrUtf16String *source)
{
if (i + 1 < sourceLength) /* The low surrogate is in the source */
{
- CsrUint32 ch2 = source[++i];
+ u32 ch2 = source[++i];
if ((ch2 >= UNI_SUR_LOW_START) && (ch2 <= UNI_SUR_LOW_END)) /* And it is a legal low surrogate, convert to UTF-32 */
{
ch = ((ch - UNI_SUR_HIGH_START) << UNI_HALF_SHIFT) + (ch2 - UNI_SUR_LOW_START) + UNI_HALF_BASE;
@@ -356,19 +356,19 @@ CsrUtf8String *CsrUtf16String2Utf8(const CsrUtf16String *source)
}
/* Figure out how many bytes that are required */
- if (ch < (CsrUint32) 0x80)
+ if (ch < (u32) 0x80)
{
bytes = 1;
}
- else if (ch < (CsrUint32) 0x800)
+ else if (ch < (u32) 0x800)
{
bytes = 2;
}
- else if (ch < (CsrUint32) 0x10000)
+ else if (ch < (u32) 0x10000)
{
bytes = 3;
}
- else if (ch < (CsrUint32) 0x110000)
+ else if (ch < (u32) 0x110000)
{
bytes = 4;
}
@@ -463,7 +463,7 @@ CsrUtf8String *CsrUtf16String2Utf8(const CsrUtf16String *source)
TRUE if the given code unit is legal.
*****************************************************************************/
-static CsrBool isLegalUtf8(const CsrUtf8String *codeUnit, CsrUint32 length)
+static CsrBool isLegalUtf8(const CsrUtf8String *codeUnit, u32 length)
{
const CsrUtf8String *srcPtr = codeUnit + length;
u8 byte;
@@ -633,9 +633,9 @@ CsrUtf16String *CsrUtf82Utf16String(const CsrUtf8String *utf8String)
{
*dest++ = UNI_REPLACEMENT_CHAR;
}
- else /* It is legal, convert the character to an CsrUint32 */
+ else /* It is legal, convert the character to an u32 */
{
- CsrUint32 ch = 0;
+ u32 ch = 0;
switch (extraBytes2Read) /* Everything falls through */
{
@@ -731,7 +731,7 @@ CsrUtf16String *CsrUtf16StrCpy(CsrUtf16String *target, const CsrUtf16String *sou
CsrUtf16String *CsrUtf16StringDuplicate(const CsrUtf16String *source)
{
CsrUtf16String *target = NULL;
- CsrUint32 length;
+ u32 length;
if (source) /* if source is not NULL*/
{
@@ -781,7 +781,7 @@ u16 CsrUtf16StrICmp(const CsrUtf16String *string1, const CsrUtf16String *string2
* Output: 0: if the strings are identical.
*
*********************************************************************************/
-u16 CsrUtf16StrNICmp(const CsrUtf16String *string1, const CsrUtf16String *string2, CsrUint32 count)
+u16 CsrUtf16StrNICmp(const CsrUtf16String *string1, const CsrUtf16String *string2, u32 count)
{
while ((*string1 || *string2) && count--)
{
@@ -814,7 +814,7 @@ CsrUtf16String *CsrUtf16String2XML(CsrUtf16String *str)
CsrUtf16String *scanString;
CsrUtf16String *outputString = NULL;
CsrUtf16String *resultString = str;
- CsrUint32 stringLength = 0;
+ u32 stringLength = 0;
CsrBool encodeChars = FALSE;
scanString = str;
@@ -907,7 +907,7 @@ CsrUtf16String *CsrXML2Utf16String(CsrUtf16String *str)
CsrUtf16String *scanString;
CsrUtf16String *outputString = NULL;
CsrUtf16String *resultString = str;
- CsrUint32 stringLength = 0;
+ u32 stringLength = 0;
CsrBool encodeChars = FALSE;
scanString = str;
@@ -1026,14 +1026,14 @@ CsrInt32 CsrUtf8StrNCmp(const CsrUtf8String *string1, const CsrUtf8String *strin
return CsrStrNCmp((const CsrCharString *) string1, (const CsrCharString *) string2, count);
}
-CsrUint32 CsrUtf8StringLengthInBytes(const CsrUtf8String *string)
+u32 CsrUtf8StringLengthInBytes(const CsrUtf8String *string)
{
CsrSize length = 0;
if (string)
{
length = CsrStrLen((const CsrCharString *) string);
}
- return (CsrUint32) length;
+ return (u32) length;
}
CsrUtf8String *CsrUtf8StrCpy(CsrUtf8String *target, const CsrUtf8String *source)
@@ -1093,7 +1093,7 @@ CsrUtf8String *CsrUtf8StrDup(const CsrUtf8String *source)
CsrUtf8String *CsrUtf8StringConcatenateTexts(const CsrUtf8String *inputText1, const CsrUtf8String *inputText2, const CsrUtf8String *inputText3, const CsrUtf8String *inputText4)
{
CsrUtf8String *outputText;
- CsrUint32 textLen, textLen1, textLen2, textLen3, textLen4;
+ u32 textLen, textLen1, textLen2, textLen3, textLen4;
textLen1 = CsrUtf8StringLengthInBytes(inputText1);
textLen2 = CsrUtf8StringLengthInBytes(inputText2);
diff --git a/drivers/staging/csr/csr_util.c b/drivers/staging/csr/csr_util.c
index aaadc6f7487..edee2e2e67a 100644
--- a/drivers/staging/csr/csr_util.c
+++ b/drivers/staging/csr/csr_util.c
@@ -21,7 +21,7 @@
/*------------------------------------------------------------------*/
/* Time proportional with the number of 1's */
-u8 CsrBitCountSparse(CsrUint32 n)
+u8 CsrBitCountSparse(u32 n)
{
u8 count = 0;
@@ -35,11 +35,11 @@ u8 CsrBitCountSparse(CsrUint32 n)
}
/* Time proportional with the number of 0's */
-u8 CsrBitCountDense(CsrUint32 n)
+u8 CsrBitCountDense(u32 n)
{
- u8 count = 8 * sizeof(CsrUint32);
+ u8 count = 8 * sizeof(u32);
- n ^= (CsrUint32) (-1);
+ n ^= (u32) (-1);
while (n)
{
@@ -101,7 +101,7 @@ CsrBool CsrHexStrToUint16(const CsrCharString *string, u16 *returnValue)
return FALSE;
}
-CsrBool CsrHexStrToUint32(const CsrCharString *string, CsrUint32 *returnValue)
+CsrBool CsrHexStrToUint32(const CsrCharString *string, u32 *returnValue)
{
u16 currentIndex = 0;
*returnValue = 0;
@@ -125,7 +125,7 @@ CsrBool CsrHexStrToUint32(const CsrCharString *string, CsrUint32 *returnValue)
return FALSE;
}
-CsrUint32 CsrPow(CsrUint32 base, CsrUint32 exponent)
+u32 CsrPow(u32 base, u32 exponent)
{
if (exponent == 0)
{
@@ -133,7 +133,7 @@ CsrUint32 CsrPow(CsrUint32 base, CsrUint32 exponent)
}
else
{
- CsrUint32 i, t = base;
+ u32 i, t = base;
for (i = 1; i < exponent; i++)
{
@@ -204,14 +204,14 @@ void CsrUInt16ToHex(u16 number, CsrCharString *str)
str[4] = '\0';
}
-void CsrUInt32ToHex(CsrUint32 number, CsrCharString *str)
+void CsrUInt32ToHex(u32 number, CsrCharString *str)
{
u16 index;
- CsrUint32 currentValue;
+ u32 currentValue;
for (index = 0; index < 8; index++)
{
- currentValue = (CsrUint32) (number & 0x0000000F);
+ currentValue = (u32) (number & 0x0000000F);
number >>= 4;
str[7 - index] = (char) (currentValue > 9 ? currentValue + 55 : currentValue + '0');
}
@@ -324,11 +324,11 @@ CsrCharString *CsrStrNCpyZero(CsrCharString *dest,
}
/* Convert string with base 10 to integer */
-CsrUint32 CsrStrToInt(const CsrCharString *str)
+u32 CsrStrToInt(const CsrCharString *str)
{
s16 i;
- CsrUint32 res;
- CsrUint32 digit;
+ u32 res;
+ u32 digit;
res = 0;
digit = 1;
@@ -350,7 +350,7 @@ CsrUint32 CsrStrToInt(const CsrCharString *str)
CsrCharString *CsrStrDup(const CsrCharString *string)
{
CsrCharString *copy;
- CsrUint32 len;
+ u32 len;
copy = NULL;
if (string != NULL)
@@ -366,7 +366,7 @@ int CsrStrNICmp(const CsrCharString *string1,
const CsrCharString *string2,
CsrSize count)
{
- CsrUint32 index;
+ u32 index;
int returnValue = 0;
for (index = 0; index < count; index++)
diff --git a/drivers/staging/csr/csr_util.h b/drivers/staging/csr/csr_util.h
index 610d35e2ee5..f19f953b3fe 100644
--- a/drivers/staging/csr/csr_util.h
+++ b/drivers/staging/csr/csr_util.h
@@ -18,21 +18,21 @@ extern "C" {
#include "csr_macro.h"
/*------------------------------------------------------------------*/
-/* Bits - intended to operate on CsrUint32 values */
+/* Bits - intended to operate on u32 values */
/*------------------------------------------------------------------*/
-u8 CsrBitCountSparse(CsrUint32 n);
-u8 CsrBitCountDense(CsrUint32 n);
+u8 CsrBitCountSparse(u32 n);
+u8 CsrBitCountDense(u32 n);
/*------------------------------------------------------------------*/
/* Base conversion */
/*------------------------------------------------------------------*/
CsrBool CsrHexStrToUint8(const CsrCharString *string, u8 *returnValue);
CsrBool CsrHexStrToUint16(const CsrCharString *string, u16 *returnValue);
-CsrBool CsrHexStrToUint32(const CsrCharString *string, CsrUint32 *returnValue);
-CsrUint32 CsrPow(CsrUint32 base, CsrUint32 exponent);
+CsrBool CsrHexStrToUint32(const CsrCharString *string, u32 *returnValue);
+u32 CsrPow(u32 base, u32 exponent);
void CsrIntToBase10(CsrInt32 number, CsrCharString *str);
void CsrUInt16ToHex(u16 number, CsrCharString *str);
-void CsrUInt32ToHex(CsrUint32 number, CsrCharString *str);
+void CsrUInt32ToHex(u32 number, CsrCharString *str);
/*------------------------------------------------------------------*/
/* Standard C Library functions */
@@ -74,7 +74,7 @@ CsrInt32 CsrVsnprintf(CsrCharString *string, CsrSize count, const CsrCharString
void *CsrMemDup(const void *buf1, CsrSize count);
int CsrStrNICmp(const CsrCharString *string1, const CsrCharString *string2, CsrSize count);
CsrCharString *CsrStrDup(const CsrCharString *string);
-CsrUint32 CsrStrToInt(const CsrCharString *string);
+u32 CsrStrToInt(const CsrCharString *string);
CsrCharString *CsrStrNCpyZero(CsrCharString *dest, const CsrCharString *src, CsrSize count);
/*------------------------------------------------------------------*/
diff --git a/drivers/staging/csr/csr_wifi_fsm.h b/drivers/staging/csr/csr_wifi_fsm.h
index 2128034a256..0f9cd8f3cf6 100644
--- a/drivers/staging/csr/csr_wifi_fsm.h
+++ b/drivers/staging/csr/csr_wifi_fsm.h
@@ -122,9 +122,9 @@ extern void CsrWifiFsmShutdown(CsrWifiFsmContext *context);
* @param[in] context : FSM context
*
* @return
- * CsrUint32 Time in ms until next timeout or 0xFFFFFFFF for no timer set
+ * u32 Time in ms until next timeout or 0xFFFFFFFF for no timer set
*/
-extern CsrUint32 CsrWifiFsmExecute(CsrWifiFsmContext *context);
+extern u32 CsrWifiFsmExecute(CsrWifiFsmContext *context);
/**
* @brief
@@ -174,9 +174,9 @@ extern void CsrWifiFsmSendEventExternal(CsrWifiFsmContext *context, CsrWifiFsmEv
* @param[in] context : FSM context
*
* @return
- * CsrUint32 32 bit ms tick
+ * u32 32 bit ms tick
*/
-extern CsrUint32 CsrWifiFsmGetTimeOfDayMs(CsrWifiFsmContext *context);
+extern u32 CsrWifiFsmGetTimeOfDayMs(CsrWifiFsmContext *context);
/**
* @brief
@@ -188,9 +188,9 @@ extern CsrUint32 CsrWifiFsmGetTimeOfDayMs(CsrWifiFsmContext *context);
* @param[in] context : FSM context
*
* @return
- * CsrUint32 Time in ms until next timeout or 0xFFFFFFFF for no timer set
+ * u32 Time in ms until next timeout or 0xFFFFFFFF for no timer set
*/
-extern CsrUint32 CsrWifiFsmGetNextTimeout(CsrWifiFsmContext *context);
+extern u32 CsrWifiFsmGetNextTimeout(CsrWifiFsmContext *context);
/**
* @brief
@@ -217,7 +217,7 @@ extern void CsrWifiFsmFastForward(CsrWifiFsmContext *context, u16 ms);
* @return
* void
*/
-extern void CsrWifiFsmTestAdvanceTime(CsrWifiFsmContext *context, CsrUint32 ms);
+extern void CsrWifiFsmTestAdvanceTime(CsrWifiFsmContext *context, u32 ms);
/**
* @brief
diff --git a/drivers/staging/csr/csr_wifi_fsm_types.h b/drivers/staging/csr/csr_wifi_fsm_types.h
index 5bc69874bc7..63b69fe5436 100644
--- a/drivers/staging/csr/csr_wifi_fsm_types.h
+++ b/drivers/staging/csr/csr_wifi_fsm_types.h
@@ -79,7 +79,7 @@ typedef struct CsrWifiFsmTimer
struct CsrWifiFsmTimer *next;
CsrWifiFsmTimerId timerid;
- CsrUint32 timeoutTimeMs;
+ u32 timeoutTimeMs;
} CsrWifiFsmTimer;
@@ -202,7 +202,7 @@ typedef void (*CsrWifiFsmDumpFnPtr)(CsrWifiFsmContext *context, void *fsmData);
*/
typedef struct
{
- CsrUint32 eventid;
+ u32 eventid;
CsrWifiFsmTransitionFnPtr transition;
#ifdef CSR_LOG_ENABLE
const CsrCharString *transitionName;
@@ -253,7 +253,7 @@ typedef struct
typedef struct
{
const CsrCharString *processName;
- const CsrUint32 processId;
+ const u32 processId;
const CsrWifiFsmTransitionFunctionTable transitionTable;
const CsrWifiFsmTableEntry unhandledTransitions;
const CsrWifiFsmTableEntry ignoreFunctions;
@@ -389,7 +389,7 @@ struct CsrWifiFsmContext
#ifdef CSR_WIFI_FSM_MUTEX_ENABLE
CsrMutexHandle externalEventQueueLock; /* The external event queue mutex */
#endif
- CsrUint32 timeOffset; /* Amount to adjust the TimeOfDayMs by */
+ u32 timeOffset; /* Amount to adjust the TimeOfDayMs by */
CsrWifiFsmTimerList timerQueue; /* The internal timer queue */
CsrBool useTempSaveList; /* Should the temp save list be used */
CsrWifiFsmEventList tempSaveList; /* The temp save event queue */
@@ -409,7 +409,7 @@ struct CsrWifiFsmContext
#ifndef CSR_WIFI_FSM_SCHEDULER_DISABLED
CsrSchedTid schedTimerId; /* Scheduler TimerId for use in Scheduler Tasks */
- CsrUint32 schedTimerNexttimeoutMs; /* Next timeout time for the current timer */
+ u32 schedTimerNexttimeoutMs; /* Next timeout time for the current timer */
#endif
#ifdef CSR_WIFI_FSM_MUTEX_ENABLE
diff --git a/drivers/staging/csr/csr_wifi_hip_card.h b/drivers/staging/csr/csr_wifi_hip_card.h
index 6a0d60b42e9..481ba68ccd0 100644
--- a/drivers/staging/csr/csr_wifi_hip_card.h
+++ b/drivers/staging/csr/csr_wifi_hip_card.h
@@ -99,11 +99,11 @@ u16 CardAreAllFromHostDataSlotsEmpty(card_t *card);
CsrResult card_start_processor(card_t *card, enum unifi_dbg_processors_select which);
-CsrResult card_wait_for_firmware_to_start(card_t *card, CsrUint32 *paddr);
+CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr);
CsrResult unifi_dl_firmware(card_t *card, void *arg);
-CsrResult unifi_dl_patch(card_t *card, void *arg, CsrUint32 boot_ctrl);
-CsrResult unifi_do_loader_op(card_t *card, CsrUint32 op_addr, u8 opcode);
+CsrResult unifi_dl_patch(card_t *card, void *arg, u32 boot_ctrl);
+CsrResult unifi_do_loader_op(card_t *card, u32 op_addr, u8 opcode);
void* unifi_dl_fw_read_start(card_t *card, s8 is_fw);
CsrResult unifi_coredump_handle_request(card_t *card);
diff --git a/drivers/staging/csr/csr_wifi_hip_card_sdio.c b/drivers/staging/csr/csr_wifi_hip_card_sdio.c
index 1c88f1cbba8..0678344cd4e 100644
--- a/drivers/staging/csr/csr_wifi_hip_card_sdio.c
+++ b/drivers/staging/csr/csr_wifi_hip_card_sdio.c
@@ -67,7 +67,7 @@ static CsrResult unifi_read_chip_version(card_t *card);
card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv)
{
card_t *card;
- CsrUint32 i;
+ u32 i;
func_enter();
@@ -86,9 +86,9 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv)
card->unifi_interrupt_seq = 1;
/* Make these invalid. */
- card->proc_select = (CsrUint32)(-1);
- card->dmem_page = (CsrUint32)(-1);
- card->pmem_page = (CsrUint32)(-1);
+ card->proc_select = (u32)(-1);
+ card->dmem_page = (u32)(-1);
+ card->pmem_page = (u32)(-1);
card->bh_reason_host = 0;
card->bh_reason_unifi = 0;
@@ -137,7 +137,7 @@ card_t* unifi_alloc_card(CsrSdioFunction *sdio, void *ospriv)
* warnings when casting pointer types, e.g. on 64-bit systems.
*/
{
- CsrUint32 val = 0x01234567;
+ u32 val = 0x01234567;
if (*((u8 *)&val) == 0x01)
{
@@ -288,9 +288,9 @@ CsrResult unifi_init(card_t *card)
* The page registers will be maintained by unifi_read...() and
* unifi_write...().
*/
- card->proc_select = (CsrUint32)(-1);
- card->dmem_page = (CsrUint32)(-1);
- card->pmem_page = (CsrUint32)(-1);
+ card->proc_select = (u32)(-1);
+ card->dmem_page = (u32)(-1);
+ card->pmem_page = (u32)(-1);
r = unifi_write_direct16(card, ChipHelper_HOST_WINDOW3_PAGE(card->helper) * 2, 0);
if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE)
{
@@ -598,7 +598,7 @@ static void _build_sdio_config_data(sdio_config_data_t *cfg_data,
*/
static CsrResult card_hw_init(card_t *card)
{
- CsrUint32 slut_address;
+ u32 slut_address;
u16 initialised;
u16 finger_print;
symbol_t slut;
@@ -692,7 +692,7 @@ static CsrResult card_hw_init(card_t *card)
while (!search_4slut_again)
{
u16 s;
- CsrUint32 l;
+ u32 l;
r = unifi_card_read16(card, slut_address, &s);
if (r != CSR_RESULT_SUCCESS)
@@ -810,7 +810,7 @@ static CsrResult card_hw_init(card_t *card)
case CSR_SLT_BUILD_ID_NUMBER:
{
- CsrUint32 n;
+ u32 n;
r = unifi_read32(card, slut.obj, &n);
if (r == CSR_WIFI_HIP_RESULT_NO_DEVICE)
{
@@ -1233,7 +1233,7 @@ static CsrResult card_wait_for_unifi_to_disable(card_t *card)
* CSR_RESULT_SUCCESS on success, CSR error code on failure.
* ---------------------------------------------------------------------------
*/
-CsrResult card_wait_for_firmware_to_start(card_t *card, CsrUint32 *paddr)
+CsrResult card_wait_for_firmware_to_start(card_t *card, u32 *paddr)
{
CsrInt32 i;
u16 mbox0, mbox1;
@@ -1335,7 +1335,7 @@ CsrResult card_wait_for_firmware_to_start(card_t *card, CsrUint32 *paddr)
return r;
}
- *paddr = (((CsrUint32)mbox1 << 16) | mbox0);
+ *paddr = (((u32)mbox1 << 16) | mbox0);
func_exit();
return CSR_RESULT_SUCCESS;
@@ -1681,7 +1681,7 @@ static CsrResult card_allocate_memory_resources(card_t *card)
/* Allocate memory for the array used for slot host tag mapping */
card->fh_slot_host_tag_record =
- (CsrUint32 *)CsrMemAlloc(n * sizeof(CsrUint32));
+ (u32 *)CsrMemAlloc(n * sizeof(u32));
if (card->fh_slot_host_tag_record == NULL)
{
@@ -2640,7 +2640,7 @@ static CsrResult unifi_prepare_hw(card_t *card)
static CsrResult unifi_read_chip_version(card_t *card)
{
- CsrUint32 gbl_chip_version;
+ u32 gbl_chip_version;
CsrResult r;
u16 ver;
@@ -3025,14 +3025,14 @@ CsrResult unifi_card_hard_reset(card_t *card)
{
CsrResult r;
const struct chip_helper_reset_values *init_data;
- CsrUint32 chunks;
+ u32 chunks;
func_enter();
/* Clear cache of page registers */
- card->proc_select = (CsrUint32)(-1);
- card->dmem_page = (CsrUint32)(-1);
- card->pmem_page = (CsrUint32)(-1);
+ card->proc_select = (u32)(-1);
+ card->dmem_page = (u32)(-1);
+ card->pmem_page = (u32)(-1);
/*
* We need to have a valid card->helper before we use software hard reset.
@@ -3665,7 +3665,7 @@ static CsrResult firmware_present_in_flash(card_t *card)
static void bootstrap_chip_hw(card_t *card)
{
const struct chip_helper_init_values *vals;
- CsrUint32 i, len;
+ u32 i, len;
void *sdio = card->sdio_if;
CsrResult csrResult;
@@ -3816,7 +3816,7 @@ CsrResult card_start_processor(card_t *card, enum unifi_dbg_processors_select wh
* None
* ---------------------------------------------------------------------------
*/
-void unifi_set_interrupt_mode(card_t *card, CsrUint32 mode)
+void unifi_set_interrupt_mode(card_t *card, u32 mode)
{
if (mode == CSR_WIFI_INTMODE_RUN_BH_ONCE)
{
@@ -4104,7 +4104,7 @@ void unifi_get_hip_qos_info(card_t *card, unifi_HipQosInfo *hipqosinfo)
{
CsrInt32 count_fhr;
s16 t;
- CsrUint32 occupied_fh;
+ u32 occupied_fh;
q_t *sigq;
u16 nslots, i;
diff --git a/drivers/staging/csr/csr_wifi_hip_card_sdio.h b/drivers/staging/csr/csr_wifi_hip_card_sdio.h
index 6463e246dba..42fce7b3ae4 100644
--- a/drivers/staging/csr/csr_wifi_hip_card_sdio.h
+++ b/drivers/staging/csr/csr_wifi_hip_card_sdio.h
@@ -173,7 +173,7 @@ typedef struct
u16 initialised;
/* Added by protocol version 0x0001 */
- CsrUint32 overlay_size;
+ u32 overlay_size;
/* Added by protocol version 0x0300 */
u16 data_slot_round;
@@ -407,11 +407,11 @@ struct card
* array is indexed by slot numbers and each index stores
* information of the last host tag it was used for
*/
- CsrUint32 *fh_slot_host_tag_record;
+ u32 *fh_slot_host_tag_record;
/* Info read from Symbol Table during probe */
- CsrUint32 build_id;
+ u32 build_id;
CsrCharString build_id_string[128];
/* Retrieve from SDIO driver. */
@@ -455,7 +455,7 @@ struct card
u8 request_max_clock;
/* Last SDIO clock frequency set */
- CsrUint32 sdio_clock_speed;
+ u32 sdio_clock_speed;
/*
* Current host state (copy of value in IOABORT register and
@@ -518,7 +518,7 @@ struct card
* SHARED_IO_INTERRUPT register.
* Flag to say we need to generate an interrupt at end of processing.
*/
- CsrUint32 unifi_interrupt_seq;
+ u32 unifi_interrupt_seq;
u8 generate_interrupt;
@@ -548,17 +548,17 @@ struct card
sdio_config_data_t config_data;
/* SDIO address of the Initialised flag and Control Data struct */
- CsrUint32 init_flag_addr;
- CsrUint32 sdio_ctrl_addr;
+ u32 init_flag_addr;
+ u32 sdio_ctrl_addr;
/* The last value written to the Shared Data Memory Page register */
- CsrUint32 proc_select;
- CsrUint32 dmem_page;
- CsrUint32 pmem_page;
+ u32 proc_select;
+ u32 dmem_page;
+ u32 pmem_page;
/* SDIO traffic counters limited to 32 bits for Synergy compatibility */
- CsrUint32 sdio_bytes_read;
- CsrUint32 sdio_bytes_written;
+ u32 sdio_bytes_read;
+ u32 sdio_bytes_written;
u8 memory_resources_allocated;
@@ -585,42 +585,42 @@ struct card
#ifdef CSR_WIFI_HIP_DATA_PLANE_PROFILE
struct cmd_profile
{
- CsrUint32 cmd52_count;
- CsrUint32 cmd53_count;
- CsrUint32 tx_count;
- CsrUint32 tx_cfm_count;
- CsrUint32 rx_count;
- CsrUint32 bh_count;
- CsrUint32 process_count;
- CsrUint32 protocol_count;
-
- CsrUint32 cmd52_f0_r_count;
- CsrUint32 cmd52_f0_w_count;
- CsrUint32 cmd52_r8or16_count;
- CsrUint32 cmd52_w8or16_count;
- CsrUint32 cmd52_r16_count;
- CsrUint32 cmd52_w16_count;
- CsrUint32 cmd52_r32_count;
-
- CsrUint32 sdio_cmd_signal;
- CsrUint32 sdio_cmd_clear_slot;
- CsrUint32 sdio_cmd_to_host;
- CsrUint32 sdio_cmd_from_host;
- CsrUint32 sdio_cmd_from_host_and_clear;
+ u32 cmd52_count;
+ u32 cmd53_count;
+ u32 tx_count;
+ u32 tx_cfm_count;
+ u32 rx_count;
+ u32 bh_count;
+ u32 process_count;
+ u32 protocol_count;
+
+ u32 cmd52_f0_r_count;
+ u32 cmd52_f0_w_count;
+ u32 cmd52_r8or16_count;
+ u32 cmd52_w8or16_count;
+ u32 cmd52_r16_count;
+ u32 cmd52_w16_count;
+ u32 cmd52_r32_count;
+
+ u32 sdio_cmd_signal;
+ u32 sdio_cmd_clear_slot;
+ u32 sdio_cmd_to_host;
+ u32 sdio_cmd_from_host;
+ u32 sdio_cmd_from_host_and_clear;
} hip_prof;
struct cmd_profile cmd_prof;
#endif
/* Interrupt processing mode flags */
- CsrUint32 intmode;
+ u32 intmode;
#ifdef UNIFI_DEBUG
u8 lsb;
#endif
/* Historic firmware panic codes */
- CsrUint32 panic_data_phy_addr;
- CsrUint32 panic_data_mac_addr;
+ u32 panic_data_phy_addr;
+ u32 panic_data_mac_addr;
u16 last_phy_panic_code;
u16 last_phy_panic_arg;
u16 last_mac_panic_code;
@@ -657,34 +657,34 @@ CsrInt32 card_read_signal_counts(card_t *card);
bulk_data_desc_t* card_find_data_slot(card_t *card, s16 slot);
-CsrResult unifi_read32(card_t *card, CsrUint32 unifi_addr, CsrUint32 *pdata);
-CsrResult unifi_readnz(card_t *card, CsrUint32 unifi_addr,
+CsrResult unifi_read32(card_t *card, u32 unifi_addr, u32 *pdata);
+CsrResult unifi_readnz(card_t *card, u32 unifi_addr,
void *pdata, u16 len);
-CsrInt32 unifi_read_shared_count(card_t *card, CsrUint32 addr);
+CsrInt32 unifi_read_shared_count(card_t *card, u32 addr);
-CsrResult unifi_writen(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len);
+CsrResult unifi_writen(card_t *card, u32 unifi_addr, void *pdata, u16 len);
-CsrResult unifi_bulk_rw(card_t *card, CsrUint32 handle,
- void *pdata, CsrUint32 len, s16 direction);
-CsrResult unifi_bulk_rw_noretry(card_t *card, CsrUint32 handle,
- void *pdata, CsrUint32 len, s16 direction);
+CsrResult unifi_bulk_rw(card_t *card, u32 handle,
+ void *pdata, u32 len, s16 direction);
+CsrResult unifi_bulk_rw_noretry(card_t *card, u32 handle,
+ void *pdata, u32 len, s16 direction);
#define UNIFI_SDIO_READ 0
#define UNIFI_SDIO_WRITE 1
-CsrResult unifi_read_8_or_16(card_t *card, CsrUint32 unifi_addr, u8 *pdata);
-CsrResult unifi_write_8_or_16(card_t *card, CsrUint32 unifi_addr, u8 data);
-CsrResult unifi_read_direct_8_or_16(card_t *card, CsrUint32 addr, u8 *pdata);
-CsrResult unifi_write_direct_8_or_16(card_t *card, CsrUint32 addr, u8 data);
+CsrResult unifi_read_8_or_16(card_t *card, u32 unifi_addr, u8 *pdata);
+CsrResult unifi_write_8_or_16(card_t *card, u32 unifi_addr, u8 data);
+CsrResult unifi_read_direct_8_or_16(card_t *card, u32 addr, u8 *pdata);
+CsrResult unifi_write_direct_8_or_16(card_t *card, u32 addr, u8 data);
-CsrResult unifi_read_direct16(card_t *card, CsrUint32 addr, u16 *pdata);
-CsrResult unifi_read_direct32(card_t *card, CsrUint32 addr, CsrUint32 *pdata);
-CsrResult unifi_read_directn(card_t *card, CsrUint32 addr, void *pdata, u16 len);
+CsrResult unifi_read_direct16(card_t *card, u32 addr, u16 *pdata);
+CsrResult unifi_read_direct32(card_t *card, u32 addr, u32 *pdata);
+CsrResult unifi_read_directn(card_t *card, u32 addr, void *pdata, u16 len);
-CsrResult unifi_write_direct16(card_t *card, CsrUint32 addr, u16 data);
-CsrResult unifi_write_directn(card_t *card, CsrUint32 addr, void *pdata, u16 len);
+CsrResult unifi_write_direct16(card_t *card, u32 addr, u16 data);
+CsrResult unifi_write_directn(card_t *card, u32 addr, void *pdata, u16 len);
-CsrResult sdio_read_f0(card_t *card, CsrUint32 addr, u8 *pdata);
-CsrResult sdio_write_f0(card_t *card, CsrUint32 addr, u8 data);
+CsrResult sdio_read_f0(card_t *card, u32 addr, u8 *pdata);
+CsrResult sdio_write_f0(card_t *card, u32 addr, u8 data);
void unifi_read_panic(card_t *card);
#ifdef CSR_PRE_ALLOC_NET_DATA
diff --git a/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c b/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
index 1d09b974851..9c9e9070f6b 100644
--- a/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
+++ b/drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
@@ -212,7 +212,7 @@ CsrResult prealloc_netdata_alloc(card_t *card)
}
-static CsrResult prealloc_netdata_get(card_t *card, bulk_data_desc_t *bulk_data_slot, CsrUint32 size)
+static CsrResult prealloc_netdata_get(card_t *card, bulk_data_desc_t *bulk_data_slot, u32 size)
{
CsrResult r;
@@ -354,7 +354,7 @@ CsrResult unifi_force_low_power_mode(card_t *card)
* CSR_RESULT_SUCCESS on success or a CSR error code.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_bh(card_t *card, CsrUint32 *remaining)
+CsrResult unifi_bh(card_t *card, u32 *remaining)
{
CsrResult r;
CsrResult csrResult;
@@ -1315,7 +1315,7 @@ static CsrResult process_to_host_signals(card_t *card, CsrInt32 *processed)
if (GET_SIGNAL_ID(bufptr + 2) == CSR_MA_PACKET_CONFIRM_ID)
{
/* Get host tag and transmission status */
- CsrUint32 host_tag = GET_PACKED_MA_PACKET_CONFIRM_HOST_TAG(bufptr + 2);
+ u32 host_tag = GET_PACKED_MA_PACKET_CONFIRM_HOST_TAG(bufptr + 2);
u16 status = GET_PACKED_MA_PACKET_CONFIRM_TRANSMISSION_STATUS(bufptr + 2);
unifi_trace(card->ospriv, UDBG4, "process_to_host_signals signal ID=%x host Tag=%x status=%x\n",
@@ -1841,8 +1841,8 @@ static CsrResult process_bulk_data_command(card_t *card, const u8 *cmdptr,
*/
static CsrResult check_fh_sig_slots(card_t *card, u16 needed, CsrInt32 *space_fh)
{
- CsrUint32 count_fhw;
- CsrUint32 occupied_fh, slots_fh;
+ u32 count_fhw;
+ u32 occupied_fh, slots_fh;
CsrInt32 count_fhr;
count_fhw = card->from_host_signals_w;
@@ -2180,7 +2180,7 @@ static CsrResult process_fh_traffic_queue(card_t *card, CsrInt32 *processed)
u16 needed_chunks;
CsrInt32 space_chunks;
u16 q_index;
- CsrUint32 host_tag = 0;
+ u32 host_tag = 0;
u16 slot_num = 0;
*processed = 0;
diff --git a/drivers/staging/csr/csr_wifi_hip_card_sdio_mem.c b/drivers/staging/csr/csr_wifi_hip_card_sdio_mem.c
index 15a040350cb..0454f435a68 100644
--- a/drivers/staging/csr/csr_wifi_hip_card_sdio_mem.c
+++ b/drivers/staging/csr/csr_wifi_hip_card_sdio_mem.c
@@ -53,7 +53,7 @@
* CSR_RESULT_FAILURE an SDIO error occurred
* ---------------------------------------------------------------------------
*/
-static CsrResult retrying_read8(card_t *card, s16 funcnum, CsrUint32 addr, u8 *pdata)
+static CsrResult retrying_read8(card_t *card, s16 funcnum, u32 addr, u8 *pdata)
{
CsrSdioFunction *sdio = card->sdio_if;
CsrResult r = CSR_RESULT_SUCCESS;
@@ -128,7 +128,7 @@ static CsrResult retrying_read8(card_t *card, s16 funcnum, CsrUint32 addr, u8 *p
} /* retrying_read8() */
-static CsrResult retrying_write8(card_t *card, s16 funcnum, CsrUint32 addr, u8 data)
+static CsrResult retrying_write8(card_t *card, s16 funcnum, u32 addr, u8 data)
{
CsrSdioFunction *sdio = card->sdio_if;
CsrResult r = CSR_RESULT_SUCCESS;
@@ -202,7 +202,7 @@ static CsrResult retrying_write8(card_t *card, s16 funcnum, CsrUint32 addr, u8 d
static CsrResult retrying_read16(card_t *card, s16 funcnum,
- CsrUint32 addr, u16 *pdata)
+ u32 addr, u16 *pdata)
{
CsrSdioFunction *sdio = card->sdio_if;
CsrResult r = CSR_RESULT_SUCCESS;
@@ -263,7 +263,7 @@ static CsrResult retrying_read16(card_t *card, s16 funcnum,
static CsrResult retrying_write16(card_t *card, s16 funcnum,
- CsrUint32 addr, u16 data)
+ u32 addr, u16 data)
{
CsrSdioFunction *sdio = card->sdio_if;
CsrResult r = CSR_RESULT_SUCCESS;
@@ -338,7 +338,7 @@ static CsrResult retrying_write16(card_t *card, s16 funcnum,
* CSR_RESULT_FAILURE an SDIO error occurred
* ---------------------------------------------------------------------------
*/
-CsrResult sdio_read_f0(card_t *card, CsrUint32 addr, u8 *pdata)
+CsrResult sdio_read_f0(card_t *card, u32 addr, u8 *pdata)
{
#if defined (CSR_WIFI_HIP_DEBUG_OFFLINE) && defined (CSR_WIFI_HIP_DATA_PLANE_PROFILE)
card->cmd_prof.cmd52_f0_r_count++;
@@ -364,7 +364,7 @@ CsrResult sdio_read_f0(card_t *card, CsrUint32 addr, u8 *pdata)
* CSR_RESULT_FAILURE an SDIO error occurred
* ---------------------------------------------------------------------------
*/
-CsrResult sdio_write_f0(card_t *card, CsrUint32 addr, u8 data)
+CsrResult sdio_write_f0(card_t *card, u32 addr, u8 data)
{
#if defined (CSR_WIFI_HIP_DEBUG_OFFLINE) && defined (CSR_WIFI_HIP_DATA_PLANE_PROFILE)
card->cmd_prof.cmd52_f0_w_count++;
@@ -388,7 +388,7 @@ CsrResult sdio_write_f0(card_t *card, CsrUint32 addr, u8 data)
* CSR_RESULT_SUCCESS on success, non-zero error code on error:
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_read_direct_8_or_16(card_t *card, CsrUint32 addr, u8 *pdata)
+CsrResult unifi_read_direct_8_or_16(card_t *card, u32 addr, u8 *pdata)
{
#ifdef CSR_WIFI_TRANSPORT_CSPI
u16 w;
@@ -423,7 +423,7 @@ CsrResult unifi_read_direct_8_or_16(card_t *card, CsrUint32 addr, u8 *pdata)
* to memory until the preceding even address is written.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_write_direct_8_or_16(card_t *card, CsrUint32 addr, u8 data)
+CsrResult unifi_write_direct_8_or_16(card_t *card, u32 addr, u8 data)
{
if (addr & 1)
{
@@ -462,7 +462,7 @@ CsrResult unifi_write_direct_8_or_16(card_t *card, CsrUint32 addr, u8 data)
* even address is read.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_read_direct16(card_t *card, CsrUint32 addr, u16 *pdata)
+CsrResult unifi_read_direct16(card_t *card, u32 addr, u16 *pdata)
{
return retrying_read16(card, card->function, addr, pdata);
} /* unifi_read_direct16() */
@@ -490,7 +490,7 @@ CsrResult unifi_read_direct16(card_t *card, CsrUint32 addr, u16 *pdata)
* even address is written.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_write_direct16(card_t *card, CsrUint32 addr, u16 data)
+CsrResult unifi_write_direct16(card_t *card, u32 addr, u16 data)
{
return retrying_write16(card, card->function, addr, data);
} /* unifi_write_direct16() */
@@ -513,7 +513,7 @@ CsrResult unifi_write_direct16(card_t *card, CsrUint32 addr, u16 data)
* CSR_RESULT_FAILURE an SDIO error occurred
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_read_direct32(card_t *card, CsrUint32 addr, CsrUint32 *pdata)
+CsrResult unifi_read_direct32(card_t *card, u32 addr, u32 *pdata)
{
CsrResult r;
u16 w0, w1;
@@ -530,7 +530,7 @@ CsrResult unifi_read_direct32(card_t *card, CsrUint32 addr, CsrUint32 *pdata)
return r;
}
- *pdata = ((CsrUint32)w1 << 16) | (CsrUint32)w0;
+ *pdata = ((u32)w1 << 16) | (u32)w0;
return CSR_RESULT_SUCCESS;
} /* unifi_read_direct32() */
@@ -564,10 +564,10 @@ CsrResult unifi_read_direct32(card_t *card, CsrUint32 addr, CsrUint32 *pdata)
* even address is read.
* ---------------------------------------------------------------------------
*/
-static CsrResult unifi_read_directn_match(card_t *card, CsrUint32 addr, void *pdata, u16 len, s8 m, CsrUint32 *num)
+static CsrResult unifi_read_directn_match(card_t *card, u32 addr, void *pdata, u16 len, s8 m, u32 *num)
{
CsrResult r;
- CsrUint32 i;
+ u32 i;
u8 *cptr;
u16 w;
@@ -631,9 +631,9 @@ static CsrResult unifi_read_directn_match(card_t *card, CsrUint32 addr, void *pd
* even address is read.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_read_directn(card_t *card, CsrUint32 addr, void *pdata, u16 len)
+CsrResult unifi_read_directn(card_t *card, u32 addr, void *pdata, u16 len)
{
- CsrUint32 num;
+ u32 num;
return unifi_read_directn_match(card, addr, pdata, len, -1, &num);
} /* unifi_read_directn() */
@@ -664,7 +664,7 @@ CsrResult unifi_read_directn(card_t *card, CsrUint32 addr, void *pdata, u16 len)
* This means we must write data as pairs of bytes in reverse order.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_write_directn(card_t *card, CsrUint32 addr, void *pdata, u16 len)
+CsrResult unifi_write_directn(card_t *card, u32 addr, void *pdata, u16 len)
{
CsrResult r;
u8 *cptr;
@@ -714,10 +714,10 @@ CsrResult unifi_write_directn(card_t *card, CsrUint32 addr, void *pdata, u16 len
* CSR_RESULT_FAILURE an SDIO error occurred
* ---------------------------------------------------------------------------
*/
-static CsrResult set_dmem_page(card_t *card, CsrUint32 dmem_addr, CsrUint32 *paddr)
+static CsrResult set_dmem_page(card_t *card, u32 dmem_addr, u32 *paddr)
{
u16 page, addr;
- CsrUint32 len;
+ u32 len;
CsrResult r;
*paddr = 0;
@@ -753,11 +753,11 @@ static CsrResult set_dmem_page(card_t *card, CsrUint32 dmem_addr, CsrUint32 *pad
} /* set_dmem_page() */
-static CsrResult set_pmem_page(card_t *card, CsrUint32 pmem_addr,
- enum chip_helper_window_type mem_type, CsrUint32 *paddr)
+static CsrResult set_pmem_page(card_t *card, u32 pmem_addr,
+ enum chip_helper_window_type mem_type, u32 *paddr)
{
u16 page, addr;
- CsrUint32 len;
+ u32 len;
CsrResult r;
*paddr = 0;
@@ -814,10 +814,10 @@ static CsrResult set_pmem_page(card_t *card, CsrUint32 pmem_addr,
* CSR_WIFI_HIP_RESULT_INVALID_VALUE the address is invalid
* ---------------------------------------------------------------------------
*/
-static CsrResult set_page(card_t *card, CsrUint32 generic_addr, CsrUint32 *paddr)
+static CsrResult set_page(card_t *card, u32 generic_addr, u32 *paddr)
{
CsrInt32 space;
- CsrUint32 addr;
+ u32 addr;
CsrResult r = CSR_RESULT_SUCCESS;
if (!paddr)
@@ -1018,7 +1018,7 @@ CsrResult unifi_set_proc_select(card_t *card, enum unifi_dbg_processors_select s
return CSR_WIFI_HIP_RESULT_INVALID_VALUE;
}
- if (card->proc_select != (CsrUint32)select)
+ if (card->proc_select != (u32)select)
{
r = unifi_write_direct16(card,
ChipHelper_DBG_HOST_PROC_SELECT(card->helper) * 2,
@@ -1033,7 +1033,7 @@ CsrResult unifi_set_proc_select(card_t *card, enum unifi_dbg_processors_select s
return r;
}
- card->proc_select = (CsrUint32)select;
+ card->proc_select = (u32)select;
}
return CSR_RESULT_SUCCESS;
@@ -1059,9 +1059,9 @@ CsrResult unifi_set_proc_select(card_t *card, enum unifi_dbg_processors_select s
* CSR_WIFI_HIP_RESULT_INVALID_VALUE a bad generic pointer was specified
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_read_8_or_16(card_t *card, CsrUint32 unifi_addr, u8 *pdata)
+CsrResult unifi_read_8_or_16(card_t *card, u32 unifi_addr, u8 *pdata)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
#ifdef CSR_WIFI_TRANSPORT_CSPI
u16 w;
@@ -1110,9 +1110,9 @@ CsrResult unifi_read_8_or_16(card_t *card, CsrUint32 unifi_addr, u8 *pdata)
* write with the previously cached odd byte.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_write_8_or_16(card_t *card, CsrUint32 unifi_addr, u8 data)
+CsrResult unifi_write_8_or_16(card_t *card, u32 unifi_addr, u8 data)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
#ifdef CSR_WIFI_TRANSPORT_CSPI
u16 w;
@@ -1162,9 +1162,9 @@ CsrResult unifi_write_8_or_16(card_t *card, CsrUint32 unifi_addr, u8 data)
* CSR_WIFI_HIP_RESULT_INVALID_VALUE a bad generic pointer was specified
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_card_read16(card_t *card, CsrUint32 unifi_addr, u16 *pdata)
+CsrResult unifi_card_read16(card_t *card, u32 unifi_addr, u16 *pdata)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
r = set_page(card, unifi_addr, &sdio_addr);
@@ -1199,9 +1199,9 @@ CsrResult unifi_card_read16(card_t *card, CsrUint32 unifi_addr, u16 *pdata)
* CSR_WIFI_HIP_RESULT_INVALID_VALUE a bad generic pointer was specified
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_card_write16(card_t *card, CsrUint32 unifi_addr, u16 data)
+CsrResult unifi_card_write16(card_t *card, u32 unifi_addr, u16 data)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
r = set_page(card, unifi_addr, &sdio_addr);
@@ -1236,9 +1236,9 @@ CsrResult unifi_card_write16(card_t *card, CsrUint32 unifi_addr, u16 data)
* CSR_WIFI_HIP_RESULT_INVALID_VALUE a bad generic pointer was specified
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_read32(card_t *card, CsrUint32 unifi_addr, CsrUint32 *pdata)
+CsrResult unifi_read32(card_t *card, u32 unifi_addr, u32 *pdata)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
r = set_page(card, unifi_addr, &sdio_addr);
@@ -1278,11 +1278,11 @@ CsrResult unifi_read32(card_t *card, CsrUint32 unifi_addr, CsrUint32 *pdata)
* CSR_WIFI_HIP_RESULT_INVALID_VALUE a bad generic pointer was specified
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_readn_match(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len, s8 match)
+CsrResult unifi_readn_match(card_t *card, u32 unifi_addr, void *pdata, u16 len, s8 match)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
- CsrUint32 num;
+ u32 num;
r = set_page(card, unifi_addr, &sdio_addr);
if (r != CSR_RESULT_SUCCESS)
@@ -1295,13 +1295,13 @@ CsrResult unifi_readn_match(card_t *card, CsrUint32 unifi_addr, void *pdata, u16
} /* unifi_readn_match() */
-CsrResult unifi_card_readn(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len)
+CsrResult unifi_card_readn(card_t *card, u32 unifi_addr, void *pdata, u16 len)
{
return unifi_readn_match(card, unifi_addr, pdata, len, -1);
} /* unifi_card_readn() */
-CsrResult unifi_readnz(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len)
+CsrResult unifi_readnz(card_t *card, u32 unifi_addr, void *pdata, u16 len)
{
return unifi_readn_match(card, unifi_addr, pdata, len, 0);
} /* unifi_readnz() */
@@ -1323,7 +1323,7 @@ CsrResult unifi_readnz(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len)
* Value read from memory (0-127) or -1 on error
* ---------------------------------------------------------------------------
*/
-CsrInt32 unifi_read_shared_count(card_t *card, CsrUint32 addr)
+CsrInt32 unifi_read_shared_count(card_t *card, u32 addr)
{
u8 b;
/* I've increased this count, because I have seen cases where
@@ -1384,9 +1384,9 @@ CsrInt32 unifi_read_shared_count(card_t *card, CsrUint32 addr)
* CSR_WIFI_HIP_RESULT_INVALID_VALUE an odd length or length too big.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_writen(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len)
+CsrResult unifi_writen(card_t *card, u32 unifi_addr, void *pdata, u16 len)
{
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
CsrResult r;
r = set_page(card, unifi_addr, &sdio_addr);
@@ -1400,7 +1400,7 @@ CsrResult unifi_writen(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len)
static CsrResult csr_sdio_block_rw(card_t *card, s16 funcnum,
- CsrUint32 addr, u8 *pdata,
+ u32 addr, u8 *pdata,
u16 count, s16 dir_is_write)
{
CsrResult csrResult;
@@ -1472,8 +1472,8 @@ static CsrResult csr_sdio_block_rw(card_t *card, s16 funcnum,
* This function uses SDIO CMD53, which is the block transfer mode.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_bulk_rw(card_t *card, CsrUint32 handle, void *pdata,
- CsrUint32 len, s16 direction)
+CsrResult unifi_bulk_rw(card_t *card, u32 handle, void *pdata,
+ u32 len, s16 direction)
{
#define CMD53_RETRIES 3
/*
@@ -1693,8 +1693,8 @@ CsrResult unifi_bulk_rw(card_t *card, CsrUint32 handle, void *pdata,
* This function uses SDIO CMD53, which is the block transfer mode.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_bulk_rw_noretry(card_t *card, CsrUint32 handle, void *pdata,
- CsrUint32 len, s16 direction)
+CsrResult unifi_bulk_rw_noretry(card_t *card, u32 handle, void *pdata,
+ u32 len, s16 direction)
{
CsrResult csrResult;
diff --git a/drivers/staging/csr/csr_wifi_hip_chiphelper.c b/drivers/staging/csr/csr_wifi_hip_chiphelper.c
index efdbab010b6..4e8cc3fa655 100644
--- a/drivers/staging/csr/csr_wifi_hip_chiphelper.c
+++ b/drivers/staging/csr/csr_wifi_hip_chiphelper.c
@@ -577,7 +577,7 @@ static const struct chip_device_desc_t *chip_ver_to_desc[] =
ChipDescript* ChipHelper_GetVersionSdio(u8 sdio_ver)
{
- CsrUint32 i;
+ u32 i;
for (i = 0; i < nelem(chip_ver_to_desc); i++)
{
@@ -593,7 +593,7 @@ ChipDescript* ChipHelper_GetVersionSdio(u8 sdio_ver)
ChipDescript* ChipHelper_GetVersionAny(u16 from_FF9A, u16 from_FE81)
{
- CsrUint32 i;
+ u32 i;
if ((from_FF9A & 0xFF00) != 0)
{
@@ -666,7 +666,7 @@ CHIP_HELPER_LIST(C_DEF)
*/
u16 ChipHelper_MapAddress_SPI2HOST(ChipDescript *chip_help, u16 addr)
{
- CsrUint32 i;
+ u32 i;
for (i = 0; i < chip_help->map.len; i++)
{
if (chip_help->map.vals[i].spi == addr)
@@ -680,7 +680,7 @@ u16 ChipHelper_MapAddress_SPI2HOST(ChipDescript *chip_help, u16 addr)
u16 ChipHelper_MapAddress_HOST2SPI(ChipDescript *chip_help, u16 addr)
{
- CsrUint32 i;
+ u32 i;
for (i = 0; i < chip_help->map.len; i++)
{
if (chip_help->map.vals[i].host == addr)
@@ -725,7 +725,7 @@ u16 ChipHelper_WINDOW_SIZE(ChipDescript *chip_help,
/* Get the register writes we should do to make sure that
the chip is running with most clocks on. */
-CsrUint32 ChipHelper_ClockStartupSequence(ChipDescript *chip_help,
+u32 ChipHelper_ClockStartupSequence(ChipDescript *chip_help,
const struct chip_helper_init_values **val)
{
*val = chip_help->init.vals;
@@ -734,7 +734,7 @@ CsrUint32 ChipHelper_ClockStartupSequence(ChipDescript
/* Get the set of values tat we should write to the chip to perform a reset. */
-CsrUint32 ChipHelper_HostResetSequence(ChipDescript *chip_help,
+u32 ChipHelper_HostResetSequence(ChipDescript *chip_help,
const struct chip_helper_reset_values **val)
{
*val = chip_help->reset_prog.vals;
@@ -746,8 +746,8 @@ CsrUint32 ChipHelper_HostResetSequence(ChipDescript *c
CsrInt32 ChipHelper_DecodeWindow(ChipDescript *chip_help,
enum chip_helper_window_index window,
enum chip_helper_window_type type,
- CsrUint32 offset,
- u16 *page, u16 *addr, CsrUint32 *len)
+ u32 offset,
+ u16 *page, u16 *addr, u32 *len)
{
const struct window_info_t *win;
const struct window_shift_info_t *mode;
diff --git a/drivers/staging/csr/csr_wifi_hip_chiphelper.h b/drivers/staging/csr/csr_wifi_hip_chiphelper.h
index a539c0485d7..11cff4e0b49 100644
--- a/drivers/staging/csr/csr_wifi_hip_chiphelper.h
+++ b/drivers/staging/csr/csr_wifi_hip_chiphelper.h
@@ -140,8 +140,8 @@ struct chip_helper_init_values
/* A block of data that should be written to the device */
struct chip_helper_reset_values
{
- CsrUint32 gp_address;
- CsrUint32 len;
+ u32 gp_address;
+ u32 len;
const u16 *data;
};
@@ -230,10 +230,10 @@ ChipDescript* ChipHelper_GetVersionBlueCore(enum chip_helper_bluecore_age age,
CHIP_HELPER_DEF0(m, (u16, SDIO_HOST_INT, regs->sdio_host_int)) \
CHIP_HELPER_DEF0(m, (u16, COEX_STATUS, regs->coex_status)) \
CHIP_HELPER_DEF0(m, (u16, SHARED_IO_INTERRUPT, regs->shared_io_interrupt)) \
- CHIP_HELPER_DEF0(m, (CsrUint32, PROGRAM_MEMORY_RAM_OFFSET, prog_offset.ram)) \
- CHIP_HELPER_DEF0(m, (CsrUint32, PROGRAM_MEMORY_ROM_OFFSET, prog_offset.rom)) \
- CHIP_HELPER_DEF0(m, (CsrUint32, PROGRAM_MEMORY_FLASH_OFFSET, prog_offset.flash)) \
- CHIP_HELPER_DEF0(m, (CsrUint32, PROGRAM_MEMORY_EXT_SRAM_OFFSET, prog_offset.ext_sram)) \
+ CHIP_HELPER_DEF0(m, (u32, PROGRAM_MEMORY_RAM_OFFSET, prog_offset.ram)) \
+ CHIP_HELPER_DEF0(m, (u32, PROGRAM_MEMORY_ROM_OFFSET, prog_offset.rom)) \
+ CHIP_HELPER_DEF0(m, (u32, PROGRAM_MEMORY_FLASH_OFFSET, prog_offset.flash)) \
+ CHIP_HELPER_DEF0(m, (u32, PROGRAM_MEMORY_EXT_SRAM_OFFSET, prog_offset.ext_sram)) \
CHIP_HELPER_DEF0(m, (u16, DATA_MEMORY_RAM_OFFSET, data_offset.ram)) \
CHIP_HELPER_DEF0(m, (CsrInt32, HasFlash, bools.has_flash)) \
CHIP_HELPER_DEF0(m, (CsrInt32, HasExtSram, bools.has_ext_sram)) \
@@ -244,8 +244,8 @@ ChipDescript* ChipHelper_GetVersionBlueCore(enum chip_helper_bluecore_age age,
CHIP_HELPER_DEF1(m, (u16, WINDOW_SIZE, enum chip_helper_window_index, window)) \
CHIP_HELPER_DEF1(m, (u16, MapAddress_SPI2HOST, u16, addr)) \
CHIP_HELPER_DEF1(m, (u16, MapAddress_HOST2SPI, u16, addr)) \
- CHIP_HELPER_DEF1(m, (CsrUint32, ClockStartupSequence, const struct chip_helper_init_values **, val)) \
- CHIP_HELPER_DEF1(m, (CsrUint32, HostResetSequence, const struct chip_helper_reset_values **, val))
+ CHIP_HELPER_DEF1(m, (u32, ClockStartupSequence, const struct chip_helper_init_values **, val)) \
+ CHIP_HELPER_DEF1(m, (u32, HostResetSequence, const struct chip_helper_reset_values **, val))
/* Some magic to help the expansion */
#define CHIP_HELPER_DEF0(a, b) \
@@ -405,8 +405,8 @@ CHIP_HELPER_LIST(C_DEC)
CsrInt32 ChipHelper_DecodeWindow(ChipDescript *chip_help,
enum chip_helper_window_index window,
enum chip_helper_window_type type,
- CsrUint32 offset,
- u16 *page, u16 *addr, CsrUint32 *len);
+ u32 offset,
+ u16 *page, u16 *addr, u32 *len);
#ifdef __cplusplus
/* Close the extern "C" */
@@ -459,8 +459,8 @@ public:
/* The DecodeWindow function, see the description of the C version. */
CsrInt32 DecodeWindow(chip_helper_window_index window,
chip_helper_window_type type,
- CsrUint32 offset,
- u16 &page, u16 &addr, CsrUint32 &len) const;
+ u32 offset,
+ u16 &page, u16 &addr, u32 &len) const;
private:
ChipDescript *m_desc;
diff --git a/drivers/staging/csr/csr_wifi_hip_chiphelper_private.h b/drivers/staging/csr/csr_wifi_hip_chiphelper_private.h
index aacafe1a118..de6e063f466 100644
--- a/drivers/staging/csr/csr_wifi_hip_chiphelper_private.h
+++ b/drivers/staging/csr/csr_wifi_hip_chiphelper_private.h
@@ -43,20 +43,20 @@ extern "C" {
/* Address value pairs */
struct val_array_t
{
- CsrUint32 len;
+ u32 len;
const struct chip_helper_init_values *vals;
};
/* Just a (counted) u16 array */
struct data_array_t
{
- CsrUint32 len;
+ u32 len;
const u16 *vals;
};
struct reset_prog_t
{
- CsrUint32 len;
+ u32 len;
const struct chip_helper_reset_values *vals;
};
@@ -69,7 +69,7 @@ struct chip_map_address_t
struct map_array_t
{
- CsrUint32 len;
+ u32 len;
const struct chip_map_address_t *vals;
};
@@ -118,7 +118,7 @@ struct chip_device_regs_t
struct window_shift_info_t
{
CsrInt32 allowed;
- CsrUint32 page_shift;
+ u32 page_shift;
u16 page_offset;
};
@@ -167,11 +167,11 @@ struct chip_device_desc_t
/* Some misc. info on the chip */
struct
{
- CsrUint32 has_flash : 1;
- CsrUint32 has_ext_sram : 1;
- CsrUint32 has_rom : 1;
- CsrUint32 has_bt : 1;
- CsrUint32 has_wlan : 1;
+ u32 has_flash : 1;
+ u32 has_ext_sram : 1;
+ u32 has_rom : 1;
+ u32 has_bt : 1;
+ u32 has_wlan : 1;
} bools;
/* This table is used to remap register addresses depending on what
@@ -184,10 +184,10 @@ struct chip_device_desc_t
The RAM offset is probably the most useful. */
struct
{
- CsrUint32 ram;
- CsrUint32 rom;
- CsrUint32 flash;
- CsrUint32 ext_sram;
+ u32 ram;
+ u32 rom;
+ u32 flash;
+ u32 ext_sram;
} prog_offset;
/* The offsets into the data address space of interesting things. */
diff --git a/drivers/staging/csr/csr_wifi_hip_download.c b/drivers/staging/csr/csr_wifi_hip_download.c
index 808fae6a2d9..e90faf3864c 100644
--- a/drivers/staging/csr/csr_wifi_hip_download.c
+++ b/drivers/staging/csr/csr_wifi_hip_download.c
@@ -25,7 +25,7 @@
#undef CSR_WIFI_IGNORE_PATCH_VERSION_MISMATCH
static CsrResult do_patch_download(card_t *card, void *dlpriv,
- xbv1_t *pfwinfo, CsrUint32 boot_ctrl_addr);
+ xbv1_t *pfwinfo, u32 boot_ctrl_addr);
static CsrResult do_patch_convert_download(card_t *card,
void *dlpriv, xbv1_t *pfwinfo);
@@ -49,9 +49,9 @@ static CsrResult do_patch_convert_download(card_t *card,
* CSR_WIFI_HIP_RESULT_NOT_FOUND if not found
* ---------------------------------------------------------------------------
*/
-static CsrResult _find_in_slut(card_t *card, symbol_t *psym, CsrUint32 *pslut)
+static CsrResult _find_in_slut(card_t *card, symbol_t *psym, u32 *pslut)
{
- CsrUint32 slut_address;
+ u32 slut_address;
u16 finger_print;
CsrResult r;
CsrResult csrResult;
@@ -122,7 +122,7 @@ static CsrResult _find_in_slut(card_t *card, symbol_t *psym, CsrUint32 *pslut)
while (1)
{
u16 id;
- CsrUint32 obj;
+ u32 obj;
r = unifi_card_read16(card, slut_address, &id);
if (r != CSR_RESULT_SUCCESS)
@@ -186,9 +186,9 @@ static CsrResult _find_in_slut(card_t *card, symbol_t *psym, CsrUint32 *pslut)
static CsrResult do_patch_convert_download(card_t *card, void *dlpriv, xbv1_t *pfwinfo)
{
CsrResult r;
- CsrUint32 slut_base = 0xffffffff;
+ u32 slut_base = 0xffffffff;
void *pfw;
- CsrUint32 psize;
+ u32 psize;
symbol_t sym;
/* Reset the chip to guarantee that the ROM loader is running */
@@ -203,7 +203,7 @@ static CsrResult do_patch_convert_download(card_t *card, void *dlpriv, xbv1_t *p
/* If no unifi_helper is running, the firmware version must be read */
if (card->build_id == 0)
{
- CsrUint32 ver = 0;
+ u32 ver = 0;
sym.id = CSR_SLT_BUILD_ID_NUMBER;
sym.obj = 0; /* To be updated by _find_in_slut() */
@@ -399,7 +399,7 @@ CsrResult unifi_dl_firmware(card_t *card, void *dlpriv)
* This ends up telling UniFi to restart.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_dl_patch(card_t *card, void *dlpriv, CsrUint32 boot_ctrl)
+CsrResult unifi_dl_patch(card_t *card, void *dlpriv, u32 boot_ctrl)
{
xbv1_t *fwinfo;
CsrResult r;
@@ -497,7 +497,7 @@ void* unifi_dl_fw_read_start(card_t *card, s8 is_fw)
* CSR_RESULT_SUCCESS on success, CSR error code on failure
* ---------------------------------------------------------------------------
*/
-static CsrResult safe_read_shared_location(card_t *card, CsrUint32 address, u8 *pdata)
+static CsrResult safe_read_shared_location(card_t *card, u32 address, u8 *pdata)
{
CsrResult r;
u16 limit = 1000;
@@ -559,7 +559,7 @@ static CsrResult safe_read_shared_location(card_t *card, CsrUint32 address, u8 *
#define OPERATION_TIMEOUT_LOOPS (100) /* when OPERATION_TIMEOUT_DELAY==1, (500) otherwise */
#define OPERATION_TIMEOUT_DELAY 1 /* msec, or 200usecs */
-CsrResult unifi_do_loader_op(card_t *card, CsrUint32 op_addr, u8 opcode)
+CsrResult unifi_do_loader_op(card_t *card, u32 op_addr, u8 opcode)
{
CsrResult r;
s16 op_retries;
@@ -654,13 +654,13 @@ CsrResult unifi_do_loader_op(card_t *card, CsrUint32 op_addr, u8 opcode)
* ---------------------------------------------------------------------------
*/
static CsrResult send_ptdl_to_unifi(card_t *card, void *dlpriv,
- const struct PTDL *ptdl, CsrUint32 handle,
- CsrUint32 op_addr)
+ const struct PTDL *ptdl, u32 handle,
+ u32 op_addr)
{
- CsrUint32 offset;
+ u32 offset;
u8 *buf;
CsrInt32 data_len;
- CsrUint32 write_len;
+ u32 write_len;
CsrResult r;
const u16 buf_size = 2 * 1024;
@@ -753,13 +753,13 @@ static CsrResult send_ptdl_to_unifi(card_t *card, void *dlpriv,
* CSR_WIFI_HIP_RESULT_INVALID_VALUE for a bad laoader version number
* ---------------------------------------------------------------------------
*/
-static CsrResult do_patch_download(card_t *card, void *dlpriv, xbv1_t *pfwinfo, CsrUint32 boot_ctrl_addr)
+static CsrResult do_patch_download(card_t *card, void *dlpriv, xbv1_t *pfwinfo, u32 boot_ctrl_addr)
{
CsrResult r;
CsrInt32 i;
u16 loader_version;
u16 handle;
- CsrUint32 total_bytes;
+ u32 total_bytes;
/*
* Read info from the SDIO Loader Control Data Structure
diff --git a/drivers/staging/csr/csr_wifi_hip_dump.c b/drivers/staging/csr/csr_wifi_hip_dump.c
index da1a7ac5409..2f70a6cd80d 100644
--- a/drivers/staging/csr/csr_wifi_hip_dump.c
+++ b/drivers/staging/csr/csr_wifi_hip_dump.c
@@ -42,7 +42,7 @@ typedef struct coredump_buf
CsrTime timestamp; /* host's system time at capture */
s16 requestor; /* request: 0=auto dump, 1=manual */
u16 chip_ver;
- CsrUint32 fw_ver;
+ u32 fw_ver;
u16 *zone[HIP_CDUMP_NUM_ZONES];
struct coredump_buf *next; /* circular list */
@@ -54,7 +54,7 @@ struct coredump_zone
{
unifi_coredump_space_t space; /* XAP memory space this zone covers */
enum unifi_dbg_processors_select cpu; /* XAP CPU core selector */
- CsrUint32 gp; /* Generic Pointer to memory zone on XAP */
+ u32 gp; /* Generic Pointer to memory zone on XAP */
u16 offset; /* 16-bit XAP word offset of zone in memory space */
u16 length; /* Length of zone in XAP words */
};
@@ -299,7 +299,7 @@ static CsrInt32 get_value_from_coredump(const coredump_buffer *coreDump,
{
CsrInt32 r = -1;
u16 offset_in_zone;
- CsrUint32 zone_end_offset;
+ u32 zone_end_offset;
CsrInt32 i;
const struct coredump_zone *def = &zonedef_table[0];
@@ -587,7 +587,7 @@ static CsrResult unifi_coredump_from_sdio(card_t *card, coredump_buffer *dump_bu
{
u16 val;
CsrResult r;
- CsrUint32 sdio_addr;
+ u32 sdio_addr;
func_enter();
@@ -663,7 +663,7 @@ coredump_buffer* new_coredump_node(void *ospriv, coredump_buffer *prevnode)
coredump_buffer *newnode = NULL;
u16 *newzone = NULL;
CsrInt32 i;
- CsrUint32 zone_size;
+ u32 zone_size;
/* Allocate node header */
newnode = (coredump_buffer *)CsrMemAlloc(sizeof(coredump_buffer));
@@ -744,7 +744,7 @@ CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers)
void *ospriv = card->ospriv;
coredump_buffer *prev = NULL;
coredump_buffer *newnode = NULL;
- CsrUint32 i = 0;
+ u32 i = 0;
#endif
func_enter();
diff --git a/drivers/staging/csr/csr_wifi_hip_send.c b/drivers/staging/csr/csr_wifi_hip_send.c
index 3e0e72eae8e..88b5e341d76 100644
--- a/drivers/staging/csr/csr_wifi_hip_send.c
+++ b/drivers/staging/csr/csr_wifi_hip_send.c
@@ -100,9 +100,9 @@ CSR_PRIORITY unifi_get_default_downgrade_priority(unifi_TrafficQueue queue)
* Calls unifi_pause_xmit() when the last slots are used.
* ---------------------------------------------------------------------------
*/
-static CsrResult send_signal(card_t *card, const u8 *sigptr, CsrUint32 siglen,
+static CsrResult send_signal(card_t *card, const u8 *sigptr, u32 siglen,
const bulk_data_param_t *bulkdata,
- q_t *sigq, CsrUint32 priority_q, CsrUint32 run_bh)
+ q_t *sigq, u32 priority_q, u32 run_bh)
{
u16 i, data_slot_size;
card_signal_t *csptr;
@@ -135,7 +135,7 @@ static CsrResult send_signal(card_t *card, const u8 *sigptr, CsrUint32 siglen,
{
if ((bulkdata != NULL) && (bulkdata->d[i].data_length != 0))
{
- CsrUint32 datalen = bulkdata->d[i].data_length;
+ u32 datalen = bulkdata->d[i].data_length;
/* Make sure data will fit in a bulk data slot */
if (bulkdata->d[i].os_data_ptr == NULL)
@@ -303,14 +303,14 @@ static CsrResult send_signal(card_t *card, const u8 *sigptr, CsrUint32 siglen,
* to the device. Signals are constructed using the UniFi packed structures.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_send_signal(card_t *card, const u8 *sigptr, CsrUint32 siglen,
+CsrResult unifi_send_signal(card_t *card, const u8 *sigptr, u32 siglen,
const bulk_data_param_t *bulkdata)
{
q_t *sig_soft_q;
u16 signal_id;
CsrResult r;
- CsrUint32 run_bh;
- CsrUint32 priority_q;
+ u32 run_bh;
+ u32 priority_q;
/* A NULL signal pointer is a request to check if UniFi is responsive */
if (sigptr == NULL)
@@ -395,7 +395,7 @@ CsrResult unifi_send_resources_available(card_t *card, const u8 *sigptr)
if (signal_id == CSR_MA_PACKET_REQUEST_ID)
{
u16 frame_priority;
- CsrUint32 priority_q;
+ u32 priority_q;
/* Map the frame priority to a traffic queue index. */
frame_priority = GET_PACKED_MA_PACKET_REQUEST_FRAME_PRIORITY(sigptr);
diff --git a/drivers/staging/csr/csr_wifi_hip_signals.c b/drivers/staging/csr/csr_wifi_hip_signals.c
index a1b16faafbb..43d9b8e5ede 100644
--- a/drivers/staging/csr/csr_wifi_hip_signals.c
+++ b/drivers/staging/csr/csr_wifi_hip_signals.c
@@ -944,7 +944,7 @@ CsrInt32 SigGetDataRefs(CSR_SIGNAL *aSignal, CSR_DATAREF **aDataRef)
}
-CsrUint32 SigGetFilterPos(u16 aSigID)
+u32 SigGetFilterPos(u16 aSigID)
{
switch (aSigID)
{
diff --git a/drivers/staging/csr/csr_wifi_hip_sigs.h b/drivers/staging/csr/csr_wifi_hip_sigs.h
index d9c9d1ed45c..a483179b65a 100644
--- a/drivers/staging/csr/csr_wifi_hip_sigs.h
+++ b/drivers/staging/csr/csr_wifi_hip_sigs.h
@@ -61,9 +61,9 @@ typedef u16 CSR_CAPABILITY_INFORMATION;
typedef u16 CSR_CHANNEL_STARTING_FACTOR;
-typedef CsrUint32 CSR_CIPHER_SUITE_SELECTOR;
+typedef u32 CSR_CIPHER_SUITE_SELECTOR;
-typedef CsrUint32 CSR_CLIENT_TAG;
+typedef u32 CSR_CLIENT_TAG;
typedef enum CSR_CONNECTION_STATUS
{
@@ -89,7 +89,7 @@ typedef enum CSR_FRAME_TYPE
CSR_PROBE_REQUEST = 0x0004
} CSR_FRAME_TYPE;
-typedef CsrUint32 CSR_IPV4_ADDRESS;
+typedef u32 CSR_IPV4_ADDRESS;
typedef enum CSR_IFINTERFACE
{
@@ -144,7 +144,7 @@ typedef enum CSR_MEMORY_SPACE
typedef u16 CSR_MICROSECONDS16;
-typedef CsrUint32 CSR_MICROSECONDS32;
+typedef u32 CSR_MICROSECONDS32;
typedef u16 CSR_NATURAL16;
@@ -1416,7 +1416,7 @@ typedef struct CSR_SIGNAL_PRIMITIVE
#define SIG_FILTER_SIZE 6
-CsrUint32 SigGetFilterPos(u16 aSigID);
+u32 SigGetFilterPos(u16 aSigID);
#ifdef __cplusplus
}
diff --git a/drivers/staging/csr/csr_wifi_hip_ta_sampling.c b/drivers/staging/csr/csr_wifi_hip_ta_sampling.c
index b53abbfe906..33fc3154736 100644
--- a/drivers/staging/csr/csr_wifi_hip_ta_sampling.c
+++ b/drivers/staging/csr/csr_wifi_hip_ta_sampling.c
@@ -100,16 +100,16 @@ static enum ta_frame_identity ta_detect_protocol(card_t *card, CsrWifiRouterCtrl
u16 proto;
u16 source_port, dest_port;
CsrWifiMacAddress srcAddress;
- CsrUint32 snap_hdr, oui_hdr;
+ u32 snap_hdr, oui_hdr;
if (data->data_length < TA_LLC_HEADER_SIZE)
{
return TA_FRAME_UNKNOWN;
}
- snap_hdr = (((CsrUint32)data->os_data_ptr[0]) << 24) |
- (((CsrUint32)data->os_data_ptr[1]) << 16) |
- (((CsrUint32)data->os_data_ptr[2]) << 8);
+ snap_hdr = (((u32)data->os_data_ptr[0]) << 24) |
+ (((u32)data->os_data_ptr[1]) << 16) |
+ (((u32)data->os_data_ptr[2]) << 8);
if (snap_hdr != snap_802_2)
{
return TA_FRAME_UNKNOWN;
@@ -122,9 +122,9 @@ static enum ta_frame_identity ta_detect_protocol(card_t *card, CsrWifiRouterCtrl
*/
}
- oui_hdr = (((CsrUint32)data->os_data_ptr[3]) << 24) |
- (((CsrUint32)data->os_data_ptr[4]) << 16) |
- (((CsrUint32)data->os_data_ptr[5]) << 8);
+ oui_hdr = (((u32)data->os_data_ptr[3]) << 24) |
+ (((u32)data->os_data_ptr[4]) << 16) |
+ (((u32)data->os_data_ptr[5]) << 8);
if ((oui_hdr == oui_rfc1042) || (oui_hdr == oui_8021h))
{
proto = (data->os_data_ptr[TA_ETHERNET_TYPE_OFFSET] * 256) +
@@ -346,12 +346,12 @@ void unifi_ta_sample(card_t *card,
const bulk_data_desc_t *data,
const u8 *saddr,
const u8 *sta_macaddr,
- CsrUint32 timestamp,
+ u32 timestamp,
u16 rate)
{
ta_data_t *tad = &card->ta_sampling;
enum ta_frame_identity identity;
- CsrUint32 time_delta;
+ u32 time_delta;
@@ -387,8 +387,8 @@ void unifi_ta_sample(card_t *card,
*/
if (tad->stats.txFramesNum < TA_MAX_INTERVALS_IN_C1)
{
- CsrUint32 interval;
- CsrUint32 index_in_intervals;
+ u32 interval;
+ u32 index_in_intervals;
interval = timestamp - tad->tx_last_ts;
tad->tx_last_ts = timestamp;
@@ -423,7 +423,7 @@ void unifi_ta_sample(card_t *card,
* rxFramesNum can be flashed in tas_reset_data() by another thread.
* Use a temp to avoid division by zero.
*/
- CsrUint32 temp_rxFramesNum;
+ u32 temp_rxFramesNum;
temp_rxFramesNum = tad->stats.rxFramesNum;
/* Calculate this interval's mean frame Rx rate from the sum */
@@ -442,10 +442,10 @@ void unifi_ta_sample(card_t *card,
*/
if (tad->packet_filter & CSR_WIFI_ROUTER_CTRL_TRAFFIC_PACKET_TYPE_CUSTOM)
{
- CsrUint32 rxTcpThroughput = tad->ta_l4stats.rxTcpBytesCount / time_delta;
- CsrUint32 txTcpThroughput = tad->ta_l4stats.txTcpBytesCount / time_delta;
- CsrUint32 rxUdpThroughput = tad->ta_l4stats.rxUdpBytesCount / time_delta;
- CsrUint32 txUdpThroughput = tad->ta_l4stats.txUdpBytesCount / time_delta;
+ u32 rxTcpThroughput = tad->ta_l4stats.rxTcpBytesCount / time_delta;
+ u32 txTcpThroughput = tad->ta_l4stats.txTcpBytesCount / time_delta;
+ u32 rxUdpThroughput = tad->ta_l4stats.rxUdpBytesCount / time_delta;
+ u32 txUdpThroughput = tad->ta_l4stats.txUdpBytesCount / time_delta;
unifi_ta_indicate_l4stats(card->ospriv,
rxTcpThroughput,
diff --git a/drivers/staging/csr/csr_wifi_hip_ta_sampling.h b/drivers/staging/csr/csr_wifi_hip_ta_sampling.h
index 7183e25e9df..46c630b4bee 100644
--- a/drivers/staging/csr/csr_wifi_hip_ta_sampling.h
+++ b/drivers/staging/csr/csr_wifi_hip_ta_sampling.h
@@ -29,10 +29,10 @@ extern "C" {
typedef struct ta_l4stats
{
- CsrUint32 rxTcpBytesCount;
- CsrUint32 txTcpBytesCount;
- CsrUint32 rxUdpBytesCount;
- CsrUint32 txUdpBytesCount;
+ u32 rxTcpBytesCount;
+ u32 txTcpBytesCount;
+ u32 rxUdpBytesCount;
+ u32 txUdpBytesCount;
} ta_l4stats_t;
/*
@@ -48,10 +48,10 @@ typedef struct ta_data
CsrWifiRouterCtrlTrafficFilter custom_filter;
/* The timestamp of the last tx packet processed. */
- CsrUint32 tx_last_ts;
+ u32 tx_last_ts;
/* The timestamp of the last packet processed. */
- CsrUint32 last_indication_time;
+ u32 last_indication_time;
/* Statistics */
CsrWifiRouterCtrlTrafficStats stats;
@@ -60,7 +60,7 @@ typedef struct ta_data
CsrWifiRouterCtrlTrafficType traffic_type;
/* Sum of packet rx rates for this interval used to calculate mean */
- CsrUint32 rx_sum_rate;
+ u32 rx_sum_rate;
ta_l4stats_t ta_l4stats;
} ta_data_t;
diff --git a/drivers/staging/csr/csr_wifi_hip_unifi.h b/drivers/staging/csr/csr_wifi_hip_unifi.h
index cbe600d1b7b..6f2090e374e 100644
--- a/drivers/staging/csr/csr_wifi_hip_unifi.h
+++ b/drivers/staging/csr/csr_wifi_hip_unifi.h
@@ -140,16 +140,16 @@ typedef enum
typedef struct _bulk_data_desc
{
const u8 *os_data_ptr;
- CsrUint32 data_length;
+ u32 data_length;
const void *os_net_buf_ptr;
- CsrUint32 net_buf_length;
+ u32 net_buf_length;
} bulk_data_desc_t;
/* Structure of an entry in the Symbol Look Up Table (SLUT). */
typedef struct _symbol
{
u16 id;
- CsrUint32 obj;
+ u32 obj;
} symbol_t;
/*
@@ -196,9 +196,9 @@ typedef struct _card_info
{
u16 chip_id;
u16 chip_version;
- CsrUint32 fw_build;
+ u32 fw_build;
u16 fw_hip_version;
- CsrUint32 sdio_block_size;
+ u32 sdio_block_size;
} card_info_t;
@@ -225,14 +225,14 @@ typedef struct unifi_coredump_req
/* From user */
CsrInt32 index; /* 0=newest, -1=oldest */
unifi_coredump_space_t space; /* memory space */
- CsrUint32 offset; /* register offset in space */
+ u32 offset; /* register offset in space */
/* From driver */
- CsrUint32 drv_build; /* Driver build id */
- CsrUint32 chip_ver; /* Chip version */
- CsrUint32 fw_ver; /* Firmware version */
+ u32 drv_build; /* Driver build id */
+ u32 chip_ver; /* Chip version */
+ u32 fw_ver; /* Firmware version */
CsrInt32 requestor; /* Requestor: 0=auto dump, 1=manual */
CsrTime timestamp; /* time of capture by driver */
- CsrUint32 serial; /* capture serial number */
+ u32 serial; /* capture serial number */
CsrInt32 value; /* register value */
} unifi_coredump_req_t; /* mini-coredumped reg value request */
@@ -325,7 +325,7 @@ void unifi_cancel_pending_signals(card_t *card);
* @ingroup upperedge
*/
CsrResult unifi_send_signal(card_t *card, const u8 *sigptr,
- CsrUint32 siglen,
+ u32 siglen,
const bulk_data_param_t *bulkdata);
/**
@@ -398,7 +398,7 @@ CsrResult unifi_check_io_status(card_t *card, CsrInt32 *status);
*
* @ingroup upperedge
*/
-CsrResult unifi_bh(card_t *card, CsrUint32 *remaining);
+CsrResult unifi_bh(card_t *card, u32 *remaining);
/**
@@ -513,7 +513,7 @@ void unifi_ta_sample(card_t *card,
const bulk_data_desc_t *data,
const u8 *saddr,
const u8 *sta_macaddr,
- CsrUint32 timestamp,
+ u32 timestamp,
u16 rate);
/**
@@ -545,9 +545,9 @@ void unifi_ta_classification(card_t *card,
CsrResult unifi_card_hard_reset(card_t *card);
-CsrResult unifi_card_readn(card_t *card, CsrUint32 unifi_addr, void *pdata, u16 len);
-CsrResult unifi_card_read16(card_t *card, CsrUint32 unifi_addr, u16 *pdata);
-CsrResult unifi_card_write16(card_t *card, CsrUint32 unifi_addr, u16 data);
+CsrResult unifi_card_readn(card_t *card, u32 unifi_addr, void *pdata, u16 len);
+CsrResult unifi_card_read16(card_t *card, u32 unifi_addr, u16 *pdata);
+CsrResult unifi_card_write16(card_t *card, u32 unifi_addr, u16 data);
enum unifi_dbg_processors_select
@@ -643,7 +643,7 @@ CsrResult unifi_run_bh(void *ospriv);
* @ingroup upperedge
*/
void unifi_receive_event(void *ospriv,
- u8 *sigdata, CsrUint32 siglen,
+ u8 *sigdata, u32 siglen,
const bulk_data_param_t *bulkdata);
#ifdef CSR_WIFI_REQUEUE_PACKET_TO_HAL
@@ -659,7 +659,7 @@ void unifi_receive_event(void *ospriv,
*
* @ingroup upperedge
*/
-CsrResult unifi_reque_ma_packet_request(void *ospriv, CsrUint32 host_tag,
+CsrResult unifi_reque_ma_packet_request(void *ospriv, u32 host_tag,
u16 status,
bulk_data_desc_t *bulkDataDesc);
@@ -719,7 +719,7 @@ void* unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info);
*
* @ingroup upperedge
*/
-CsrInt32 unifi_fw_read(void *ospriv, void *arg, CsrUint32 offset, void *buf, CsrUint32 len);
+CsrInt32 unifi_fw_read(void *ospriv, void *arg, u32 offset, void *buf, u32 len);
/**
*
@@ -746,7 +746,7 @@ void unifi_fw_read_stop(void *ospriv, void *dlpriv);
*
* @ingroup upperedge
*/
-void* unifi_fw_open_buffer(void *ospriv, void *fwbuf, CsrUint32 len);
+void* unifi_fw_open_buffer(void *ospriv, void *fwbuf, u32 len);
/**
*
@@ -806,10 +806,10 @@ void unifi_ta_indicate_protocol(void *ospriv,
*/
void unifi_ta_indicate_sampling(void *ospriv, CsrWifiRouterCtrlTrafficStats *stats);
void unifi_ta_indicate_l4stats(void *ospriv,
- CsrUint32 rxTcpThroughput,
- CsrUint32 txTcpThroughput,
- CsrUint32 rxUdpThroughput,
- CsrUint32 txUdpThroughput);
+ u32 rxTcpThroughput,
+ u32 txTcpThroughput,
+ u32 rxUdpThroughput,
+ u32 txUdpThroughput);
#endif
void unifi_rx_queue_flush(void *ospriv);
@@ -849,7 +849,7 @@ CsrResult unifi_capture_panic(card_t *card);
#define CSR_WIFI_INTMODE_DEFAULT 0
#define CSR_WIFI_INTMODE_RUN_BH_ONCE 1 /* Run BH once per interrupt */
-void unifi_set_interrupt_mode(card_t *card, CsrUint32 mode);
+void unifi_set_interrupt_mode(card_t *card, u32 mode);
/*
* unifi_request_max_clock() requests that max SDIO clock speed is set at the
diff --git a/drivers/staging/csr/csr_wifi_hip_unifi_udi.h b/drivers/staging/csr/csr_wifi_hip_unifi_udi.h
index e69f5c75d22..774bdc95826 100644
--- a/drivers/staging/csr/csr_wifi_hip_unifi_udi.h
+++ b/drivers/staging/csr/csr_wifi_hip_unifi_udi.h
@@ -38,7 +38,7 @@ enum udi_log_direction
};
typedef void (*udi_func_t)(void *ospriv, u8 *sigdata,
- CsrUint32 signal_len,
+ u32 signal_len,
const bulk_data_param_t *bulkdata,
enum udi_log_direction dir);
diff --git a/drivers/staging/csr/csr_wifi_hip_xbv.c b/drivers/staging/csr/csr_wifi_hip_xbv.c
index 3236b2be629..3d559af2852 100644
--- a/drivers/staging/csr/csr_wifi_hip_xbv.c
+++ b/drivers/staging/csr/csr_wifi_hip_xbv.c
@@ -53,7 +53,7 @@ typedef struct
typedef struct
{
CsrCharString t_name[4];
- CsrUint32 t_len;
+ u32 t_len;
} tag_t;
@@ -86,44 +86,44 @@ typedef struct
xbv_container container;
CsrInt32 ioffset_end;
} s[XBV_STACK_SIZE];
- CsrUint32 ptr;
+ u32 ptr;
} xbv_stack_t;
static CsrInt32 read_tag(card_t *card, ct_t *ct, tag_t *tag);
-static CsrInt32 read_bytes(card_t *card, ct_t *ct, void *buf, CsrUint32 len);
-static CsrInt32 read_uint(card_t *card, ct_t *ct, CsrUint32 *u, CsrUint32 len);
+static CsrInt32 read_bytes(card_t *card, ct_t *ct, void *buf, u32 len);
+static CsrInt32 read_uint(card_t *card, ct_t *ct, u32 *u, u32 len);
static CsrInt32 xbv_check(xbv1_t *fwinfo, const xbv_stack_t *stack,
xbv_mode new_mode, xbv_container old_cont);
static CsrInt32 xbv_push(xbv1_t *fwinfo, xbv_stack_t *stack,
xbv_mode new_mode, xbv_container old_cont,
- xbv_container new_cont, CsrUint32 ioff);
+ xbv_container new_cont, u32 ioff);
-static CsrUint32 write_uint16(void *buf, const CsrUint32 offset,
+static u32 write_uint16(void *buf, const u32 offset,
const u16 val);
-static CsrUint32 write_uint32(void *buf, const CsrUint32 offset,
- const CsrUint32 val);
-static CsrUint32 write_bytes(void *buf, const CsrUint32 offset,
- const u8 *data, const CsrUint32 len);
-static CsrUint32 write_tag(void *buf, const CsrUint32 offset,
+static u32 write_uint32(void *buf, const u32 offset,
+ const u32 val);
+static u32 write_bytes(void *buf, const u32 offset,
+ const u8 *data, const u32 len);
+static u32 write_tag(void *buf, const u32 offset,
const CsrCharString *tag_str);
-static CsrUint32 write_chunk(void *buf, const CsrUint32 offset,
+static u32 write_chunk(void *buf, const u32 offset,
const CsrCharString *tag_str,
- const CsrUint32 payload_len);
-static u16 calc_checksum(void *buf, const CsrUint32 offset,
- const CsrUint32 bytes_len);
-static CsrUint32 calc_patch_size(const xbv1_t *fwinfo);
-
-static CsrUint32 write_xbv_header(void *buf, const CsrUint32 offset,
- const CsrUint32 file_payload_length);
-static CsrUint32 write_ptch_header(void *buf, const CsrUint32 offset,
- const CsrUint32 fw_id);
-static CsrUint32 write_patchcmd(void *buf, const CsrUint32 offset,
- const CsrUint32 dst_genaddr, const u16 len);
-static CsrUint32 write_reset_ptdl(void *buf, const CsrUint32 offset,
- const xbv1_t *fwinfo, CsrUint32 fw_id);
-static CsrUint32 write_fwdl_to_ptdl(void *buf, const CsrUint32 offset,
+ const u32 payload_len);
+static u16 calc_checksum(void *buf, const u32 offset,
+ const u32 bytes_len);
+static u32 calc_patch_size(const xbv1_t *fwinfo);
+
+static u32 write_xbv_header(void *buf, const u32 offset,
+ const u32 file_payload_length);
+static u32 write_ptch_header(void *buf, const u32 offset,
+ const u32 fw_id);
+static u32 write_patchcmd(void *buf, const u32 offset,
+ const u32 dst_genaddr, const u16 len);
+static u32 write_reset_ptdl(void *buf, const u32 offset,
+ const xbv1_t *fwinfo, u32 fw_id);
+static u32 write_fwdl_to_ptdl(void *buf, const u32 offset,
fwreadfn_t readfn, const struct FWDL *fwdl,
- const void *fw_buf, const CsrUint32 fw_id,
+ const void *fw_buf, const u32 fw_id,
void *rdbuf);
/*
@@ -210,7 +210,7 @@ CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwin
/* File format version */
if (TAG_EQ(tag.t_name, "VERF"))
{
- CsrUint32 version;
+ u32 version;
if (xbv_check(fwinfo, &stack, xbv_unknown, xbv_xbv1) ||
(tag.t_len != 2) ||
@@ -228,7 +228,7 @@ CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwin
else if (TAG_EQ(tag.t_name, "LIST"))
{
CsrCharString name[4];
- CsrUint32 list_end;
+ u32 list_end;
list_end = ct.ioffset + tag.t_len;
@@ -287,7 +287,7 @@ CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwin
}
else if (TAG_EQ(tag.t_name, "SLTP"))
{
- CsrUint32 addr;
+ u32 addr;
if (xbv_check(fwinfo, &stack, xbv_firmware, xbv_fw) ||
(tag.t_len != 4) ||
@@ -301,7 +301,7 @@ CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwin
}
else if (TAG_EQ(tag.t_name, "FWDL"))
{
- CsrUint32 addr;
+ u32 addr;
struct FWDL *fwdl;
if (xbv_check(fwinfo, &stack, xbv_firmware, xbv_fw) ||
@@ -335,7 +335,7 @@ CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwin
}
else if (TAG_EQ(tag.t_name, "VMEQ"))
{
- CsrUint32 temp[3];
+ u32 temp[3];
struct VAND *vand;
struct VMEQ *vmeq;
@@ -366,7 +366,7 @@ CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwin
}
else if (TAG_EQ(tag.t_name, "FWID"))
{
- CsrUint32 build_id;
+ u32 build_id;
if (xbv_check(fwinfo, &stack, xbv_patch, xbv_ptch) ||
(tag.t_len != 4) ||
@@ -467,7 +467,7 @@ static CsrInt32 xbv_check(xbv1_t *fwinfo, const xbv_stack_t *stack,
/* Make checks as above and then enter a new list */
static CsrInt32 xbv_push(xbv1_t *fwinfo, xbv_stack_t *stack,
xbv_mode new_mode, xbv_container old_cont,
- xbv_container new_cont, CsrUint32 new_ioff)
+ xbv_container new_cont, u32 new_ioff)
{
if (xbv_check(fwinfo, stack, new_mode, old_cont))
{
@@ -489,14 +489,14 @@ static CsrInt32 xbv_push(xbv1_t *fwinfo, xbv_stack_t *stack,
}
-static CsrUint32 xbv2uint(u8 *ptr, CsrInt32 len)
+static u32 xbv2uint(u8 *ptr, CsrInt32 len)
{
- CsrUint32 u = 0;
+ u32 u = 0;
s16 i;
for (i = 0; i < len; i++)
{
- CsrUint32 b;
+ u32 b;
b = ptr[i];
u += b << (i * 8);
}
@@ -533,7 +533,7 @@ static CsrInt32 read_tag(card_t *card, ct_t *ct, tag_t *tag)
} /* read_tag() */
-static CsrInt32 read_bytes(card_t *card, ct_t *ct, void *buf, CsrUint32 len)
+static CsrInt32 read_bytes(card_t *card, ct_t *ct, void *buf, u32 len)
{
/* read the tag value */
if ((*ct->iread)(card->ospriv, ct->dlpriv, ct->ioffset, buf, len) != (CsrInt32)len)
@@ -547,7 +547,7 @@ static CsrInt32 read_bytes(card_t *card, ct_t *ct, void *buf, CsrUint32 len)
} /* read_bytes() */
-static CsrInt32 read_uint(card_t *card, ct_t *ct, CsrUint32 *u, CsrUint32 len)
+static CsrInt32 read_uint(card_t *card, ct_t *ct, u32 *u, u32 len)
{
u8 buf[4];
@@ -568,7 +568,7 @@ static CsrInt32 read_uint(card_t *card, ct_t *ct, CsrUint32 *u, CsrUint32 len)
} /* read_uint() */
-static CsrUint32 write_uint16(void *buf, const CsrUint32 offset, const u16 val)
+static u32 write_uint16(void *buf, const u32 offset, const u16 val)
{
u8 *dst = (u8 *)buf + offset;
*dst++ = (u8)(val & 0xff); /* LSB first */
@@ -577,17 +577,17 @@ static CsrUint32 write_uint16(void *buf, const CsrUint32 offset, const u16 val)
}
-static CsrUint32 write_uint32(void *buf, const CsrUint32 offset, const CsrUint32 val)
+static u32 write_uint32(void *buf, const u32 offset, const u32 val)
{
(void)write_uint16(buf, offset + 0, (u16)(val & 0xffff));
(void)write_uint16(buf, offset + 2, (u16)(val >> 16));
- return sizeof(CsrUint32);
+ return sizeof(u32);
}
-static CsrUint32 write_bytes(void *buf, const CsrUint32 offset, const u8 *data, const CsrUint32 len)
+static u32 write_bytes(void *buf, const u32 offset, const u8 *data, const u32 len)
{
- CsrUint32 i;
+ u32 i;
u8 *dst = (u8 *)buf + offset;
for (i = 0; i < len; i++)
@@ -598,7 +598,7 @@ static CsrUint32 write_bytes(void *buf, const CsrUint32 offset, const u8 *data,
}
-static CsrUint32 write_tag(void *buf, const CsrUint32 offset, const CsrCharString *tag_str)
+static u32 write_tag(void *buf, const u32 offset, const CsrCharString *tag_str)
{
u8 *dst = (u8 *)buf + offset;
CsrMemCpy(dst, tag_str, 4);
@@ -606,19 +606,19 @@ static CsrUint32 write_tag(void *buf, const CsrUint32 offset, const CsrCharStrin
}
-static CsrUint32 write_chunk(void *buf, const CsrUint32 offset, const CsrCharString *tag_str, const CsrUint32 payload_len)
+static u32 write_chunk(void *buf, const u32 offset, const CsrCharString *tag_str, const u32 payload_len)
{
- CsrUint32 written = 0;
+ u32 written = 0;
written += write_tag(buf, offset, tag_str);
- written += write_uint32(buf, written + offset, (CsrUint32)payload_len);
+ written += write_uint32(buf, written + offset, (u32)payload_len);
return written;
}
-static u16 calc_checksum(void *buf, const CsrUint32 offset, const CsrUint32 bytes_len)
+static u16 calc_checksum(void *buf, const u32 offset, const u32 bytes_len)
{
- CsrUint32 i;
+ u32 i;
u8 *src = (u8 *)buf + offset;
u16 sum = 0;
u16 val;
@@ -640,10 +640,10 @@ static u16 calc_checksum(void *buf, const CsrUint32 offset, const CsrUint32 byte
#define PTDL_RESET_DATA_SIZE 20 /* Size of reset vectors PTDL */
-static CsrUint32 calc_patch_size(const xbv1_t *fwinfo)
+static u32 calc_patch_size(const xbv1_t *fwinfo)
{
s16 i;
- CsrUint32 size = 0;
+ u32 size = 0;
/*
* Work out how big an equivalent patch format file must be for this image.
@@ -673,9 +673,9 @@ static CsrUint32 calc_patch_size(const xbv1_t *fwinfo)
}
-static CsrUint32 write_xbv_header(void *buf, const CsrUint32 offset, const CsrUint32 file_payload_length)
+static u32 write_xbv_header(void *buf, const u32 offset, const u32 file_payload_length)
{
- CsrUint32 written = 0;
+ u32 written = 0;
/* The length value given to the XBV chunk is the length of all subsequent
* contents of the file, excluding the 8 byte size of the XBV1 header itself
@@ -690,9 +690,9 @@ static CsrUint32 write_xbv_header(void *buf, const CsrUint32 offset, const CsrUi
}
-static CsrUint32 write_ptch_header(void *buf, const CsrUint32 offset, const CsrUint32 fw_id)
+static u32 write_ptch_header(void *buf, const u32 offset, const u32 fw_id)
{
- CsrUint32 written = 0;
+ u32 written = 0;
/* LIST is written with a zero length, to be updated later */
written += write_chunk(buf, offset + written, (CsrCharString *)"LIST", 0);
@@ -711,10 +711,10 @@ static CsrUint32 write_ptch_header(void *buf, const CsrUint32 offset, const CsrU
#define UF_MEMPUT_MAC 0x0000
#define UF_MEMPUT_PHY 0x1000
-static CsrUint32 write_patchcmd(void *buf, const CsrUint32 offset, const CsrUint32 dst_genaddr, const u16 len)
+static u32 write_patchcmd(void *buf, const u32 offset, const u32 dst_genaddr, const u16 len)
{
- CsrUint32 written = 0;
- CsrUint32 region = (dst_genaddr >> 28);
+ u32 written = 0;
+ u32 region = (dst_genaddr >> 28);
u16 cmd_and_len = UF_MEMPUT_MAC;
if (region == UF_REGION_PHY)
@@ -739,19 +739,19 @@ static CsrUint32 write_patchcmd(void *buf, const CsrUint32 offset, const CsrUint
}
-static CsrUint32 write_fwdl_to_ptdl(void *buf, const CsrUint32 offset, fwreadfn_t readfn,
+static u32 write_fwdl_to_ptdl(void *buf, const u32 offset, fwreadfn_t readfn,
const struct FWDL *fwdl, const void *dlpriv,
- const CsrUint32 fw_id, void *fw_buf)
+ const u32 fw_id, void *fw_buf)
{
- CsrUint32 written = 0;
+ u32 written = 0;
s16 chunks = 0;
- CsrUint32 left = fwdl->dl_size; /* Bytes left in this fwdl */
- CsrUint32 dl_addr = fwdl->dl_addr; /* Target address of fwdl image on XAP */
- CsrUint32 dl_offs = fwdl->dl_offset; /* Offset of fwdl image data in source */
+ u32 left = fwdl->dl_size; /* Bytes left in this fwdl */
+ u32 dl_addr = fwdl->dl_addr; /* Target address of fwdl image on XAP */
+ u32 dl_offs = fwdl->dl_offset; /* Offset of fwdl image data in source */
u16 csum;
- CsrUint32 csum_start_offs; /* first offset to include in checksum */
- CsrUint32 sec_data_len; /* section data byte count */
- CsrUint32 sec_len; /* section data + header byte count */
+ u32 csum_start_offs; /* first offset to include in checksum */
+ u32 sec_data_len; /* section data byte count */
+ u32 sec_len; /* section data + header byte count */
/* FWDL maps to one or more PTDLs, as max size for a PTDL is 1K words */
while (left)
@@ -810,12 +810,12 @@ static CsrUint32 write_fwdl_to_ptdl(void *buf, const CsrUint32 offset, fwreadfn_
#define UF_MAC_START_CMD 0x6000 /* MAC "Set start address" command */
#define UF_PHY_START_CMD 0x7000 /* PHY "Set start address" command */
-static CsrUint32 write_reset_ptdl(void *buf, const CsrUint32 offset, const xbv1_t *fwinfo, CsrUint32 fw_id)
+static u32 write_reset_ptdl(void *buf, const u32 offset, const xbv1_t *fwinfo, u32 fw_id)
{
- CsrUint32 written = 0;
+ u32 written = 0;
u16 csum;
- CsrUint32 csum_start_offs; /* first offset to include in checksum */
- CsrUint32 sec_len; /* section data + header byte count */
+ u32 csum_start_offs; /* first offset to include in checksum */
+ u32 sec_len; /* section data + header byte count */
sec_len = SEC_CMD_LEN + PTDL_VEC_HDR_SIZE; /* Total section byte length */
@@ -871,12 +871,12 @@ static CsrUint32 write_reset_ptdl(void *buf, const CsrUint32 offset, const xbv1_
* ---------------------------------------------------------------------------
*/
CsrInt32 xbv1_read_slut(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwinfo,
- symbol_t *slut, CsrUint32 slut_len)
+ symbol_t *slut, u32 slut_len)
{
s16 i;
CsrInt32 offset;
- CsrUint32 magic;
- CsrUint32 count = 0;
+ u32 magic;
+ u32 count = 0;
ct_t ct;
if (fwinfo->mode != xbv_firmware)
@@ -916,7 +916,7 @@ CsrInt32 xbv1_read_slut(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *f
while (count < slut_len)
{
- CsrUint32 id, obj;
+ u32 id, obj;
/* Read Symbol Id */
if (read_uint(card, &ct, &id, 2))
@@ -969,16 +969,16 @@ CsrInt32 xbv1_read_slut(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *f
#define PTCH_LIST_SIZE 16 /* sizeof PTCH+FWID chunk in LIST header */
void* xbv_to_patch(card_t *card, fwreadfn_t readfn,
- const void *fw_buf, const xbv1_t *fwinfo, CsrUint32 *size)
+ const void *fw_buf, const xbv1_t *fwinfo, u32 *size)
{
void *patch_buf = NULL;
- CsrUint32 patch_buf_size;
- CsrUint32 payload_offs = 0; /* Start of XBV payload */
+ u32 patch_buf_size;
+ u32 payload_offs = 0; /* Start of XBV payload */
s16 i;
- CsrUint32 patch_offs = 0;
- CsrUint32 list_len_offs = 0; /* Offset of PTDL LIST length parameter */
- CsrUint32 ptdl_start_offs = 0; /* Offset of first PTDL chunk */
- CsrUint32 fw_id;
+ u32 patch_offs = 0;
+ u32 list_len_offs = 0; /* Offset of PTDL LIST length parameter */
+ u32 ptdl_start_offs = 0; /* Offset of first PTDL chunk */
+ u32 fw_id;
void *rdbuf;
if (!fw_buf || !fwinfo || !card)
diff --git a/drivers/staging/csr/csr_wifi_hip_xbv.h b/drivers/staging/csr/csr_wifi_hip_xbv.h
index abf6e4b83a7..3e3771e15d9 100644
--- a/drivers/staging/csr/csr_wifi_hip_xbv.h
+++ b/drivers/staging/csr/csr_wifi_hip_xbv.h
@@ -33,39 +33,39 @@ extern "C" {
struct VMEQ
{
- CsrUint32 addr;
+ u32 addr;
u16 mask;
u16 value;
};
struct VAND
{
- CsrUint32 first;
- CsrUint32 count;
+ u32 first;
+ u32 count;
};
struct VERS
{
- CsrUint32 num_vand;
+ u32 num_vand;
};
struct FWDL
{
- CsrUint32 dl_addr;
- CsrUint32 dl_size;
- CsrUint32 dl_offset;
+ u32 dl_addr;
+ u32 dl_size;
+ u32 dl_offset;
};
struct FWOV
{
- CsrUint32 dl_size;
- CsrUint32 dl_offset;
+ u32 dl_size;
+ u32 dl_offset;
};
struct PTDL
{
- CsrUint32 dl_size;
- CsrUint32 dl_offset;
+ u32 dl_size;
+ u32 dl_offset;
};
#define MAX_VMEQ 64
@@ -90,11 +90,11 @@ typedef struct
/* Parts of a Firmware XBV1 */
struct VMEQ vmeq[MAX_VMEQ];
- CsrUint32 num_vmeq;
+ u32 num_vmeq;
struct VAND vand[MAX_VAND];
struct VERS vers;
- CsrUint32 slut_addr;
+ u32 slut_addr;
/* F/W download image, possibly more than one part */
struct FWDL fwdl[MAX_FWDL];
@@ -105,20 +105,20 @@ typedef struct
/* Parts of a Patch XBV1 */
- CsrUint32 build_id;
+ u32 build_id;
struct PTDL ptdl[MAX_PTDL];
s16 num_ptdl;
} xbv1_t;
-typedef CsrInt32 (*fwreadfn_t)(void *ospriv, void *dlpriv, CsrUint32 offset, void *buf, CsrUint32 len);
+typedef CsrInt32 (*fwreadfn_t)(void *ospriv, void *dlpriv, u32 offset, void *buf, u32 len);
CsrResult xbv1_parse(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwinfo);
CsrInt32 xbv1_read_slut(card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwinfo,
- symbol_t *slut, CsrUint32 slut_len);
+ symbol_t *slut, u32 slut_len);
void* xbv_to_patch(card_t *card, fwreadfn_t readfn, const void *fw_buf, const xbv1_t *fwinfo,
- CsrUint32 *size);
+ u32 *size);
#ifdef __cplusplus
}
diff --git a/drivers/staging/csr/csr_wifi_lib.h b/drivers/staging/csr/csr_wifi_lib.h
index 540d93cc5cc..861e4a42ac9 100644
--- a/drivers/staging/csr/csr_wifi_lib.h
+++ b/drivers/staging/csr/csr_wifi_lib.h
@@ -76,7 +76,7 @@ CsrWifiEventCsrUint16* CsrWifiEventCsrUint16_struct(u16 primtype, u16 msgtype, C
typedef struct
{
CsrWifiFsmEvent common;
- CsrUint32 value;
+ u32 value;
} CsrWifiEventCsrUint32;
/*----------------------------------------------------------------------------*
@@ -87,7 +87,7 @@ typedef struct
* Allocates and fills in a message with the signature CsrWifiEventCsrUint32
*
*----------------------------------------------------------------------------*/
-CsrWifiEventCsrUint32* CsrWifiEventCsrUint32_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, CsrUint32 value);
+CsrWifiEventCsrUint32* CsrWifiEventCsrUint32_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, u32 value);
typedef struct
{
diff --git a/drivers/staging/csr/csr_wifi_msgconv.h b/drivers/staging/csr/csr_wifi_msgconv.h
index 72da857742a..e97aaee55ff 100644
--- a/drivers/staging/csr/csr_wifi_msgconv.h
+++ b/drivers/staging/csr/csr_wifi_msgconv.h
@@ -22,15 +22,15 @@ extern "C" {
void CsrUint16SerBigEndian(u8 *ptr, CsrSize *len, u16 v);
-void CsrUint24SerBigEndian(u8 *ptr, CsrSize *len, CsrUint32 v);
-void CsrUint32SerBigEndian(u8 *ptr, CsrSize *len, CsrUint32 v);
+void CsrUint24SerBigEndian(u8 *ptr, CsrSize *len, u32 v);
+void CsrUint32SerBigEndian(u8 *ptr, CsrSize *len, u32 v);
void CsrUint16DesBigEndian(u16 *v, u8 *buffer, CsrSize *offset);
-void CsrUint24DesBigEndian(CsrUint32 *v, u8 *buffer, CsrSize *offset);
-void CsrUint32DesBigEndian(CsrUint32 *v, u8 *buffer, CsrSize *offset);
+void CsrUint24DesBigEndian(u32 *v, u8 *buffer, CsrSize *offset);
+void CsrUint32DesBigEndian(u32 *v, u8 *buffer, CsrSize *offset);
-void CsrUint24Ser(u8 *ptr, CsrSize *len, CsrUint32 v);
-void CsrUint24Des(CsrUint32 *v, u8 *buffer, CsrSize *offset);
+void CsrUint24Ser(u8 *ptr, CsrSize *len, u32 v);
+void CsrUint24Des(u32 *v, u8 *buffer, CsrSize *offset);
CsrSize CsrWifiEventSizeof(void *msg);
diff --git a/drivers/staging/csr/csr_wifi_nme_prim.h b/drivers/staging/csr/csr_wifi_nme_prim.h
index 4aff2916995..2c7394372e1 100644
--- a/drivers/staging/csr/csr_wifi_nme_prim.h
+++ b/drivers/staging/csr/csr_wifi_nme_prim.h
@@ -336,7 +336,7 @@ typedef u16 CsrWifiNmeEncryption;
- Used to register for all available indications
*******************************************************************************/
-typedef CsrUint32 CsrWifiNmeIndications;
+typedef u32 CsrWifiNmeIndications;
#define CSR_WIFI_NME_INDICATIONS_IND_AP_STATION ((CsrWifiNmeIndications) 0x00100000)
#define CSR_WIFI_NME_INDICATIONS_IND_AP_STOP ((CsrWifiNmeIndications) 0x00200000)
#define CSR_WIFI_NME_INDICATIONS_IND_SIM_UMTS_AUTH ((CsrWifiNmeIndications) 0x01000000)
@@ -489,7 +489,7 @@ typedef u16 CsrWifiNmeEncryptionMask;
Mask type for use with the values defined by CsrWifiNmeIndications
*******************************************************************************/
-typedef CsrUint32 CsrWifiNmeIndicationsMask;
+typedef u32 CsrWifiNmeIndicationsMask;
/*******************************************************************************
NAME
@@ -501,7 +501,7 @@ typedef CsrUint32 CsrWifiNmeIndicationsMask;
specific indications
*******************************************************************************/
-typedef CsrUint32 CsrWifiNmeNmeIndicationsMask;
+typedef u32 CsrWifiNmeNmeIndicationsMask;
/*******************************************************************************
NAME
@@ -594,11 +594,11 @@ typedef struct
*******************************************************************************/
typedef struct
{
- CsrUint32 certificateLength;
+ u32 certificateLength;
u8 *certificate;
u16 privateKeyLength;
u8 *privateKey;
- CsrUint32 caCertificateLength;
+ u32 caCertificateLength;
u8 *caCertificate;
} CsrWifiNmeWapiCredentials;
@@ -711,17 +711,17 @@ typedef struct
CsrCharString *userName;
CsrCharString *userPassword;
CsrCharString *authServerUserIdentity;
- CsrUint32 clientCertificateLength;
+ u32 clientCertificateLength;
u8 *clientCertificate;
- CsrUint32 certificateAuthorityCertificateLength;
+ u32 certificateAuthorityCertificateLength;
u8 *certificateAuthorityCertificate;
u16 privateKeyLength;
u8 *privateKey;
CsrCharString *privateKeyPassword;
- CsrUint32 sessionLength;
+ u32 sessionLength;
u8 *session;
CsrBool allowPacProvisioning;
- CsrUint32 pacLength;
+ u32 pacLength;
u8 *pac;
CsrCharString *pacPassword;
} CsrWifiNmeEapCredentials;
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_prim.h b/drivers/staging/csr/csr_wifi_router_ctrl_prim.h
index 37ba5ea258e..83b9c411f5c 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_prim.h
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_prim.h
@@ -28,14 +28,14 @@ extern "C" {
typedef CsrPrim CsrWifiRouterCtrlPrim;
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteWrite)(u8 func, CsrUint32 address, u8 data);
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteRead)(u8 func, CsrUint32 address, u8 *pdata);
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioFirmwareDownload)(CsrUint32 length, const u8 *pdata);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteWrite)(u8 func, u32 address, u8 data);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteRead)(u8 func, u32 address, u8 *pdata);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioFirmwareDownload)(u32 length, const u8 *pdata);
typedef CsrResult (*CsrWifiRouterCtrlRawSdioReset)(void);
typedef CsrResult (*CsrWifiRouterCtrlRawSdioCoreDumpPrepare)(CsrBool suspendSme);
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteBlockRead)(u8 func, CsrUint32 address, u8 *pdata, CsrUint32 length);
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioGpRead16)(u8 func, CsrUint32 address, u16 *pdata);
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioGpWrite16)(u8 func, CsrUint32 address, u16 data);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteBlockRead)(u8 func, u32 address, u8 *pdata, u32 length);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioGpRead16)(u8 func, u32 address, u16 *pdata);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioGpWrite16)(u8 func, u32 address, u16 data);
/*******************************************************************************
@@ -410,7 +410,7 @@ typedef u8 CsrWifiRouterCtrlTrafficType;
DESCRIPTION
*******************************************************************************/
-typedef CsrUint32 CsrWifiRouterCtrlPeerRecordHandle;
+typedef u32 CsrWifiRouterCtrlPeerRecordHandle;
/*******************************************************************************
NAME
@@ -467,9 +467,9 @@ typedef u8 CsrWifiRouterCtrlTrafficStreamId;
*******************************************************************************/
typedef struct
{
- CsrUint32 firmwarePatch;
+ u32 firmwarePatch;
CsrCharString *smeBuild;
- CsrUint32 smeHip;
+ u32 smeHip;
} CsrWifiRouterCtrlSmeVersions;
/*******************************************************************************
@@ -510,10 +510,10 @@ typedef struct
*******************************************************************************/
typedef struct
{
- CsrUint32 etherType;
+ u32 etherType;
u8 ipType;
- CsrUint32 udpSourcePort;
- CsrUint32 udpDestPort;
+ u32 udpSourcePort;
+ u32 udpDestPort;
} CsrWifiRouterCtrlTrafficFilter;
/*******************************************************************************
@@ -534,11 +534,11 @@ typedef struct
*******************************************************************************/
typedef struct
{
- CsrUint32 rxMeanRate;
- CsrUint32 rxFramesNum;
- CsrUint32 txFramesNum;
- CsrUint32 rxBytesCount;
- CsrUint32 txBytesCount;
+ u32 rxMeanRate;
+ u32 rxFramesNum;
+ u32 txFramesNum;
+ u32 rxBytesCount;
+ u32 txBytesCount;
u8 intervals[11];
} CsrWifiRouterCtrlTrafficStats;
@@ -560,12 +560,12 @@ typedef struct
*******************************************************************************/
typedef struct
{
- CsrUint32 chipId;
- CsrUint32 chipVersion;
- CsrUint32 firmwareBuild;
- CsrUint32 firmwareHip;
+ u32 chipId;
+ u32 chipVersion;
+ u32 firmwareBuild;
+ u32 firmwareHip;
CsrCharString *routerBuild;
- CsrUint32 routerHip;
+ u32 routerHip;
} CsrWifiRouterCtrlVersions;
/*******************************************************************************
@@ -1044,7 +1044,7 @@ typedef struct
{
CsrWifiFsmEvent common;
CsrWifiRouterCtrlRequestorInfo clientData;
- CsrUint32 dataLength;
+ u32 dataLength;
u8 *data;
} CsrWifiRouterCtrlWifiOnReq;
diff --git a/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c b/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
index f46a5362462..6befbd8b0c6 100644
--- a/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
+++ b/drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
@@ -611,10 +611,10 @@ CsrSize CsrWifiRouterCtrlTrafficConfigReqSizeof(void *msg)
bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
bufferSize += 2; /* CsrWifiRouterCtrlTrafficConfigType primitive->trafficConfigType */
bufferSize += 2; /* u16 primitive->config.packetFilter */
- bufferSize += 4; /* CsrUint32 primitive->config.customFilter.etherType */
+ bufferSize += 4; /* u32 primitive->config.customFilter.etherType */
bufferSize += 1; /* u8 primitive->config.customFilter.ipType */
- bufferSize += 4; /* CsrUint32 primitive->config.customFilter.udpSourcePort */
- bufferSize += 4; /* CsrUint32 primitive->config.customFilter.udpDestPort */
+ bufferSize += 4; /* u32 primitive->config.customFilter.udpSourcePort */
+ bufferSize += 4; /* u32 primitive->config.customFilter.udpDestPort */
return bufferSize;
}
@@ -628,10 +628,10 @@ u8* CsrWifiRouterCtrlTrafficConfigReqSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
CsrUint16Ser(ptr, len, (u16) primitive->trafficConfigType);
CsrUint16Ser(ptr, len, (u16) primitive->config.packetFilter);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->config.customFilter.etherType);
+ CsrUint32Ser(ptr, len, (u32) primitive->config.customFilter.etherType);
CsrUint8Ser(ptr, len, (u8) primitive->config.customFilter.ipType);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->config.customFilter.udpSourcePort);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->config.customFilter.udpDestPort);
+ CsrUint32Ser(ptr, len, (u32) primitive->config.customFilter.udpSourcePort);
+ CsrUint32Ser(ptr, len, (u32) primitive->config.customFilter.udpDestPort);
return(ptr);
}
@@ -647,10 +647,10 @@ void* CsrWifiRouterCtrlTrafficConfigReqDes(u8 *buffer, CsrSize length)
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
CsrUint16Des((u16 *) &primitive->trafficConfigType, buffer, &offset);
CsrUint16Des((u16 *) &primitive->config.packetFilter, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->config.customFilter.etherType, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->config.customFilter.etherType, buffer, &offset);
CsrUint8Des((u8 *) &primitive->config.customFilter.ipType, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->config.customFilter.udpSourcePort, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->config.customFilter.udpDestPort, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->config.customFilter.udpSourcePort, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->config.customFilter.udpDestPort, buffer, &offset);
return primitive;
}
@@ -663,7 +663,7 @@ CsrSize CsrWifiRouterCtrlWifiOnReqSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 10) */
bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
- bufferSize += 4; /* CsrUint32 primitive->dataLength */
+ bufferSize += 4; /* u32 primitive->dataLength */
bufferSize += primitive->dataLength; /* u8 primitive->data */
return bufferSize;
}
@@ -675,7 +675,7 @@ u8* CsrWifiRouterCtrlWifiOnReqSer(u8 *ptr, CsrSize *len, void *msg)
*len = 0;
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->dataLength);
+ CsrUint32Ser(ptr, len, (u32) primitive->dataLength);
if (primitive->dataLength)
{
CsrMemCpySer(ptr, len, (const void *) primitive->data, ((u16) (primitive->dataLength)));
@@ -692,7 +692,7 @@ void* CsrWifiRouterCtrlWifiOnReqDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->dataLength, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->dataLength, buffer, &offset);
if (primitive->dataLength)
{
primitive->data = (u8 *)CsrPmemAlloc(primitive->dataLength);
@@ -731,9 +731,9 @@ CsrSize CsrWifiRouterCtrlWifiOnResSizeof(void *msg)
bufferSize += 6; /* u8 primitive->stationMacAddress[i1].a[6] */
}
}
- bufferSize += 4; /* CsrUint32 primitive->smeVersions.firmwarePatch */
+ bufferSize += 4; /* u32 primitive->smeVersions.firmwarePatch */
bufferSize += (primitive->smeVersions.smeBuild?CsrStrLen(primitive->smeVersions.smeBuild) : 0) + 1; /* CsrCharString* primitive->smeVersions.smeBuild (0 byte len + 1 for NULL Term) */
- bufferSize += 4; /* CsrUint32 primitive->smeVersions.smeHip */
+ bufferSize += 4; /* u32 primitive->smeVersions.smeHip */
bufferSize += 1; /* CsrBool primitive->scheduledInterrupt */
return bufferSize;
}
@@ -754,9 +754,9 @@ u8* CsrWifiRouterCtrlWifiOnResSer(u8 *ptr, CsrSize *len, void *msg)
CsrMemCpySer(ptr, len, (const void *) primitive->stationMacAddress[i1].a, ((u16) (6)));
}
}
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->smeVersions.firmwarePatch);
+ CsrUint32Ser(ptr, len, (u32) primitive->smeVersions.firmwarePatch);
CsrCharStringSer(ptr, len, primitive->smeVersions.smeBuild);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->smeVersions.smeHip);
+ CsrUint32Ser(ptr, len, (u32) primitive->smeVersions.smeHip);
CsrUint8Ser(ptr, len, (u8) primitive->scheduledInterrupt);
return(ptr);
}
@@ -779,9 +779,9 @@ void* CsrWifiRouterCtrlWifiOnResDes(u8 *buffer, CsrSize length)
CsrMemCpyDes(primitive->stationMacAddress[i1].a, buffer, &offset, ((u16) (6)));
}
}
- CsrUint32Des((CsrUint32 *) &primitive->smeVersions.firmwarePatch, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->smeVersions.firmwarePatch, buffer, &offset);
CsrCharStringDes(&primitive->smeVersions.smeBuild, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->smeVersions.smeHip, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->smeVersions.smeHip, buffer, &offset);
CsrUint8Des((u8 *) &primitive->scheduledInterrupt, buffer, &offset);
return primitive;
@@ -953,7 +953,7 @@ u8* CsrWifiRouterCtrlPeerDelReqSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->peerRecordHandle);
+ CsrUint32Ser(ptr, len, (u32) primitive->peerRecordHandle);
return(ptr);
}
@@ -967,7 +967,7 @@ void* CsrWifiRouterCtrlPeerDelReqDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->peerRecordHandle, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->peerRecordHandle, buffer, &offset);
return primitive;
}
@@ -993,7 +993,7 @@ u8* CsrWifiRouterCtrlPeerUpdateReqSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->peerRecordHandle);
+ CsrUint32Ser(ptr, len, (u32) primitive->peerRecordHandle);
CsrUint16Ser(ptr, len, (u16) primitive->powersaveMode);
return(ptr);
}
@@ -1008,7 +1008,7 @@ void* CsrWifiRouterCtrlPeerUpdateReqDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->peerRecordHandle, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->peerRecordHandle, buffer, &offset);
CsrUint16Des((u16 *) &primitive->powersaveMode, buffer, &offset);
return primitive;
@@ -1734,11 +1734,11 @@ CsrSize CsrWifiRouterCtrlTrafficSampleIndSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 38) */
bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
bufferSize += 2; /* u16 primitive->interfaceTag */
- bufferSize += 4; /* CsrUint32 primitive->stats.rxMeanRate */
- bufferSize += 4; /* CsrUint32 primitive->stats.rxFramesNum */
- bufferSize += 4; /* CsrUint32 primitive->stats.txFramesNum */
- bufferSize += 4; /* CsrUint32 primitive->stats.rxBytesCount */
- bufferSize += 4; /* CsrUint32 primitive->stats.txBytesCount */
+ bufferSize += 4; /* u32 primitive->stats.rxMeanRate */
+ bufferSize += 4; /* u32 primitive->stats.rxFramesNum */
+ bufferSize += 4; /* u32 primitive->stats.txFramesNum */
+ bufferSize += 4; /* u32 primitive->stats.rxBytesCount */
+ bufferSize += 4; /* u32 primitive->stats.txBytesCount */
bufferSize += 11; /* u8 primitive->stats.intervals[11] */
return bufferSize;
}
@@ -1751,11 +1751,11 @@ u8* CsrWifiRouterCtrlTrafficSampleIndSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->stats.rxMeanRate);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->stats.rxFramesNum);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->stats.txFramesNum);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->stats.rxBytesCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->stats.txBytesCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->stats.rxMeanRate);
+ CsrUint32Ser(ptr, len, (u32) primitive->stats.rxFramesNum);
+ CsrUint32Ser(ptr, len, (u32) primitive->stats.txFramesNum);
+ CsrUint32Ser(ptr, len, (u32) primitive->stats.rxBytesCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->stats.txBytesCount);
CsrMemCpySer(ptr, len, (const void *) primitive->stats.intervals, ((u16) (11)));
return(ptr);
}
@@ -1770,11 +1770,11 @@ void* CsrWifiRouterCtrlTrafficSampleIndDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->stats.rxMeanRate, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->stats.rxFramesNum, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->stats.txFramesNum, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->stats.rxBytesCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->stats.txBytesCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->stats.rxMeanRate, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->stats.rxFramesNum, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->stats.txFramesNum, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->stats.rxBytesCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->stats.txBytesCount, buffer, &offset);
CsrMemCpyDes(primitive->stats.intervals, buffer, &offset, ((u16) (11)));
return primitive;
@@ -1789,12 +1789,12 @@ CsrSize CsrWifiRouterCtrlWifiOnIndSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 27) */
bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
bufferSize += 2; /* CsrResult primitive->status */
- bufferSize += 4; /* CsrUint32 primitive->versions.chipId */
- bufferSize += 4; /* CsrUint32 primitive->versions.chipVersion */
- bufferSize += 4; /* CsrUint32 primitive->versions.firmwareBuild */
- bufferSize += 4; /* CsrUint32 primitive->versions.firmwareHip */
+ bufferSize += 4; /* u32 primitive->versions.chipId */
+ bufferSize += 4; /* u32 primitive->versions.chipVersion */
+ bufferSize += 4; /* u32 primitive->versions.firmwareBuild */
+ bufferSize += 4; /* u32 primitive->versions.firmwareHip */
bufferSize += (primitive->versions.routerBuild?CsrStrLen(primitive->versions.routerBuild) : 0) + 1; /* CsrCharString* primitive->versions.routerBuild (0 byte len + 1 for NULL Term) */
- bufferSize += 4; /* CsrUint32 primitive->versions.routerHip */
+ bufferSize += 4; /* u32 primitive->versions.routerHip */
return bufferSize;
}
@@ -1806,12 +1806,12 @@ u8* CsrWifiRouterCtrlWifiOnIndSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
CsrUint16Ser(ptr, len, (u16) primitive->status);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.chipId);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.chipVersion);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.firmwareBuild);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.firmwareHip);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.chipId);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.chipVersion);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.firmwareBuild);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.firmwareHip);
CsrCharStringSer(ptr, len, primitive->versions.routerBuild);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.routerHip);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.routerHip);
return(ptr);
}
@@ -1825,12 +1825,12 @@ void* CsrWifiRouterCtrlWifiOnIndDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
CsrUint16Des((u16 *) &primitive->status, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.chipId, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.chipVersion, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.firmwareBuild, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.firmwareHip, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.chipId, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.chipVersion, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.firmwareBuild, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.firmwareHip, buffer, &offset);
CsrCharStringDes(&primitive->versions.routerBuild, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.routerHip, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.routerHip, buffer, &offset);
return primitive;
}
@@ -2067,7 +2067,7 @@ u8* CsrWifiRouterCtrlPeerAddCfmSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, (u16) primitive->clientData);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrMemCpySer(ptr, len, (const void *) primitive->peerMacAddress.a, ((u16) (6)));
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->peerRecordHandle);
+ CsrUint32Ser(ptr, len, (u32) primitive->peerRecordHandle);
CsrUint16Ser(ptr, len, (u16) primitive->status);
return(ptr);
}
@@ -2083,7 +2083,7 @@ void* CsrWifiRouterCtrlPeerAddCfmDes(u8 *buffer, CsrSize length)
CsrUint16Des((u16 *) &primitive->clientData, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrMemCpyDes(primitive->peerMacAddress.a, buffer, &offset, ((u16) (6)));
- CsrUint32Des((CsrUint32 *) &primitive->peerRecordHandle, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->peerRecordHandle, buffer, &offset);
CsrUint16Des((u16 *) &primitive->status, buffer, &offset);
return primitive;
diff --git a/drivers/staging/csr/csr_wifi_router_prim.h b/drivers/staging/csr/csr_wifi_router_prim.h
index c281f0264af..3b9ce1a39fa 100644
--- a/drivers/staging/csr/csr_wifi_router_prim.h
+++ b/drivers/staging/csr/csr_wifi_router_prim.h
@@ -81,7 +81,7 @@ typedef u8 CsrWifiRouterEncapsulation;
CSR_WIFI_ROUTER_OUI_BT -
*******************************************************************************/
-typedef CsrUint32 CsrWifiRouterOui;
+typedef u32 CsrWifiRouterOui;
#define CSR_WIFI_ROUTER_OUI_RFC_1042 ((CsrWifiRouterOui) 0x000000)
#define CSR_WIFI_ROUTER_OUI_BT ((CsrWifiRouterOui) 0x001958)
@@ -183,7 +183,7 @@ typedef struct
u16 interfaceTag;
CsrWifiRouterEncapsulation encapsulation;
u16 protocol;
- CsrUint32 oui;
+ u32 oui;
} CsrWifiRouterMaPacketSubscribeReq;
/*******************************************************************************
@@ -248,7 +248,7 @@ typedef struct
u8 *frame;
CsrWifiRouterFrameFreeFunction freeFunction;
CsrWifiRouterPriority priority;
- CsrUint32 hostTag;
+ u32 hostTag;
CsrBool cfmRequested;
} CsrWifiRouterMaPacketReq;
@@ -305,7 +305,7 @@ typedef struct
{
CsrWifiFsmEvent common;
u16 interfaceTag;
- CsrUint32 hostTag;
+ u32 hostTag;
CsrWifiRouterPriority priority;
CsrWifiMacAddress peerMacAddress;
} CsrWifiRouterMaPacketCancelReq;
@@ -381,7 +381,7 @@ typedef struct
CsrWifiFsmEvent common;
u16 interfaceTag;
CsrResult result;
- CsrUint32 hostTag;
+ u32 hostTag;
u16 rate;
} CsrWifiRouterMaPacketCfm;
diff --git a/drivers/staging/csr/csr_wifi_router_serialize.c b/drivers/staging/csr/csr_wifi_router_serialize.c
index 7711fa55fa9..c90bf7db1a7 100644
--- a/drivers/staging/csr/csr_wifi_router_serialize.c
+++ b/drivers/staging/csr/csr_wifi_router_serialize.c
@@ -32,7 +32,7 @@ CsrSize CsrWifiRouterMaPacketSubscribeReqSizeof(void *msg)
bufferSize += 2; /* u16 primitive->interfaceTag */
bufferSize += 1; /* CsrWifiRouterEncapsulation primitive->encapsulation */
bufferSize += 2; /* u16 primitive->protocol */
- bufferSize += 4; /* CsrUint32 primitive->oui */
+ bufferSize += 4; /* u32 primitive->oui */
return bufferSize;
}
@@ -45,7 +45,7 @@ u8* CsrWifiRouterMaPacketSubscribeReqSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrUint8Ser(ptr, len, (u8) primitive->encapsulation);
CsrUint16Ser(ptr, len, (u16) primitive->protocol);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->oui);
+ CsrUint32Ser(ptr, len, (u32) primitive->oui);
return(ptr);
}
@@ -60,7 +60,7 @@ void* CsrWifiRouterMaPacketSubscribeReqDes(u8 *buffer, CsrSize length)
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrUint8Des((u8 *) &primitive->encapsulation, buffer, &offset);
CsrUint16Des((u16 *) &primitive->protocol, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->oui, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->oui, buffer, &offset);
return primitive;
}
@@ -78,7 +78,7 @@ CsrSize CsrWifiRouterMaPacketReqSizeof(void *msg)
bufferSize += primitive->frameLength; /* u8 primitive->frame */
bufferSize += 4; /* CsrWifiRouterFrameFreeFunction primitive->freeFunction */
bufferSize += 2; /* CsrWifiRouterPriority primitive->priority */
- bufferSize += 4; /* CsrUint32 primitive->hostTag */
+ bufferSize += 4; /* u32 primitive->hostTag */
bufferSize += 1; /* CsrBool primitive->cfmRequested */
return bufferSize;
}
@@ -98,7 +98,7 @@ u8* CsrWifiRouterMaPacketReqSer(u8 *ptr, CsrSize *len, void *msg)
}
CsrUint32Ser(ptr, len, 0); /* Special for Function Pointers... primitive->freeFunction */
CsrUint16Ser(ptr, len, (u16) primitive->priority);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->hostTag);
+ CsrUint32Ser(ptr, len, (u32) primitive->hostTag);
CsrUint8Ser(ptr, len, (u8) primitive->cfmRequested);
return(ptr);
}
@@ -126,7 +126,7 @@ void* CsrWifiRouterMaPacketReqDes(u8 *buffer, CsrSize length)
primitive->freeFunction = NULL; /* Special for Function Pointers... */
offset += 4;
CsrUint16Des((u16 *) &primitive->priority, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->hostTag, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->hostTag, buffer, &offset);
CsrUint8Des((u8 *) &primitive->cfmRequested, buffer, &offset);
return primitive;
@@ -186,7 +186,7 @@ CsrSize CsrWifiRouterMaPacketCancelReqSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 17) */
bufferSize += 2; /* u16 primitive->interfaceTag */
- bufferSize += 4; /* CsrUint32 primitive->hostTag */
+ bufferSize += 4; /* u32 primitive->hostTag */
bufferSize += 2; /* CsrWifiRouterPriority primitive->priority */
bufferSize += 6; /* u8 primitive->peerMacAddress.a[6] */
return bufferSize;
@@ -199,7 +199,7 @@ u8* CsrWifiRouterMaPacketCancelReqSer(u8 *ptr, CsrSize *len, void *msg)
*len = 0;
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->hostTag);
+ CsrUint32Ser(ptr, len, (u32) primitive->hostTag);
CsrUint16Ser(ptr, len, (u16) primitive->priority);
CsrMemCpySer(ptr, len, (const void *) primitive->peerMacAddress.a, ((u16) (6)));
return(ptr);
@@ -214,7 +214,7 @@ void* CsrWifiRouterMaPacketCancelReqDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->hostTag, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->hostTag, buffer, &offset);
CsrUint16Des((u16 *) &primitive->priority, buffer, &offset);
CsrMemCpyDes(primitive->peerMacAddress.a, buffer, &offset, ((u16) (6)));
@@ -307,7 +307,7 @@ CsrSize CsrWifiRouterMaPacketCfmSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 13) */
bufferSize += 2; /* u16 primitive->interfaceTag */
bufferSize += 2; /* CsrResult primitive->result */
- bufferSize += 4; /* CsrUint32 primitive->hostTag */
+ bufferSize += 4; /* u32 primitive->hostTag */
bufferSize += 2; /* u16 primitive->rate */
return bufferSize;
}
@@ -320,7 +320,7 @@ u8* CsrWifiRouterMaPacketCfmSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrUint16Ser(ptr, len, (u16) primitive->result);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->hostTag);
+ CsrUint32Ser(ptr, len, (u32) primitive->hostTag);
CsrUint16Ser(ptr, len, (u16) primitive->rate);
return(ptr);
}
@@ -335,7 +335,7 @@ void* CsrWifiRouterMaPacketCfmDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrUint16Des((u16 *) &primitive->result, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->hostTag, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->hostTag, buffer, &offset);
CsrUint16Des((u16 *) &primitive->rate, buffer, &offset);
return primitive;
diff --git a/drivers/staging/csr/csr_wifi_router_transport.c b/drivers/staging/csr/csr_wifi_router_transport.c
index 3247b5890f6..6842ac3d1f6 100644
--- a/drivers/staging/csr/csr_wifi_router_transport.c
+++ b/drivers/staging/csr/csr_wifi_router_transport.c
@@ -198,7 +198,7 @@ static void CsrWifiRouterTransportSerialiseAndSend(u16 primType, void* msg)
}
#if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
-void CsrSchedMessagePutStringLog(CsrSchedQid q, u16 mi, void *mv, CsrUint32 line, CsrCharString *file)
+void CsrSchedMessagePutStringLog(CsrSchedQid q, u16 mi, void *mv, u32 line, CsrCharString *file)
#else
void CsrSchedMessagePut(CsrSchedQid q, u16 mi, void *mv)
#endif
diff --git a/drivers/staging/csr/csr_wifi_serialize_primitive_types.c b/drivers/staging/csr/csr_wifi_serialize_primitive_types.c
index b81e51a8c4f..5b5444a2e12 100644
--- a/drivers/staging/csr/csr_wifi_serialize_primitive_types.c
+++ b/drivers/staging/csr/csr_wifi_serialize_primitive_types.c
@@ -16,9 +16,9 @@
#include "csr_wifi_msgconv.h"
#include "csr_wifi_lib.h"
-void CsrUint24Des(CsrUint32 *v, u8 *buffer, CsrSize *offset)
+void CsrUint24Des(u32 *v, u8 *buffer, CsrSize *offset)
{
- CsrUint32 val;
+ u32 val;
val = ((buffer[(*offset) + 2] << 16) |
(buffer[(*offset) + 1] << 8) |
@@ -41,9 +41,9 @@ void CsrUint16DesBigEndian(u16 *v, u8 *buffer, CsrSize *offset)
}
-void CsrUint24DesBigEndian(CsrUint32 *v, u8 *buffer, CsrSize *offset)
+void CsrUint24DesBigEndian(u32 *v, u8 *buffer, CsrSize *offset)
{
- CsrUint32 val;
+ u32 val;
val = ((buffer[(*offset)] << 16) |
(buffer[(*offset) + 1] << 8) |
@@ -54,9 +54,9 @@ void CsrUint24DesBigEndian(CsrUint32 *v, u8 *buffer, CsrSize *offset)
}
-void CsrUint32DesBigEndian(CsrUint32 *v, u8 *buffer, CsrSize *offset)
+void CsrUint32DesBigEndian(u32 *v, u8 *buffer, CsrSize *offset)
{
- CsrUint32 val;
+ u32 val;
val = ((buffer[(*offset)] << 24) |
(buffer[(*offset) + 1] << 16) |
@@ -68,7 +68,7 @@ void CsrUint32DesBigEndian(CsrUint32 *v, u8 *buffer, CsrSize *offset)
}
-void CsrUint24Ser(u8 *ptr, CsrSize *len, CsrUint32 v)
+void CsrUint24Ser(u8 *ptr, CsrSize *len, u32 v)
{
ptr[(*len) + 2] = (u8)((v & 0x00ff0000) >> 16);
ptr[(*len) + 1] = (u8)((v & 0x0000ff00) >> 8);
@@ -88,7 +88,7 @@ void CsrUint16SerBigEndian(u8 *ptr, CsrSize *len, u16 v)
}
-void CsrUint32SerBigEndian(u8 *ptr, CsrSize *len, CsrUint32 v)
+void CsrUint32SerBigEndian(u8 *ptr, CsrSize *len, u32 v)
{
ptr[(*len)] = (u8)((v & 0xff000000) >> 24);
ptr[(*len) + 1] = (u8)((v & 0x00ff0000) >> 16);
@@ -99,7 +99,7 @@ void CsrUint32SerBigEndian(u8 *ptr, CsrSize *len, CsrUint32 v)
}
-void CsrUint24SerBigEndian(u8 *ptr, CsrSize *len, CsrUint32 v)
+void CsrUint24SerBigEndian(u8 *ptr, CsrSize *len, u32 v)
{
ptr[(*len)] = (u8)((v & 0x00ff0000) >> 16);
ptr[(*len) + 1] = (u8)((v & 0x0000ff00) >> 8);
diff --git a/drivers/staging/csr/csr_wifi_sme_prim.h b/drivers/staging/csr/csr_wifi_sme_prim.h
index 1732506e560..79bc2b23229 100644
--- a/drivers/staging/csr/csr_wifi_sme_prim.h
+++ b/drivers/staging/csr/csr_wifi_sme_prim.h
@@ -829,7 +829,7 @@ typedef u16 CsrWifiSmeIEEE80211Result;
- Used to register for all available indications
*******************************************************************************/
-typedef CsrUint32 CsrWifiSmeIndications;
+typedef u32 CsrWifiSmeIndications;
#define CSR_WIFI_SME_INDICATIONS_NONE ((CsrWifiSmeIndications) 0x00000000)
#define CSR_WIFI_SME_INDICATIONS_WIFIOFF ((CsrWifiSmeIndications) 0x00000001)
#define CSR_WIFI_SME_INDICATIONS_SCANRESULT ((CsrWifiSmeIndications) 0x00000002)
@@ -1862,7 +1862,7 @@ typedef u16 CsrWifiSmeEncryptionMask;
Mask type for use with the values defined by CsrWifiSmeIndications
*******************************************************************************/
-typedef CsrUint32 CsrWifiSmeIndicationsMask;
+typedef u32 CsrWifiSmeIndicationsMask;
/*******************************************************************************
NAME
@@ -2127,29 +2127,29 @@ typedef struct
{
u8 unifiTxDataRate;
u8 unifiRxDataRate;
- CsrUint32 dot11RetryCount;
- CsrUint32 dot11MultipleRetryCount;
- CsrUint32 dot11AckFailureCount;
- CsrUint32 dot11FrameDuplicateCount;
- CsrUint32 dot11FcsErrorCount;
- CsrUint32 dot11RtsSuccessCount;
- CsrUint32 dot11RtsFailureCount;
- CsrUint32 dot11FailedCount;
- CsrUint32 dot11TransmittedFragmentCount;
- CsrUint32 dot11TransmittedFrameCount;
- CsrUint32 dot11WepExcludedCount;
- CsrUint32 dot11WepIcvErrorCount;
- CsrUint32 dot11WepUndecryptableCount;
- CsrUint32 dot11MulticastReceivedFrameCount;
- CsrUint32 dot11MulticastTransmittedFrameCount;
- CsrUint32 dot11ReceivedFragmentCount;
- CsrUint32 dot11Rsna4WayHandshakeFailures;
- CsrUint32 dot11RsnaTkipCounterMeasuresInvoked;
- CsrUint32 dot11RsnaStatsTkipLocalMicFailures;
- CsrUint32 dot11RsnaStatsTkipReplays;
- CsrUint32 dot11RsnaStatsTkipIcvErrors;
- CsrUint32 dot11RsnaStatsCcmpReplays;
- CsrUint32 dot11RsnaStatsCcmpDecryptErrors;
+ u32 dot11RetryCount;
+ u32 dot11MultipleRetryCount;
+ u32 dot11AckFailureCount;
+ u32 dot11FrameDuplicateCount;
+ u32 dot11FcsErrorCount;
+ u32 dot11RtsSuccessCount;
+ u32 dot11RtsFailureCount;
+ u32 dot11FailedCount;
+ u32 dot11TransmittedFragmentCount;
+ u32 dot11TransmittedFrameCount;
+ u32 dot11WepExcludedCount;
+ u32 dot11WepIcvErrorCount;
+ u32 dot11WepUndecryptableCount;
+ u32 dot11MulticastReceivedFrameCount;
+ u32 dot11MulticastTransmittedFrameCount;
+ u32 dot11ReceivedFragmentCount;
+ u32 dot11Rsna4WayHandshakeFailures;
+ u32 dot11RsnaTkipCounterMeasuresInvoked;
+ u32 dot11RsnaStatsTkipLocalMicFailures;
+ u32 dot11RsnaStatsTkipReplays;
+ u32 dot11RsnaStatsTkipIcvErrors;
+ u32 dot11RsnaStatsCcmpReplays;
+ u32 dot11RsnaStatsCcmpDecryptErrors;
} CsrWifiSmeConnectionStats;
/*******************************************************************************
@@ -2450,15 +2450,15 @@ typedef struct
*******************************************************************************/
typedef struct
{
- CsrUint32 chipId;
- CsrUint32 chipVersion;
- CsrUint32 firmwareBuild;
- CsrUint32 firmwarePatch;
- CsrUint32 firmwareHip;
+ u32 chipId;
+ u32 chipVersion;
+ u32 firmwareBuild;
+ u32 firmwarePatch;
+ u32 firmwareHip;
CsrCharString *routerBuild;
- CsrUint32 routerHip;
+ u32 routerHip;
CsrCharString *smeBuild;
- CsrUint32 smeHip;
+ u32 smeHip;
} CsrWifiSmeVersions;
/*******************************************************************************
@@ -2603,8 +2603,8 @@ typedef struct
u16 currentCoexPeriodMs;
u16 currentCoexLatencyMs;
CsrBool hasBtDevice;
- CsrUint32 currentBlackoutDurationUs;
- CsrUint32 currentBlackoutPeriodUs;
+ u32 currentBlackoutDurationUs;
+ u32 currentBlackoutPeriodUs;
CsrWifiSmeCoexScheme currentCoexScheme;
} CsrWifiSmeCoexInfo;
@@ -4560,7 +4560,7 @@ typedef struct
CsrWifiFsmEvent common;
u16 interfaceTag;
CsrWifiSmeListAction action;
- CsrUint32 transactionId;
+ u32 transactionId;
CsrBool strict;
CsrWifiSmeTspecCtrlMask ctrlMask;
u16 tspecLength;
@@ -4830,7 +4830,7 @@ typedef struct
typedef struct
{
CsrWifiFsmEvent common;
- CsrUint32 dataLength;
+ u32 dataLength;
u8 *data;
} CsrWifiSmeSetReq;
@@ -6129,7 +6129,7 @@ typedef struct
{
CsrWifiFsmEvent common;
u16 interfaceTag;
- CsrUint32 transactionId;
+ u32 transactionId;
CsrWifiSmeTspecResultCode tspecResultCode;
u16 tspecLength;
u8 *tspec;
@@ -6160,7 +6160,7 @@ typedef struct
CsrWifiFsmEvent common;
u16 interfaceTag;
CsrResult status;
- CsrUint32 transactionId;
+ u32 transactionId;
CsrWifiSmeTspecResultCode tspecResultCode;
u16 tspecLength;
u8 *tspec;
@@ -6465,7 +6465,7 @@ typedef struct
typedef struct
{
CsrWifiFsmEvent common;
- CsrUint32 dataLength;
+ u32 dataLength;
u8 *data;
} CsrWifiSmeCoreDumpInd;
diff --git a/drivers/staging/csr/csr_wifi_sme_serialize.c b/drivers/staging/csr/csr_wifi_sme_serialize.c
index b5ffdce5333..53d9fa273ed 100644
--- a/drivers/staging/csr/csr_wifi_sme_serialize.c
+++ b/drivers/staging/csr/csr_wifi_sme_serialize.c
@@ -1407,7 +1407,7 @@ CsrSize CsrWifiSmeTspecReqSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 18) */
bufferSize += 2; /* u16 primitive->interfaceTag */
bufferSize += 1; /* CsrWifiSmeListAction primitive->action */
- bufferSize += 4; /* CsrUint32 primitive->transactionId */
+ bufferSize += 4; /* u32 primitive->transactionId */
bufferSize += 1; /* CsrBool primitive->strict */
bufferSize += 1; /* CsrWifiSmeTspecCtrlMask primitive->ctrlMask */
bufferSize += 2; /* u16 primitive->tspecLength */
@@ -1425,7 +1425,7 @@ u8* CsrWifiSmeTspecReqSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrUint8Ser(ptr, len, (u8) primitive->action);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->transactionId);
+ CsrUint32Ser(ptr, len, (u32) primitive->transactionId);
CsrUint8Ser(ptr, len, (u8) primitive->strict);
CsrUint8Ser(ptr, len, (u8) primitive->ctrlMask);
CsrUint16Ser(ptr, len, (u16) primitive->tspecLength);
@@ -1451,7 +1451,7 @@ void* CsrWifiSmeTspecReqDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrUint8Des((u8 *) &primitive->action, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->transactionId, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->transactionId, buffer, &offset);
CsrUint8Des((u8 *) &primitive->strict, buffer, &offset);
CsrUint8Des((u8 *) &primitive->ctrlMask, buffer, &offset);
CsrUint16Des((u16 *) &primitive->tspecLength, buffer, &offset);
@@ -1904,7 +1904,7 @@ CsrSize CsrWifiSmeSetReqSizeof(void *msg)
CsrSize bufferSize = 2;
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 8) */
- bufferSize += 4; /* CsrUint32 primitive->dataLength */
+ bufferSize += 4; /* u32 primitive->dataLength */
bufferSize += primitive->dataLength; /* u8 primitive->data */
return bufferSize;
}
@@ -1915,7 +1915,7 @@ u8* CsrWifiSmeSetReqSer(u8 *ptr, CsrSize *len, void *msg)
CsrWifiSmeSetReq *primitive = (CsrWifiSmeSetReq *)msg;
*len = 0;
CsrUint16Ser(ptr, len, primitive->common.type);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->dataLength);
+ CsrUint32Ser(ptr, len, (u32) primitive->dataLength);
if (primitive->dataLength)
{
CsrMemCpySer(ptr, len, (const void *) primitive->data, ((u16) (primitive->dataLength)));
@@ -1931,7 +1931,7 @@ void* CsrWifiSmeSetReqDes(u8 *buffer, CsrSize length)
offset = 0;
CsrUint16Des(&primitive->common.type, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->dataLength, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->dataLength, buffer, &offset);
if (primitive->dataLength)
{
primitive->data = (u8 *)CsrPmemAlloc(primitive->dataLength);
@@ -2561,8 +2561,8 @@ CsrSize CsrWifiSmeCoexInfoGetCfmSizeof(void *msg)
bufferSize += 2; /* u16 primitive->coexInfo.currentCoexPeriodMs */
bufferSize += 2; /* u16 primitive->coexInfo.currentCoexLatencyMs */
bufferSize += 1; /* CsrBool primitive->coexInfo.hasBtDevice */
- bufferSize += 4; /* CsrUint32 primitive->coexInfo.currentBlackoutDurationUs */
- bufferSize += 4; /* CsrUint32 primitive->coexInfo.currentBlackoutPeriodUs */
+ bufferSize += 4; /* u32 primitive->coexInfo.currentBlackoutDurationUs */
+ bufferSize += 4; /* u32 primitive->coexInfo.currentBlackoutPeriodUs */
bufferSize += 1; /* CsrWifiSmeCoexScheme primitive->coexInfo.currentCoexScheme */
return bufferSize;
}
@@ -2581,8 +2581,8 @@ u8* CsrWifiSmeCoexInfoGetCfmSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, (u16) primitive->coexInfo.currentCoexPeriodMs);
CsrUint16Ser(ptr, len, (u16) primitive->coexInfo.currentCoexLatencyMs);
CsrUint8Ser(ptr, len, (u8) primitive->coexInfo.hasBtDevice);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->coexInfo.currentBlackoutDurationUs);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->coexInfo.currentBlackoutPeriodUs);
+ CsrUint32Ser(ptr, len, (u32) primitive->coexInfo.currentBlackoutDurationUs);
+ CsrUint32Ser(ptr, len, (u32) primitive->coexInfo.currentBlackoutPeriodUs);
CsrUint8Ser(ptr, len, (u8) primitive->coexInfo.currentCoexScheme);
return(ptr);
}
@@ -2603,8 +2603,8 @@ void* CsrWifiSmeCoexInfoGetCfmDes(u8 *buffer, CsrSize length)
CsrUint16Des((u16 *) &primitive->coexInfo.currentCoexPeriodMs, buffer, &offset);
CsrUint16Des((u16 *) &primitive->coexInfo.currentCoexLatencyMs, buffer, &offset);
CsrUint8Des((u8 *) &primitive->coexInfo.hasBtDevice, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->coexInfo.currentBlackoutDurationUs, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->coexInfo.currentBlackoutPeriodUs, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->coexInfo.currentBlackoutDurationUs, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->coexInfo.currentBlackoutPeriodUs, buffer, &offset);
CsrUint8Des((u8 *) &primitive->coexInfo.currentCoexScheme, buffer, &offset);
return primitive;
@@ -2999,29 +2999,29 @@ CsrSize CsrWifiSmeConnectionStatsGetCfmSizeof(void *msg)
bufferSize += 2; /* CsrResult primitive->status */
bufferSize += 1; /* u8 primitive->connectionStats.unifiTxDataRate */
bufferSize += 1; /* u8 primitive->connectionStats.unifiRxDataRate */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RetryCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11MultipleRetryCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11AckFailureCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11FrameDuplicateCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11FcsErrorCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RtsSuccessCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RtsFailureCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11FailedCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11TransmittedFragmentCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11TransmittedFrameCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11WepExcludedCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11WepIcvErrorCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11WepUndecryptableCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11MulticastReceivedFrameCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11MulticastTransmittedFrameCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11ReceivedFragmentCount */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11Rsna4WayHandshakeFailures */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RsnaTkipCounterMeasuresInvoked */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RsnaStatsTkipLocalMicFailures */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RsnaStatsTkipReplays */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RsnaStatsTkipIcvErrors */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RsnaStatsCcmpReplays */
- bufferSize += 4; /* CsrUint32 primitive->connectionStats.dot11RsnaStatsCcmpDecryptErrors */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RetryCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11MultipleRetryCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11AckFailureCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11FrameDuplicateCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11FcsErrorCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RtsSuccessCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RtsFailureCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11FailedCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11TransmittedFragmentCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11TransmittedFrameCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11WepExcludedCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11WepIcvErrorCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11WepUndecryptableCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11MulticastReceivedFrameCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11MulticastTransmittedFrameCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11ReceivedFragmentCount */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11Rsna4WayHandshakeFailures */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RsnaTkipCounterMeasuresInvoked */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RsnaStatsTkipLocalMicFailures */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RsnaStatsTkipReplays */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RsnaStatsTkipIcvErrors */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RsnaStatsCcmpReplays */
+ bufferSize += 4; /* u32 primitive->connectionStats.dot11RsnaStatsCcmpDecryptErrors */
return bufferSize;
}
@@ -3035,29 +3035,29 @@ u8* CsrWifiSmeConnectionStatsGetCfmSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, (u16) primitive->status);
CsrUint8Ser(ptr, len, (u8) primitive->connectionStats.unifiTxDataRate);
CsrUint8Ser(ptr, len, (u8) primitive->connectionStats.unifiRxDataRate);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RetryCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11MultipleRetryCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11AckFailureCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11FrameDuplicateCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11FcsErrorCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RtsSuccessCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RtsFailureCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11FailedCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11TransmittedFragmentCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11TransmittedFrameCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11WepExcludedCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11WepIcvErrorCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11WepUndecryptableCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11MulticastReceivedFrameCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11MulticastTransmittedFrameCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11ReceivedFragmentCount);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11Rsna4WayHandshakeFailures);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RsnaTkipCounterMeasuresInvoked);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RsnaStatsTkipLocalMicFailures);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RsnaStatsTkipReplays);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RsnaStatsTkipIcvErrors);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RsnaStatsCcmpReplays);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->connectionStats.dot11RsnaStatsCcmpDecryptErrors);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RetryCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11MultipleRetryCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11AckFailureCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11FrameDuplicateCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11FcsErrorCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RtsSuccessCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RtsFailureCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11FailedCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11TransmittedFragmentCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11TransmittedFrameCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11WepExcludedCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11WepIcvErrorCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11WepUndecryptableCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11MulticastReceivedFrameCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11MulticastTransmittedFrameCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11ReceivedFragmentCount);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11Rsna4WayHandshakeFailures);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RsnaTkipCounterMeasuresInvoked);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RsnaStatsTkipLocalMicFailures);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RsnaStatsTkipReplays);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RsnaStatsTkipIcvErrors);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RsnaStatsCcmpReplays);
+ CsrUint32Ser(ptr, len, (u32) primitive->connectionStats.dot11RsnaStatsCcmpDecryptErrors);
return(ptr);
}
@@ -3073,29 +3073,29 @@ void* CsrWifiSmeConnectionStatsGetCfmDes(u8 *buffer, CsrSize length)
CsrUint16Des((u16 *) &primitive->status, buffer, &offset);
CsrUint8Des((u8 *) &primitive->connectionStats.unifiTxDataRate, buffer, &offset);
CsrUint8Des((u8 *) &primitive->connectionStats.unifiRxDataRate, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RetryCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11MultipleRetryCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11AckFailureCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11FrameDuplicateCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11FcsErrorCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RtsSuccessCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RtsFailureCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11FailedCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11TransmittedFragmentCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11TransmittedFrameCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11WepExcludedCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11WepIcvErrorCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11WepUndecryptableCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11MulticastReceivedFrameCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11MulticastTransmittedFrameCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11ReceivedFragmentCount, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11Rsna4WayHandshakeFailures, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RsnaTkipCounterMeasuresInvoked, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RsnaStatsTkipLocalMicFailures, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RsnaStatsTkipReplays, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RsnaStatsTkipIcvErrors, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RsnaStatsCcmpReplays, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->connectionStats.dot11RsnaStatsCcmpDecryptErrors, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RetryCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11MultipleRetryCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11AckFailureCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11FrameDuplicateCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11FcsErrorCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RtsSuccessCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RtsFailureCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11FailedCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11TransmittedFragmentCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11TransmittedFrameCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11WepExcludedCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11WepIcvErrorCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11WepUndecryptableCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11MulticastReceivedFrameCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11MulticastTransmittedFrameCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11ReceivedFragmentCount, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11Rsna4WayHandshakeFailures, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RsnaTkipCounterMeasuresInvoked, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RsnaStatsTkipLocalMicFailures, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RsnaStatsTkipReplays, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RsnaStatsTkipIcvErrors, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RsnaStatsCcmpReplays, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->connectionStats.dot11RsnaStatsCcmpDecryptErrors, buffer, &offset);
return primitive;
}
@@ -5283,7 +5283,7 @@ CsrSize CsrWifiSmeTspecIndSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 13) */
bufferSize += 2; /* u16 primitive->interfaceTag */
- bufferSize += 4; /* CsrUint32 primitive->transactionId */
+ bufferSize += 4; /* u32 primitive->transactionId */
bufferSize += 1; /* CsrWifiSmeTspecResultCode primitive->tspecResultCode */
bufferSize += 2; /* u16 primitive->tspecLength */
bufferSize += primitive->tspecLength; /* u8 primitive->tspec */
@@ -5297,7 +5297,7 @@ u8* CsrWifiSmeTspecIndSer(u8 *ptr, CsrSize *len, void *msg)
*len = 0;
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->transactionId);
+ CsrUint32Ser(ptr, len, (u32) primitive->transactionId);
CsrUint8Ser(ptr, len, (u8) primitive->tspecResultCode);
CsrUint16Ser(ptr, len, (u16) primitive->tspecLength);
if (primitive->tspecLength)
@@ -5316,7 +5316,7 @@ void* CsrWifiSmeTspecIndDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->transactionId, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->transactionId, buffer, &offset);
CsrUint8Des((u8 *) &primitive->tspecResultCode, buffer, &offset);
CsrUint16Des((u16 *) &primitive->tspecLength, buffer, &offset);
if (primitive->tspecLength)
@@ -5349,7 +5349,7 @@ CsrSize CsrWifiSmeTspecCfmSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 15) */
bufferSize += 2; /* u16 primitive->interfaceTag */
bufferSize += 2; /* CsrResult primitive->status */
- bufferSize += 4; /* CsrUint32 primitive->transactionId */
+ bufferSize += 4; /* u32 primitive->transactionId */
bufferSize += 1; /* CsrWifiSmeTspecResultCode primitive->tspecResultCode */
bufferSize += 2; /* u16 primitive->tspecLength */
bufferSize += primitive->tspecLength; /* u8 primitive->tspec */
@@ -5364,7 +5364,7 @@ u8* CsrWifiSmeTspecCfmSer(u8 *ptr, CsrSize *len, void *msg)
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->interfaceTag);
CsrUint16Ser(ptr, len, (u16) primitive->status);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->transactionId);
+ CsrUint32Ser(ptr, len, (u32) primitive->transactionId);
CsrUint8Ser(ptr, len, (u8) primitive->tspecResultCode);
CsrUint16Ser(ptr, len, (u16) primitive->tspecLength);
if (primitive->tspecLength)
@@ -5384,7 +5384,7 @@ void* CsrWifiSmeTspecCfmDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->interfaceTag, buffer, &offset);
CsrUint16Des((u16 *) &primitive->status, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->transactionId, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->transactionId, buffer, &offset);
CsrUint8Des((u8 *) &primitive->tspecResultCode, buffer, &offset);
CsrUint16Des((u16 *) &primitive->tspecLength, buffer, &offset);
if (primitive->tspecLength)
@@ -5416,15 +5416,15 @@ CsrSize CsrWifiSmeVersionsGetCfmSizeof(void *msg)
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 33) */
bufferSize += 2; /* CsrResult primitive->status */
- bufferSize += 4; /* CsrUint32 primitive->versions.chipId */
- bufferSize += 4; /* CsrUint32 primitive->versions.chipVersion */
- bufferSize += 4; /* CsrUint32 primitive->versions.firmwareBuild */
- bufferSize += 4; /* CsrUint32 primitive->versions.firmwarePatch */
- bufferSize += 4; /* CsrUint32 primitive->versions.firmwareHip */
+ bufferSize += 4; /* u32 primitive->versions.chipId */
+ bufferSize += 4; /* u32 primitive->versions.chipVersion */
+ bufferSize += 4; /* u32 primitive->versions.firmwareBuild */
+ bufferSize += 4; /* u32 primitive->versions.firmwarePatch */
+ bufferSize += 4; /* u32 primitive->versions.firmwareHip */
bufferSize += (primitive->versions.routerBuild?CsrStrLen(primitive->versions.routerBuild) : 0) + 1; /* CsrCharString* primitive->versions.routerBuild (0 byte len + 1 for NULL Term) */
- bufferSize += 4; /* CsrUint32 primitive->versions.routerHip */
+ bufferSize += 4; /* u32 primitive->versions.routerHip */
bufferSize += (primitive->versions.smeBuild?CsrStrLen(primitive->versions.smeBuild) : 0) + 1; /* CsrCharString* primitive->versions.smeBuild (0 byte len + 1 for NULL Term) */
- bufferSize += 4; /* CsrUint32 primitive->versions.smeHip */
+ bufferSize += 4; /* u32 primitive->versions.smeHip */
return bufferSize;
}
@@ -5435,15 +5435,15 @@ u8* CsrWifiSmeVersionsGetCfmSer(u8 *ptr, CsrSize *len, void *msg)
*len = 0;
CsrUint16Ser(ptr, len, primitive->common.type);
CsrUint16Ser(ptr, len, (u16) primitive->status);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.chipId);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.chipVersion);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.firmwareBuild);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.firmwarePatch);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.firmwareHip);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.chipId);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.chipVersion);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.firmwareBuild);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.firmwarePatch);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.firmwareHip);
CsrCharStringSer(ptr, len, primitive->versions.routerBuild);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.routerHip);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.routerHip);
CsrCharStringSer(ptr, len, primitive->versions.smeBuild);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->versions.smeHip);
+ CsrUint32Ser(ptr, len, (u32) primitive->versions.smeHip);
return(ptr);
}
@@ -5456,15 +5456,15 @@ void* CsrWifiSmeVersionsGetCfmDes(u8 *buffer, CsrSize length)
CsrUint16Des(&primitive->common.type, buffer, &offset);
CsrUint16Des((u16 *) &primitive->status, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.chipId, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.chipVersion, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.firmwareBuild, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.firmwarePatch, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.firmwareHip, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.chipId, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.chipVersion, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.firmwareBuild, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.firmwarePatch, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.firmwareHip, buffer, &offset);
CsrCharStringDes(&primitive->versions.routerBuild, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.routerHip, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.routerHip, buffer, &offset);
CsrCharStringDes(&primitive->versions.smeBuild, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->versions.smeHip, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->versions.smeHip, buffer, &offset);
return primitive;
}
@@ -5760,7 +5760,7 @@ CsrSize CsrWifiSmeCoreDumpIndSizeof(void *msg)
CsrSize bufferSize = 2;
/* Calculate the Size of the Serialised Data. Could be more efficient (Try 8) */
- bufferSize += 4; /* CsrUint32 primitive->dataLength */
+ bufferSize += 4; /* u32 primitive->dataLength */
bufferSize += primitive->dataLength; /* u8 primitive->data */
return bufferSize;
}
@@ -5771,7 +5771,7 @@ u8* CsrWifiSmeCoreDumpIndSer(u8 *ptr, CsrSize *len, void *msg)
CsrWifiSmeCoreDumpInd *primitive = (CsrWifiSmeCoreDumpInd *)msg;
*len = 0;
CsrUint16Ser(ptr, len, primitive->common.type);
- CsrUint32Ser(ptr, len, (CsrUint32) primitive->dataLength);
+ CsrUint32Ser(ptr, len, (u32) primitive->dataLength);
if (primitive->dataLength)
{
CsrMemCpySer(ptr, len, (const void *) primitive->data, ((u16) (primitive->dataLength)));
@@ -5787,7 +5787,7 @@ void* CsrWifiSmeCoreDumpIndDes(u8 *buffer, CsrSize length)
offset = 0;
CsrUint16Des(&primitive->common.type, buffer, &offset);
- CsrUint32Des((CsrUint32 *) &primitive->dataLength, buffer, &offset);
+ CsrUint32Des((u32 *) &primitive->dataLength, buffer, &offset);
if (primitive->dataLength)
{
primitive->data = (u8 *)CsrPmemAlloc(primitive->dataLength);
diff --git a/drivers/staging/csr/drv.c b/drivers/staging/csr/drv.c
index 5ce33296fe4..c5beb220c21 100644
--- a/drivers/staging/csr/drv.c
+++ b/drivers/staging/csr/drv.c
@@ -1318,7 +1318,7 @@ unifi_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
/* Apply scheduled interrupt mode, if requested by module param */
if (run_bh_once != -1) {
- unifi_set_interrupt_mode(priv->card, (CsrUint32)run_bh_once);
+ unifi_set_interrupt_mode(priv->card, (u32)run_bh_once);
}
priv->init_progress = UNIFI_INIT_COMPLETED;
@@ -1703,7 +1703,7 @@ unifi_poll(struct file *filp, poll_table *wait)
static void
udi_set_log_filter(ul_client_t *pcli, unifiio_filter_t *udi_filter)
{
- CsrUint32 filter_pos;
+ u32 filter_pos;
int i;
if (udi_filter->action == UfSigFil_AllOn)
@@ -1781,7 +1781,7 @@ udi_log_event(ul_client_t *pcli,
int i;
int total_len;
udi_msg_t *msgptr;
- CsrUint32 filter_pos;
+ u32 filter_pos;
#ifdef OMNICLI_LINUX_EXTRA_LOG
static volatile unsigned int printk_cpu = UINT_MAX;
unsigned long long t;
diff --git a/drivers/staging/csr/firmware.c b/drivers/staging/csr/firmware.c
index 8199ff98bbd..b8716541c6e 100644
--- a/drivers/staging/csr/firmware.c
+++ b/drivers/staging/csr/firmware.c
@@ -140,7 +140,7 @@ unifi_fw_read_stop(void *ospriv, void *dlpriv)
* ---------------------------------------------------------------------------
*/
void *
-unifi_fw_open_buffer(void *ospriv, void *fwbuf, CsrUint32 len)
+unifi_fw_open_buffer(void *ospriv, void *fwbuf, u32 len)
{
unifi_priv_t *priv = (unifi_priv_t*)ospriv;
func_enter();
@@ -197,7 +197,7 @@ void unifi_fw_close_buffer(void *ospriv, void *fwbuf)
* ---------------------------------------------------------------------------
*/
CsrInt32
-unifi_fw_read(void *ospriv, void *arg, CsrUint32 offset, void *buf, CsrUint32 len)
+unifi_fw_read(void *ospriv, void *arg, u32 offset, void *buf, u32 len)
{
const struct dlpriv *dlpriv = arg;
diff --git a/drivers/staging/csr/netdev.c b/drivers/staging/csr/netdev.c
index 947a6ec2d61..529bd9d0d47 100644
--- a/drivers/staging/csr/netdev.c
+++ b/drivers/staging/csr/netdev.c
@@ -3619,9 +3619,9 @@ static struct notifier_block uf_netdev_notifier = {
static void
process_amsdu(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_data_param_t *bulkdata)
{
- CsrUint32 offset;
- CsrUint32 length = bulkdata->d[0].data_length;
- CsrUint32 subframe_length, subframe_body_length, dot11_hdr_size;
+ u32 offset;
+ u32 length = bulkdata->d[0].data_length;
+ u32 subframe_length, subframe_body_length, dot11_hdr_size;
u8 *ptr;
bulk_data_param_t subframe_bulkdata;
u8 *dot11_hdr_ptr = (u8*)bulkdata->d[0].os_data_ptr;
diff --git a/drivers/staging/csr/sdio_mmc.c b/drivers/staging/csr/sdio_mmc.c
index 8dc91bf920c..d3fd57cdde0 100644
--- a/drivers/staging/csr/sdio_mmc.c
+++ b/drivers/staging/csr/sdio_mmc.c
@@ -144,7 +144,7 @@ csr_io_rw_direct(struct mmc_card *card, int write, uint8_t fn,
CsrResult
-CsrSdioRead8(CsrSdioFunction *function, CsrUint32 address, u8 *data)
+CsrSdioRead8(CsrSdioFunction *function, u32 address, u8 *data)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err = 0;
@@ -162,7 +162,7 @@ CsrSdioRead8(CsrSdioFunction *function, CsrUint32 address, u8 *data)
} /* CsrSdioRead8() */
CsrResult
-CsrSdioWrite8(CsrSdioFunction *function, CsrUint32 address, u8 data)
+CsrSdioWrite8(CsrSdioFunction *function, u32 address, u8 data)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err = 0;
@@ -180,7 +180,7 @@ CsrSdioWrite8(CsrSdioFunction *function, CsrUint32 address, u8 data)
} /* CsrSdioWrite8() */
CsrResult
-CsrSdioRead16(CsrSdioFunction *function, CsrUint32 address, u16 *data)
+CsrSdioRead16(CsrSdioFunction *function, u32 address, u16 *data)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err;
@@ -207,7 +207,7 @@ CsrSdioRead16(CsrSdioFunction *function, CsrUint32 address, u16 *data)
CsrResult
-CsrSdioWrite16(CsrSdioFunction *function, CsrUint32 address, u16 data)
+CsrSdioWrite16(CsrSdioFunction *function, u32 address, u16 data)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err;
@@ -234,7 +234,7 @@ CsrSdioWrite16(CsrSdioFunction *function, CsrUint32 address, u16 data)
CsrResult
-CsrSdioF0Read8(CsrSdioFunction *function, CsrUint32 address, u8 *data)
+CsrSdioF0Read8(CsrSdioFunction *function, u32 address, u8 *data)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err = 0;
@@ -256,7 +256,7 @@ CsrSdioF0Read8(CsrSdioFunction *function, CsrUint32 address, u8 *data)
} /* CsrSdioF0Read8() */
CsrResult
-CsrSdioF0Write8(CsrSdioFunction *function, CsrUint32 address, u8 data)
+CsrSdioF0Write8(CsrSdioFunction *function, u32 address, u8 data)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err = 0;
@@ -279,7 +279,7 @@ CsrSdioF0Write8(CsrSdioFunction *function, CsrUint32 address, u8 data)
CsrResult
-CsrSdioRead(CsrSdioFunction *function, CsrUint32 address, void *data, CsrUint32 length)
+CsrSdioRead(CsrSdioFunction *function, u32 address, void *data, u32 length)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err;
@@ -297,7 +297,7 @@ CsrSdioRead(CsrSdioFunction *function, CsrUint32 address, void *data, CsrUint32
} /* CsrSdioRead() */
CsrResult
-CsrSdioWrite(CsrSdioFunction *function, CsrUint32 address, const void *data, CsrUint32 length)
+CsrSdioWrite(CsrSdioFunction *function, u32 address, const void *data, u32 length)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
int err;
@@ -404,14 +404,14 @@ csr_sdio_disable_hs(struct mmc_card *card)
* ---------------------------------------------------------------------------
*/
CsrResult
-CsrSdioMaxBusClockFrequencySet(CsrSdioFunction *function, CsrUint32 maxFrequency)
+CsrSdioMaxBusClockFrequencySet(CsrSdioFunction *function, u32 maxFrequency)
{
struct sdio_func *func = (struct sdio_func *)function->priv;
struct mmc_host *host = func->card->host;
struct mmc_ios *ios = &host->ios;
unsigned int max_hz;
int err;
- CsrUint32 max_khz = maxFrequency/1000;
+ u32 max_khz = maxFrequency/1000;
if (!max_khz || max_khz > sdio_clock) {
max_khz = sdio_clock;
diff --git a/drivers/staging/csr/sme_blocking.c b/drivers/staging/csr/sme_blocking.c
index c95f1b30522..921396712a5 100644
--- a/drivers/staging/csr/sme_blocking.c
+++ b/drivers/staging/csr/sme_blocking.c
@@ -1299,7 +1299,7 @@ int sme_mgt_packet_filter_set(unifi_priv_t *priv)
}
int sme_mgt_tspec(unifi_priv_t *priv, CsrWifiSmeListAction action,
- CsrUint32 tid, CsrWifiSmeDataBlock *tspec, CsrWifiSmeDataBlock *tclas)
+ u32 tid, CsrWifiSmeDataBlock *tspec, CsrWifiSmeDataBlock *tclas)
{
int r;
diff --git a/drivers/staging/csr/sme_native.c b/drivers/staging/csr/sme_native.c
index 2e63db2bc94..f22b804e729 100644
--- a/drivers/staging/csr/sme_native.c
+++ b/drivers/staging/csr/sme_native.c
@@ -395,10 +395,10 @@ unifi_ta_indicate_sampling(void *ospriv, CsrWifiRouterCtrlTrafficStats *stats)
void
unifi_ta_indicate_l4stats(void *ospriv,
- CsrUint32 rxTcpThroughput,
- CsrUint32 txTcpThroughput,
- CsrUint32 rxUdpThroughput,
- CsrUint32 txUdpThroughput)
+ u32 rxTcpThroughput,
+ u32 txTcpThroughput,
+ u32 rxUdpThroughput,
+ u32 txUdpThroughput)
{
} /* unifi_ta_indicate_l4stats() */
diff --git a/drivers/staging/csr/sme_sys.c b/drivers/staging/csr/sme_sys.c
index 59909a4ecfa..add577186dc 100644
--- a/drivers/staging/csr/sme_sys.c
+++ b/drivers/staging/csr/sme_sys.c
@@ -1093,7 +1093,7 @@ void CsrWifiRouterCtrlWifiOnResHandler(void* drvpriv, CsrWifiFsmEvent* msg)
if (res->status == CSR_RESULT_SUCCESS)
{
int i; /* used as a loop counter */
- CsrUint32 intmode = CSR_WIFI_INTMODE_DEFAULT;
+ u32 intmode = CSR_WIFI_INTMODE_DEFAULT;
#ifdef CSR_WIFI_SPLIT_PATCH
CsrBool switching_ap_fw = FALSE;
#endif
@@ -1147,7 +1147,7 @@ void CsrWifiRouterCtrlWifiOnResHandler(void* drvpriv, CsrWifiFsmEvent* msg)
* but let module param override.
*/
if (run_bh_once != -1) {
- intmode = (CsrUint32)run_bh_once;
+ intmode = (u32)run_bh_once;
} else if (res->scheduledInterrupt) {
intmode = CSR_WIFI_INTMODE_RUN_BH_ONCE;
}
@@ -2098,7 +2098,7 @@ void CsrWifiRouterCtrlPeerDelReqHandler(void* drvpriv, CsrWifiFsmEvent* msg)
}
/* Add the new station to the station record data base */
-static int peer_add_new_record(unifi_priv_t *priv,CsrWifiRouterCtrlPeerAddReq *req,CsrUint32 *handle)
+static int peer_add_new_record(unifi_priv_t *priv,CsrWifiRouterCtrlPeerAddReq *req,u32 *handle)
{
u8 i, powerModeTemp = 0;
CsrBool freeSlotFound = FALSE;
@@ -2479,7 +2479,7 @@ void CsrWifiRouterCtrlPeerAddReqHandler(void* drvpriv,CsrWifiFsmEvent* msg)
CsrWifiRouterCtrlPeerAddReq* req = (CsrWifiRouterCtrlPeerAddReq*)msg;
CsrResult status = CSR_RESULT_SUCCESS;
unifi_priv_t *priv = (unifi_priv_t*)drvpriv;
- CsrUint32 handle = 0;
+ u32 handle = 0;
netInterface_priv_t *interfacePriv = priv->interfacePriv[req->interfaceTag];
unifi_trace(priv, UDBG2, "entering CsrWifiRouterCtrlPeerAddReqHandler \n");
diff --git a/drivers/staging/csr/sme_userspace.c b/drivers/staging/csr/sme_userspace.c
index b4a00096140..5dc7a2e376e 100644
--- a/drivers/staging/csr/sme_userspace.c
+++ b/drivers/staging/csr/sme_userspace.c
@@ -297,10 +297,10 @@ unifi_ta_indicate_sampling(void *ospriv, CsrWifiRouterCtrlTrafficStats *stats)
*/
void
unifi_ta_indicate_l4stats(void *ospriv,
- CsrUint32 rxTcpThroughput,
- CsrUint32 txTcpThroughput,
- CsrUint32 rxUdpThroughput,
- CsrUint32 txUdpThroughput)
+ u32 rxTcpThroughput,
+ u32 txTcpThroughput,
+ u32 rxUdpThroughput,
+ u32 txUdpThroughput)
{
unifi_priv_t *priv = (unifi_priv_t*)ospriv;
diff --git a/drivers/staging/csr/sme_wext.c b/drivers/staging/csr/sme_wext.c
index 51c19bb97b7..7e85907e29a 100644
--- a/drivers/staging/csr/sme_wext.c
+++ b/drivers/staging/csr/sme_wext.c
@@ -458,7 +458,7 @@ static int decode_parameter_from_string(unifi_priv_t* priv, char **str_ptr,
void *dst, int param_max_len)
{
u8 int_str[7] = "0";
- CsrUint32 param_str_len;
+ u32 param_str_len;
u8 *param_str_begin,*param_str_end;
u8 *orig_str = *str_ptr;
@@ -480,7 +480,7 @@ static int decode_parameter_from_string(unifi_priv_t* priv, char **str_ptr,
switch (param_type) {
case PARAM_TYPE_INT:
{
- CsrUint32 *pdst_int = dst,num =0;
+ u32 *pdst_int = dst,num =0;
int i,j=0;
if (param_str_len > sizeof(int_str)) {
param_str_len = sizeof(int_str);
diff --git a/drivers/staging/csr/ul_int.c b/drivers/staging/csr/ul_int.c
index 325218fc246..d71bb05239e 100644
--- a/drivers/staging/csr/ul_int.c
+++ b/drivers/staging/csr/ul_int.c
@@ -213,7 +213,7 @@ ul_deregister_client(ul_client_t *ul_client)
*/
void
logging_handler(void *ospriv,
- u8 *sigdata, CsrUint32 signal_len,
+ u8 *sigdata, u32 signal_len,
const bulk_data_param_t *bulkdata,
enum udi_log_direction direction)
{
@@ -340,7 +340,7 @@ _align_bulk_data_buffers(unifi_priv_t *priv, u8 *signal,
* The following complex casting is in place in order to eliminate 64-bit compilation warning
* "cast to/from pointer from/to integer of different size"
*/
- CsrUint32 align_offset = (CsrUint32)(long)(bulkdata->d[i].os_data_ptr) & (CSR_WIFI_ALIGN_BYTES-1);
+ u32 align_offset = (u32)(long)(bulkdata->d[i].os_data_ptr) & (CSR_WIFI_ALIGN_BYTES-1);
if (align_offset)
{
skb = (struct sk_buff*)bulkdata->d[i].os_net_buf_ptr;
diff --git a/drivers/staging/csr/unifi_clients.h b/drivers/staging/csr/unifi_clients.h
index 418cb4d92fc..df853e160ea 100644
--- a/drivers/staging/csr/unifi_clients.h
+++ b/drivers/staging/csr/unifi_clients.h
@@ -49,7 +49,7 @@ typedef void (*udi_event_t)(ul_client_t *client,
int dir);
void logging_handler(void *ospriv,
- u8 *sigdata, CsrUint32 signal_len,
+ u8 *sigdata, u32 signal_len,
const bulk_data_param_t *bulkdata,
enum udi_log_direction direction);
diff --git a/drivers/staging/csr/unifi_event.c b/drivers/staging/csr/unifi_event.c
index f1b8cc5bcf4..f5c2e77ba29 100644
--- a/drivers/staging/csr/unifi_event.c
+++ b/drivers/staging/csr/unifi_event.c
@@ -367,7 +367,7 @@ static CsrBool check_routing_pkt_data_ind(unifi_priv_t *priv,
*/
static void
unifi_process_receive_event(void *ospriv,
- u8 *sigdata, CsrUint32 siglen,
+ u8 *sigdata, u32 siglen,
const bulk_data_param_t *bulkdata)
{
unifi_priv_t *priv = (unifi_priv_t*)ospriv;
@@ -647,7 +647,7 @@ void rx_wq_handler(struct work_struct *work)
*/
void
unifi_receive_event(void *ospriv,
- u8 *sigdata, CsrUint32 siglen,
+ u8 *sigdata, u32 siglen,
const bulk_data_param_t *bulkdata)
{
#ifdef CSR_WIFI_RX_PATH_SPLIT
diff --git a/drivers/staging/csr/unifi_pdu_processing.c b/drivers/staging/csr/unifi_pdu_processing.c
index 51ce5e40b0a..7c5fb4592e9 100644
--- a/drivers/staging/csr/unifi_pdu_processing.c
+++ b/drivers/staging/csr/unifi_pdu_processing.c
@@ -33,14 +33,14 @@ static void _update_buffered_pkt_params_after_alignment(unifi_priv_t *priv, bulk
tx_buffered_packets_t* buffered_pkt)
{
struct sk_buff *skb ;
- CsrUint32 align_offset;
+ u32 align_offset;
if (priv == NULL || bulkdata == NULL || buffered_pkt == NULL){
return;
}
skb = (struct sk_buff*)bulkdata->d[0].os_net_buf_ptr;
- align_offset = (CsrUint32)(long)(bulkdata->d[0].os_data_ptr) & (CSR_WIFI_ALIGN_BYTES-1);
+ align_offset = (u32)(long)(bulkdata->d[0].os_data_ptr) & (CSR_WIFI_ALIGN_BYTES-1);
if(align_offset){
skb_pull(skb,align_offset);
}
@@ -448,7 +448,7 @@ CsrResult enque_tx_data_pdu(unifi_priv_t *priv, bulk_data_param_t *bulkdata,
}
#ifdef CSR_WIFI_REQUEUE_PACKET_TO_HAL
-CsrResult unifi_reque_ma_packet_request (void *ospriv, CsrUint32 host_tag,
+CsrResult unifi_reque_ma_packet_request (void *ospriv, u32 host_tag,
u16 txStatus, bulk_data_desc_t *bulkDataDesc)
{
CsrResult status = CSR_RESULT_SUCCESS;
@@ -859,7 +859,7 @@ void uf_handle_tim_cfm(unifi_priv_t *priv, CSR_MLME_SET_TIM_CONFIRM *cfm, u16 re
*
* ---------------------------------------------------------------------------
*/
-void update_tim(unifi_priv_t * priv, u16 aid, u8 setTim, u16 interfaceTag, CsrUint32 handle)
+void update_tim(unifi_priv_t * priv, u16 aid, u8 setTim, u16 interfaceTag, u32 handle)
{
CSR_SIGNAL signal;
CsrInt32 r;
@@ -868,7 +868,7 @@ void update_tim(unifi_priv_t * priv, u16 aid, u8 setTim, u16 interfaceTag, CsrUi
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
u8 senderIdLsb = 0;
CsrWifiRouterCtrlStaInfo_t *staRecord = NULL;
- CsrUint32 oldTimSetStatus = 0, timSetStatus = 0;
+ u32 oldTimSetStatus = 0, timSetStatus = 0;
unifi_trace(priv, UDBG5, "entering the update_tim routine\n");
@@ -1661,13 +1661,13 @@ CsrResult uf_process_ma_packet_req(unifi_priv_t *priv,
CsrWifiPacketType pktType;
int frameType = 0;
CsrBool queuePacketDozing = FALSE;
- CsrUint32 priority_q;
+ u32 priority_q;
u16 frmCtrl;
struct list_head * list = NULL; /* List to which buffered PDUs are to be enqueued*/
CsrBool setBcTim=FALSE;
netInterface_priv_t *interfacePriv;
CsrBool requeueOnSamePos = FALSE;
- CsrUint32 handle = 0xFFFFFFFF;
+ u32 handle = 0xFFFFFFFF;
unsigned long lock_flags;
unifi_trace(priv, UDBG5,
@@ -2025,7 +2025,7 @@ u8 send_multicast_frames(unifi_priv_t *priv, u16 interfaceTag)
u8 pduSent =0;
unsigned long lock_flags;
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
- CsrUint32 hostTag = 0xffffffff;
+ u32 hostTag = 0xffffffff;
func_enter();
if(!isRouterBufferEnabled(priv,UNIFI_TRAFFIC_Q_VO)) {
@@ -2116,7 +2116,7 @@ u8 send_multicast_frames(unifi_priv_t *priv, u16 interfaceTag)
}
#endif
void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata,
- CsrUint32 siglen)
+ u32 siglen)
{
#ifdef CSR_SUPPORT_SME
CSR_SIGNAL signal;
@@ -2409,7 +2409,7 @@ void uf_send_buffered_data_from_ac(unifi_priv_t *priv,
void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
{
u16 interfaceTag = GET_ACTIVE_INTERFACE_TAG(priv);
- CsrUint32 startIndex=0,endIndex=0;
+ u32 startIndex=0,endIndex=0;
CsrWifiRouterCtrlStaInfo_t * staInfo = NULL;
u8 queue;
CsrBool moreData = FALSE;
@@ -2769,7 +2769,7 @@ void uf_send_qos_null(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
CSR_TRANSMISSION_CONTROL transmissionControl = (TRANSMISSION_CONTROL_EOSP_MASK | TRANSMISSION_CONTROL_TRIGGER_MASK);
int r;
CSR_SIGNAL signal;
- CsrUint32 priority_q;
+ u32 priority_q;
CSR_RATE transmitRate = 0;
@@ -2840,7 +2840,7 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
CSR_TRANSMISSION_CONTROL transmissionControl = 0;
int r;
CSR_SIGNAL signal;
- CsrUint32 priority_q;
+ u32 priority_q;
CSR_RATE transmitRate = 0;
CSR_MA_PACKET_REQUEST *req = &signal.u.MaPacketRequest;
unsigned long lock_flags;
@@ -3481,7 +3481,7 @@ CsrWifiRouterCtrlStaInfo_t *CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(
}
/* generic function to get the station record handler from the handle */
CsrWifiRouterCtrlStaInfo_t * CsrWifiRouterCtrlGetStationRecordFromHandle(unifi_priv_t *priv,
- CsrUint32 handle,
+ u32 handle,
u16 interfaceTag)
{
netInterface_priv_t *interfacePriv;
@@ -3497,7 +3497,7 @@ CsrWifiRouterCtrlStaInfo_t * CsrWifiRouterCtrlGetStationRecordFromHandle(unifi_p
/* Function to do inactivity */
void uf_check_inactivity(unifi_priv_t *priv, u16 interfaceTag, CsrTime currentTime)
{
- CsrUint32 i;
+ u32 i;
CsrWifiRouterCtrlStaInfo_t *staInfo;
CsrTime elapsedTime; /* Time in microseconds */
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
@@ -3523,7 +3523,7 @@ void uf_check_inactivity(unifi_priv_t *priv, u16 interfaceTag, CsrTime currentTi
elapsedTime = (currentTime >= staInfo->lastActivity)?
(currentTime - staInfo->lastActivity):
- (~((CsrUint32)0) - staInfo->lastActivity + currentTime);
+ (~((u32)0) - staInfo->lastActivity + currentTime);
spin_unlock_irqrestore(&priv->staRecord_lock,lock_flags);
if (elapsedTime > MAX_INACTIVITY_INTERVAL) {
@@ -3578,7 +3578,7 @@ void uf_update_sta_activity(unifi_priv_t *priv, u16 interfaceTag, const u8 *peer
* 64 bit handling */
elapsedTime = (currentTime >= interfacePriv->last_inactivity_check)?
(currentTime - interfacePriv->last_inactivity_check):
- (~((CsrUint32)0) - interfacePriv->last_inactivity_check + currentTime);
+ (~((u32)0) - interfacePriv->last_inactivity_check + currentTime);
spin_unlock_irqrestore(&priv->staRecord_lock,lock_flags);
diff --git a/drivers/staging/csr/unifi_priv.h b/drivers/staging/csr/unifi_priv.h
index 126e7c694da..2e05015e92f 100644
--- a/drivers/staging/csr/unifi_priv.h
+++ b/drivers/staging/csr/unifi_priv.h
@@ -322,7 +322,7 @@ typedef struct CsrWifiRouterCtrlStaInfo_t {
/* Sme sends these parameters */
CsrWifiMacAddress peerMacAddress;
- CsrUint32 assignedHandle;
+ u32 assignedHandle;
CsrBool wmmOrQosEnabled;
CsrWifiAcPowersaveMode powersaveMode[MAX_ACCESS_CATOGORY];
u16 maxSpLength;
@@ -648,10 +648,10 @@ struct unifi_priv {
#endif
- CsrUint32 rxTcpThroughput;
- CsrUint32 txTcpThroughput;
- CsrUint32 rxUdpThroughput;
- CsrUint32 txUdpThroughput;
+ u32 rxTcpThroughput;
+ u32 txTcpThroughput;
+ u32 rxUdpThroughput;
+ u32 txUdpThroughput;
#ifdef CSR_WIFI_SECURITY_WAPI_ENABLE
/*Set if multicast KeyID = 1*/
@@ -749,7 +749,7 @@ typedef struct netInterface_priv
u8 mc_list[UNIFI_MAX_MULTICAST_ADDRESSES*ETH_ALEN];
/* The multicast addresses count that the thread needs to set. */
int mc_list_count;
- CsrUint32 tag;
+ u32 tag;
#ifdef CSR_SUPPORT_SME
/* (un)controlled port configuration */
unifi_port_config_t controlled_data_port;
@@ -791,7 +791,7 @@ typedef struct netInterface_priv
CSR_CLIENT_TAG m4_hostTag;
CsrBool dtimActive;
CsrBool intraBssEnabled;
- CsrUint32 multicastPduHostTag; /* Used to set the tim after getting
+ u32 multicastPduHostTag; /* Used to set the tim after getting
a confirm for it */
CsrBool bcTimSet;
CsrBool bcTimSetReqPendingFlag;
@@ -981,7 +981,7 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
#endif
CsrResult uf_process_ma_packet_req(unifi_priv_t *priv, u8 *peerMacAddress, CSR_CLIENT_TAG hostTag, u16 interfaceTag, CSR_TRANSMISSION_CONTROL transmissionControl, CSR_RATE TransmitRate, CSR_PRIORITY priority, CSR_PROCESS_ID senderId, bulk_data_param_t *bulkdata);
-void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata, CsrUint32 siglen);
+void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata, u32 siglen);
#ifdef CSR_SUPPORT_SME
void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue queue);
int uf_process_station_records_for_sending_data(unifi_priv_t *priv,u16 interfaceTag,
@@ -1053,7 +1053,7 @@ unifi_frame_ma_packet_req(unifi_priv_t *priv, CSR_PRIORITY priority,
/* handle is 6 bits to accomodate in senderId LSB (only 64 station can be associated) */
#define CSR_WIFI_BROADCAST_OR_MULTICAST_HANDLE 0x3F
-void update_tim(unifi_priv_t * priv, u16 aid, u8 setTim, u16 interfaceTag, CsrUint32 handle);
+void update_tim(unifi_priv_t * priv, u16 aid, u8 setTim, u16 interfaceTag, u32 handle);
void uf_handle_tim_cfm(unifi_priv_t *priv, CSR_MLME_SET_TIM_CONFIRM *cfm, u16 senderProcessId);
/* Clear the Peer station Record, in case of wifioff/unexpected card removal */
@@ -1082,7 +1082,7 @@ CsrWifiRouterCtrlStaInfo_t *CsrWifiRouterCtrlGetStationRecordFromPeerMacAddress(
/* Fetch the station record handler from data base for matching handle */
CsrWifiRouterCtrlStaInfo_t * CsrWifiRouterCtrlGetStationRecordFromHandle(unifi_priv_t *priv,
- CsrUint32 handle,
+ u32 handle,
u16 interfaceTag);
void uf_update_sta_activity(unifi_priv_t *priv, u16 interfaceTag, const u8 *peerMacAddress);
diff --git a/drivers/staging/csr/unifi_sme.c b/drivers/staging/csr/unifi_sme.c
index 98c9c07dadb..85ea812ef9b 100644
--- a/drivers/staging/csr/unifi_sme.c
+++ b/drivers/staging/csr/unifi_sme.c
@@ -648,7 +648,7 @@ int unifi_cfg_wmm_qos_info(unifi_priv_t *priv, unsigned char *arg)
int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg)
{
- CsrUint32 addts_tid;
+ u32 addts_tid;
u8 addts_ie_length;
u8 *addts_ie;
u8 *addts_params;
@@ -657,12 +657,12 @@ int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg)
int rc;
addts_params = (u8*)(((unifi_cfg_command_t*)arg) + 1);
- if (get_user(addts_tid, (CsrUint32*)addts_params)) {
+ if (get_user(addts_tid, (u32*)addts_params)) {
unifi_error(priv, "unifi_cfg_wmm_addts: Failed to get the argument\n");
return -EFAULT;
}
- addts_params += sizeof(CsrUint32);
+ addts_params += sizeof(u32);
if (get_user(addts_ie_length, (u8*)addts_params)) {
unifi_error(priv, "unifi_cfg_wmm_addts: Failed to get the argument\n");
return -EFAULT;
@@ -702,14 +702,14 @@ int unifi_cfg_wmm_addts(unifi_priv_t *priv, unsigned char *arg)
int unifi_cfg_wmm_delts(unifi_priv_t *priv, unsigned char *arg)
{
- CsrUint32 delts_tid;
+ u32 delts_tid;
u8 *delts_params;
CsrWifiSmeDataBlock tspec;
CsrWifiSmeDataBlock tclas;
int rc;
delts_params = (u8*)(((unifi_cfg_command_t*)arg) + 1);
- if (get_user(delts_tid, (CsrUint32*)delts_params)) {
+ if (get_user(delts_tid, (u32*)delts_params)) {
unifi_error(priv, "unifi_cfg_wmm_delts: Failed to get the argument\n");
return -EFAULT;
}
@@ -1198,7 +1198,7 @@ void uf_send_pkt_to_encrypt(struct work_struct *work)
u16 interfaceTag = interfacePriv->InterfaceTag;
unifi_priv_t *priv = interfacePriv->privPtr;
- CsrUint32 pktBulkDataLength;
+ u32 pktBulkDataLength;
u8 *pktBulkData;
unsigned long flags;
diff --git a/drivers/staging/csr/unifi_sme.h b/drivers/staging/csr/unifi_sme.h
index bfe20d3d87a..bdff0f3e915 100644
--- a/drivers/staging/csr/unifi_sme.h
+++ b/drivers/staging/csr/unifi_sme.h
@@ -166,7 +166,7 @@ int sme_mgt_sme_config_get(unifi_priv_t *priv, CsrWifiSmeStaConfig *staConfig, C
int sme_mgt_coex_info_get(unifi_priv_t *priv, CsrWifiSmeCoexInfo *coexInfo);
int sme_mgt_packet_filter_set(unifi_priv_t *priv);
int sme_mgt_tspec(unifi_priv_t *priv, CsrWifiSmeListAction action,
- CsrUint32 tid, CsrWifiSmeDataBlock *tspec, CsrWifiSmeDataBlock *tclas);
+ u32 tid, CsrWifiSmeDataBlock *tspec, CsrWifiSmeDataBlock *tclas);
#ifdef CSR_SUPPORT_WEXT
/*