Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bcmsdh.c File Reference
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/export.h>
#include <linux/pci.h>
#include <linux/pci_ids.h>
#include <linux/sched.h>
#include <linux/completion.h>
#include <linux/mmc/sdio.h>
#include <linux/mmc/sdio_func.h>
#include <linux/mmc/card.h>
#include <defs.h>
#include <brcm_hw_ids.h>
#include <brcmu_utils.h>
#include <brcmu_wifi.h>
#include <soc.h>
#include "dhd_bus.h"
#include "dhd_dbg.h"
#include "sdio_host.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SDIOH_API_ACCESS_RETRY_LIMIT   2
 

Functions

int brcmf_sdio_intr_register (struct brcmf_sdio_dev *sdiodev)
 
int brcmf_sdio_intr_unregister (struct brcmf_sdio_dev *sdiodev)
 
int brcmf_sdcard_set_sbaddr_window (struct brcmf_sdio_dev *sdiodev, u32 address)
 
int brcmf_sdio_regrw_helper (struct brcmf_sdio_dev *sdiodev, u32 addr, void *data, bool write)
 
u8 brcmf_sdio_regrb (struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret)
 
u32 brcmf_sdio_regrl (struct brcmf_sdio_dev *sdiodev, u32 addr, int *ret)
 
void brcmf_sdio_regwb (struct brcmf_sdio_dev *sdiodev, u32 addr, u8 data, int *ret)
 
void brcmf_sdio_regwl (struct brcmf_sdio_dev *sdiodev, u32 addr, u32 data, int *ret)
 
int brcmf_sdcard_recv_buf (struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, u8 *buf, uint nbytes)
 
int brcmf_sdcard_recv_pkt (struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, struct sk_buff *pkt)
 
int brcmf_sdcard_recv_chain (struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, struct sk_buff_head *pktq)
 
int brcmf_sdcard_send_buf (struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, u8 *buf, uint nbytes)
 
int brcmf_sdcard_send_pkt (struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, struct sk_buff *pkt)
 
int brcmf_sdcard_rwdata (struct brcmf_sdio_dev *sdiodev, uint rw, u32 addr, u8 *buf, uint nbytes)
 
int brcmf_sdcard_abort (struct brcmf_sdio_dev *sdiodev, uint fn)
 
int brcmf_sdio_probe (struct brcmf_sdio_dev *sdiodev)
 
 EXPORT_SYMBOL (brcmf_sdio_probe)
 
int brcmf_sdio_remove (struct brcmf_sdio_dev *sdiodev)
 
 EXPORT_SYMBOL (brcmf_sdio_remove)
 
void brcmf_sdio_wdtmr_enable (struct brcmf_sdio_dev *sdiodev, bool enable)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file bcmsdh.c.

#define SDIOH_API_ACCESS_RETRY_LIMIT   2

Definition at line 40 of file bcmsdh.c.

Function Documentation

int brcmf_sdcard_abort ( struct brcmf_sdio_dev sdiodev,
uint  fn 
)

Definition at line 507 of file bcmsdh.c.

int brcmf_sdcard_recv_buf ( struct brcmf_sdio_dev sdiodev,
u32  addr,
uint  fn,
uint  flags,
u8 buf,
uint  nbytes 
)

Definition at line 335 of file bcmsdh.c.

int brcmf_sdcard_recv_chain ( struct brcmf_sdio_dev sdiodev,
u32  addr,
uint  fn,
uint  flags,
struct sk_buff_head pktq 
)

Definition at line 384 of file bcmsdh.c.

int brcmf_sdcard_recv_pkt ( struct brcmf_sdio_dev sdiodev,
u32  addr,
uint  fn,
uint  flags,
struct sk_buff pkt 
)

Definition at line 357 of file bcmsdh.c.

int brcmf_sdcard_rwdata ( struct brcmf_sdio_dev sdiodev,
uint  rw,
u32  addr,
u8 buf,
uint  nbytes 
)

Definition at line 475 of file bcmsdh.c.

int brcmf_sdcard_send_buf ( struct brcmf_sdio_dev sdiodev,
u32  addr,
uint  fn,
uint  flags,
u8 buf,
uint  nbytes 
)

Definition at line 412 of file bcmsdh.c.

int brcmf_sdcard_send_pkt ( struct brcmf_sdio_dev sdiodev,
u32  addr,
uint  fn,
uint  flags,
struct sk_buff pkt 
)

Definition at line 434 of file bcmsdh.c.

int brcmf_sdcard_set_sbaddr_window ( struct brcmf_sdio_dev sdiodev,
u32  address 
)

Definition at line 158 of file bcmsdh.c.

int brcmf_sdio_intr_register ( struct brcmf_sdio_dev sdiodev)

Definition at line 132 of file bcmsdh.c.

int brcmf_sdio_intr_unregister ( struct brcmf_sdio_dev sdiodev)

Definition at line 144 of file bcmsdh.c.

int brcmf_sdio_probe ( struct brcmf_sdio_dev sdiodev)

Definition at line 522 of file bcmsdh.c.

u8 brcmf_sdio_regrb ( struct brcmf_sdio_dev sdiodev,
u32  addr,
int ret 
)

Definition at line 246 of file bcmsdh.c.

u32 brcmf_sdio_regrl ( struct brcmf_sdio_dev sdiodev,
u32  addr,
int ret 
)

Definition at line 263 of file bcmsdh.c.

int brcmf_sdio_regrw_helper ( struct brcmf_sdio_dev sdiodev,
u32  addr,
void data,
bool  write 
)

Definition at line 189 of file bcmsdh.c.

void brcmf_sdio_regwb ( struct brcmf_sdio_dev sdiodev,
u32  addr,
u8  data,
int ret 
)

Definition at line 280 of file bcmsdh.c.

void brcmf_sdio_regwl ( struct brcmf_sdio_dev sdiodev,
u32  addr,
u32  data,
int ret 
)

Definition at line 294 of file bcmsdh.c.

int brcmf_sdio_remove ( struct brcmf_sdio_dev sdiodev)

Definition at line 552 of file bcmsdh.c.

void brcmf_sdio_wdtmr_enable ( struct brcmf_sdio_dev sdiodev,
bool  enable 
)

Definition at line 567 of file bcmsdh.c.

EXPORT_SYMBOL ( brcmf_sdio_probe  )
EXPORT_SYMBOL ( brcmf_sdio_remove  )