Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bcmsdh_sdmmc.c File Reference
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/mmc/sdio.h>
#include <linux/mmc/core.h>
#include <linux/mmc/sdio_func.h>
#include <linux/mmc/sdio_ids.h>
#include <linux/mmc/card.h>
#include <linux/suspend.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <net/cfg80211.h>
#include <defs.h>
#include <brcm_hw_ids.h>
#include <brcmu_utils.h>
#include <brcmu_wifi.h>
#include "sdio_host.h"
#include "dhd_dbg.h"
#include "dhd_bus.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SDIO_VENDOR_ID_BROADCOM   0x02d0
 
#define DMA_ALIGN_MASK   0x03
 
#define SDIO_DEVICE_ID_BROADCOM_43241   0x4324
 
#define SDIO_DEVICE_ID_BROADCOM_4329   0x4329
 
#define SDIO_DEVICE_ID_BROADCOM_4330   0x4330
 
#define SDIO_DEVICE_ID_BROADCOM_4334   0x4334
 
#define SDIO_FUNC1_BLOCKSIZE   64
 
#define SDIO_FUNC2_BLOCKSIZE   512
 

Functions

 MODULE_DEVICE_TABLE (sdio, brcmf_sdmmc_ids)
 
int brcmf_sdioh_request_byte (struct brcmf_sdio_dev *sdiodev, uint rw, uint func, uint regaddr, u8 *byte)
 
int brcmf_sdioh_request_word (struct brcmf_sdio_dev *sdiodev, uint rw, uint func, uint addr, u32 *word, uint nbytes)
 
int brcmf_sdioh_request_chain (struct brcmf_sdio_dev *sdiodev, uint fix_inc, uint write, uint func, uint addr, struct sk_buff_head *pktq)
 
int brcmf_sdioh_request_buffer (struct brcmf_sdio_dev *sdiodev, uint fix_inc, uint write, uint func, uint addr, struct sk_buff *pkt)
 
int brcmf_sdioh_attach (struct brcmf_sdio_dev *sdiodev)
 
void brcmf_sdioh_detach (struct brcmf_sdio_dev *sdiodev)
 
void brcmf_sdio_exit (void)
 
void brcmf_sdio_init (void)
 

Macro Definition Documentation

#define DMA_ALIGN_MASK   0x03

Definition at line 43 of file bcmsdh_sdmmc.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 17 of file bcmsdh_sdmmc.c.

#define SDIO_DEVICE_ID_BROADCOM_43241   0x4324

Definition at line 45 of file bcmsdh_sdmmc.c.

#define SDIO_DEVICE_ID_BROADCOM_4329   0x4329

Definition at line 46 of file bcmsdh_sdmmc.c.

#define SDIO_DEVICE_ID_BROADCOM_4330   0x4330

Definition at line 47 of file bcmsdh_sdmmc.c.

#define SDIO_DEVICE_ID_BROADCOM_4334   0x4334

Definition at line 48 of file bcmsdh_sdmmc.c.

#define SDIO_FUNC1_BLOCKSIZE   64

Definition at line 50 of file bcmsdh_sdmmc.c.

#define SDIO_FUNC2_BLOCKSIZE   512

Definition at line 51 of file bcmsdh_sdmmc.c.

#define SDIO_VENDOR_ID_BROADCOM   0x02d0

Definition at line 41 of file bcmsdh_sdmmc.c.

Function Documentation

void brcmf_sdio_exit ( void  )

Definition at line 663 of file bcmsdh_sdmmc.c.

void brcmf_sdio_init ( void  )

Definition at line 670 of file bcmsdh_sdmmc.c.

int brcmf_sdioh_attach ( struct brcmf_sdio_dev sdiodev)

Definition at line 387 of file bcmsdh_sdmmc.c.

void brcmf_sdioh_detach ( struct brcmf_sdio_dev sdiodev)

Definition at line 418 of file bcmsdh_sdmmc.c.

int brcmf_sdioh_request_buffer ( struct brcmf_sdio_dev sdiodev,
uint  fix_inc,
uint  write,
uint  func,
uint  addr,
struct sk_buff pkt 
)

Definition at line 294 of file bcmsdh_sdmmc.c.

int brcmf_sdioh_request_byte ( struct brcmf_sdio_dev sdiodev,
uint  rw,
uint  func,
uint  regaddr,
u8 byte 
)

Definition at line 141 of file bcmsdh_sdmmc.c.

int brcmf_sdioh_request_chain ( struct brcmf_sdio_dev sdiodev,
uint  fix_inc,
uint  write,
uint  func,
uint  addr,
struct sk_buff_head pktq 
)

Definition at line 249 of file bcmsdh_sdmmc.c.

int brcmf_sdioh_request_word ( struct brcmf_sdio_dev sdiodev,
uint  rw,
uint  func,
uint  addr,
u32 word,
uint  nbytes 
)

Definition at line 175 of file bcmsdh_sdmmc.c.

MODULE_DEVICE_TABLE ( sdio  ,
brcmf_sdmmc_ids   
)