Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
dhd_common.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/sched.h>
#include <linux/netdevice.h>
#include <asm/unaligned.h>
#include <defs.h>
#include <brcmu_wifi.h>
#include <brcmu_utils.h>
#include "dhd.h"
#include "dhd_bus.h"
#include "dhd_proto.h"
#include "dhd_dbg.h"

Go to the source code of this file.

Data Structures

struct  msgtrace_hdr
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define BRCM_OUI   "\x00\x10\x18"
 
#define DOT11_OUI_LEN   3
 
#define BCMILCP_BCM_SUBTYPE_EVENT   1
 
#define PKTFILTER_BUF_SIZE   2048
 
#define BRCMF_ARPOL_MODE   0xb /* agent|snoop|peer_autoreply */
 
#define MSGTRACE_VERSION   1
 
#define BRCMF_PKT_FILTER_FIXED_LEN   offsetof(struct brcmf_pkt_filter_le, u)
 
#define BRCMF_PKT_FILTER_PATTERN_FIXED_LEN   offsetof(struct brcmf_pkt_filter_pattern_le, mask_and_pattern)
 

Functions

uint brcmf_c_mkiovar (char *name, char *data, uint datalen, char *buf, uint buflen)
 
uint brcmf_c_mkiovar_bsscfg (char *name, char *data, uint datalen, char *buf, uint buflen, s32 bssidx)
 
bool brcmf_c_prec_enq (struct device *dev, struct pktq *q, struct sk_buff *pkt, int prec)
 
int brcmf_c_host_event (struct brcmf_pub *drvr, int *ifidx, void *pktdata, struct brcmf_event_msg *event, void **data_ptr)
 
void brcmf_c_pktfilter_offload_enable (struct brcmf_pub *drvr, char *arg, int enable, int master_mode)
 
void brcmf_c_pktfilter_offload_set (struct brcmf_pub *drvr, char *arg)
 
int brcmf_c_preinit_dcmds (struct brcmf_pub *drvr)
 

Variables

struct msgtrace_hdr __packed
 

Macro Definition Documentation

#define BCMILCP_BCM_SUBTYPE_EVENT   1

Definition at line 34 of file dhd_common.c.

#define BRCM_OUI   "\x00\x10\x18"

Definition at line 32 of file dhd_common.c.

#define BRCMF_ARPOL_MODE   0xb /* agent|snoop|peer_autoreply */

Definition at line 36 of file dhd_common.c.

#define BRCMF_PKT_FILTER_FIXED_LEN   offsetof(struct brcmf_pkt_filter_le, u)

Definition at line 40 of file dhd_common.c.

#define BRCMF_PKT_FILTER_PATTERN_FIXED_LEN   offsetof(struct brcmf_pkt_filter_pattern_le, mask_and_pattern)

Definition at line 41 of file dhd_common.c.

#define DOT11_OUI_LEN   3

Definition at line 33 of file dhd_common.c.

#define MSGTRACE_VERSION   1

Definition at line 38 of file dhd_common.c.

#define PKTFILTER_BUF_SIZE   2048

Definition at line 35 of file dhd_common.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 17 of file dhd_common.c.

Function Documentation

int brcmf_c_host_event ( struct brcmf_pub drvr,
int ifidx,
void pktdata,
struct brcmf_event_msg event,
void **  data_ptr 
)

Definition at line 487 of file dhd_common.c.

uint brcmf_c_mkiovar ( char name,
char data,
uint  datalen,
char buf,
uint  buflen 
)

Definition at line 71 of file dhd_common.c.

uint brcmf_c_mkiovar_bsscfg ( char name,
char data,
uint  datalen,
char buf,
uint  buflen,
s32  bssidx 
)

Definition at line 92 of file dhd_common.c.

void brcmf_c_pktfilter_offload_enable ( struct brcmf_pub drvr,
char arg,
int  enable,
int  master_mode 
)

Definition at line 607 of file dhd_common.c.

void brcmf_c_pktfilter_offload_set ( struct brcmf_pub drvr,
char arg 
)

Definition at line 681 of file dhd_common.c.

bool brcmf_c_prec_enq ( struct device dev,
struct pktq q,
struct sk_buff pkt,
int  prec 
)

Definition at line 137 of file dhd_common.c.

int brcmf_c_preinit_dcmds ( struct brcmf_pub drvr)

Definition at line 853 of file dhd_common.c.

Variable Documentation