Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sdio_chip.h File Reference

Go to the source code of this file.

Data Structures

struct  chip_core_info
 
struct  chip_info
 
struct  sbconfig
 

Macros

#define CORE_CC_REG(base, field)   (base + offsetof(struct chipcregs, field))
 
#define CORE_BUS_REG(base, field)   (base + offsetof(struct sdpcmd_regs, field))
 
#define CORE_SB(base, field)   (base + SBCONFIGOFF + offsetof(struct sbconfig, field))
 
#define SBSDIO_FORCE_ALP   0x01
 
#define SBSDIO_FORCE_HT   0x02
 
#define SBSDIO_FORCE_ILP   0x04
 
#define SBSDIO_ALP_AVAIL_REQ   0x08
 
#define SBSDIO_HT_AVAIL_REQ   0x10
 
#define SBSDIO_FORCE_HW_CLKREQ_OFF   0x20
 
#define SBSDIO_ALP_AVAIL   0x40
 
#define SBSDIO_HT_AVAIL   0x80
 
#define SBSDIO_AVBITS   (SBSDIO_HT_AVAIL | SBSDIO_ALP_AVAIL)
 
#define SBSDIO_ALPAV(regval)   ((regval) & SBSDIO_AVBITS)
 
#define SBSDIO_HTAV(regval)   (((regval) & SBSDIO_AVBITS) == SBSDIO_AVBITS)
 
#define SBSDIO_ALPONLY(regval)   (SBSDIO_ALPAV(regval) && !SBSDIO_HTAV(regval))
 
#define SBSDIO_CLKAV(regval, alponly)   (SBSDIO_ALPAV(regval) && (alponly ? 1 : SBSDIO_HTAV(regval)))
 
#define BRCMF_MAX_CORENUM   6
 

Functions

int brcmf_sdio_chip_attach (struct brcmf_sdio_dev *sdiodev, struct chip_info **ci_ptr, u32 regs)
 
void brcmf_sdio_chip_detach (struct chip_info **ci_ptr)
 
void brcmf_sdio_chip_drivestrengthinit (struct brcmf_sdio_dev *sdiodev, struct chip_info *ci, u32 drivestrength)
 
u8 brcmf_sdio_chip_getinfidx (struct chip_info *ci, u16 coreid)
 

Macro Definition Documentation

#define BRCMF_MAX_CORENUM   6

Definition at line 55 of file sdio_chip.h.

#define CORE_BUS_REG (   base,
  field 
)    (base + offsetof(struct sdpcmd_regs, field))

Definition at line 26 of file sdio_chip.h.

#define CORE_CC_REG (   base,
  field 
)    (base + offsetof(struct chipcregs, field))

Definition at line 24 of file sdio_chip.h.

#define CORE_SB (   base,
  field 
)    (base + SBCONFIGOFF + offsetof(struct sbconfig, field))

Definition at line 28 of file sdio_chip.h.

#define SBSDIO_ALP_AVAIL   0x40

Definition at line 45 of file sdio_chip.h.

#define SBSDIO_ALP_AVAIL_REQ   0x08

Definition at line 39 of file sdio_chip.h.

#define SBSDIO_ALPAV (   regval)    ((regval) & SBSDIO_AVBITS)

Definition at line 49 of file sdio_chip.h.

#define SBSDIO_ALPONLY (   regval)    (SBSDIO_ALPAV(regval) && !SBSDIO_HTAV(regval))

Definition at line 51 of file sdio_chip.h.

#define SBSDIO_AVBITS   (SBSDIO_HT_AVAIL | SBSDIO_ALP_AVAIL)

Definition at line 48 of file sdio_chip.h.

#define SBSDIO_CLKAV (   regval,
  alponly 
)    (SBSDIO_ALPAV(regval) && (alponly ? 1 : SBSDIO_HTAV(regval)))

Definition at line 52 of file sdio_chip.h.

#define SBSDIO_FORCE_ALP   0x01

Definition at line 33 of file sdio_chip.h.

#define SBSDIO_FORCE_HT   0x02

Definition at line 35 of file sdio_chip.h.

#define SBSDIO_FORCE_HW_CLKREQ_OFF   0x20

Definition at line 43 of file sdio_chip.h.

#define SBSDIO_FORCE_ILP   0x04

Definition at line 37 of file sdio_chip.h.

#define SBSDIO_HT_AVAIL   0x80

Definition at line 47 of file sdio_chip.h.

#define SBSDIO_HT_AVAIL_REQ   0x10

Definition at line 41 of file sdio_chip.h.

#define SBSDIO_HTAV (   regval)    (((regval) & SBSDIO_AVBITS) == SBSDIO_AVBITS)

Definition at line 50 of file sdio_chip.h.

Function Documentation

int brcmf_sdio_chip_attach ( struct brcmf_sdio_dev sdiodev,
struct chip_info **  ci_ptr,
u32  regs 
)

Definition at line 547 of file sdio_chip.c.

void brcmf_sdio_chip_detach ( struct chip_info **  ci_ptr)

Definition at line 584 of file sdio_chip.c.

void brcmf_sdio_chip_drivestrengthinit ( struct brcmf_sdio_dev sdiodev,
struct chip_info *  ci,
u32  drivestrength 
)

Definition at line 602 of file sdio_chip.c.

u8 brcmf_sdio_chip_getinfidx ( struct chip_info *  ci,
u16  coreid 
)

Definition at line 76 of file sdio_chip.c.