Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Enumerations | Functions
csr_wifi_hip_unifi_udi.h File Reference
#include "csr_wifi_hip_unifi.h"
#include "csr_wifi_hip_signals.h"

Go to the source code of this file.

Macros

#define UNIFI_SNPRINTF_RET(buf_p, remain, written)
 

Typedefs

typedef void(* udi_func_t )(void *ospriv, u8 *sigdata, u32 signal_len, const bulk_data_param_t *bulkdata, enum udi_log_direction dir)
 

Enumerations

enum  udi_log_direction { UDI_LOG_FROM_HOST = 0x0000, UDI_LOG_TO_HOST = 0x0001 }
 

Functions

CsrResult unifi_set_udi_hook (card_t *card, udi_func_t udi_fn)
 
CsrResult unifi_remove_udi_hook (card_t *card, udi_func_t udi_fn)
 
s32 unifi_print_status (card_t *card, char *str, s32 *remain)
 

Macro Definition Documentation

#define UNIFI_SNPRINTF_RET (   buf_p,
  remain,
  written 
)
Value:
do { \
if (written >= remain) { \
if (remain >= 2) { \
buf_p[remain - 2] = '\n'; \
buf_p[remain - 1] = 0; \
} \
buf_p += remain; \
remain = 0; \
} else if (written > 0) { \
buf_p += written; \
remain -= written; \
} \
} while (0)

Definition at line 56 of file csr_wifi_hip_unifi_udi.h.

Typedef Documentation

typedef void(* udi_func_t)(void *ospriv, u8 *sigdata, u32 signal_len, const bulk_data_param_t *bulkdata, enum udi_log_direction dir)

Definition at line 40 of file csr_wifi_hip_unifi_udi.h.

Enumeration Type Documentation

Enumerator:
UDI_LOG_FROM_HOST 
UDI_LOG_TO_HOST 

Definition at line 34 of file csr_wifi_hip_unifi_udi.h.

Function Documentation

s32 unifi_print_status ( card_t card,
char str,
s32 remain 
)

Definition at line 44 of file csr_wifi_hip_udi.c.

CsrResult unifi_remove_udi_hook ( card_t card,
udi_func_t  udi_fn 
)

Definition at line 2136 of file csr_wifi_hip_card_sdio.c.

CsrResult unifi_set_udi_hook ( card_t card,
udi_func_t  udi_fn 
)

Definition at line 2105 of file csr_wifi_hip_card_sdio.c.