Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
bcm63xx_dev_spi.h File Reference
#include <linux/types.h>
#include <bcm63xx_io.h>
#include <bcm63xx_regs.h>

Go to the source code of this file.

Data Structures

struct  bcm63xx_spi_pdata
 

Macros

#define __GEN_SPI_RSET_BASE(__cpu, __rset)
 
#define __GEN_SPI_RSET(__cpu)
 
#define __GEN_SPI_REGS_TABLE(__cpu)
 

Enumerations

enum  bcm63xx_regs_spi {
  SPI_CMD, SPI_INT_STATUS, SPI_INT_MASK_ST, SPI_INT_MASK,
  SPI_ST, SPI_CLK_CFG, SPI_FILL_BYTE, SPI_MSG_TAIL,
  SPI_RX_TAIL, SPI_MSG_CTL, SPI_MSG_DATA, SPI_RX_DATA
}
 

Functions

int __init bcm63xx_spi_register (void)
 

Macro Definition Documentation

#define __GEN_SPI_REGS_TABLE (   __cpu)
Value:
[SPI_CMD] = SPI_## __cpu ##_CMD, \
[SPI_INT_STATUS] = SPI_## __cpu ##_INT_STATUS, \
[SPI_INT_MASK_ST] = SPI_## __cpu ##_INT_MASK_ST, \
[SPI_INT_MASK] = SPI_## __cpu ##_INT_MASK, \
[SPI_ST] = SPI_## __cpu ##_ST, \
[SPI_CLK_CFG] = SPI_## __cpu ##_CLK_CFG, \
[SPI_FILL_BYTE] = SPI_## __cpu ##_FILL_BYTE, \
[SPI_MSG_TAIL] = SPI_## __cpu ##_MSG_TAIL, \
[SPI_RX_TAIL] = SPI_## __cpu ##_RX_TAIL, \
[SPI_MSG_CTL] = SPI_## __cpu ##_MSG_CTL, \
[SPI_MSG_DATA] = SPI_## __cpu ##_MSG_DATA, \
[SPI_RX_DATA] = SPI_## __cpu ##_RX_DATA,

Definition at line 54 of file bcm63xx_dev_spi.h.

#define __GEN_SPI_RSET (   __cpu)
Value:
switch (reg) { \
__GEN_SPI_RSET_BASE(__cpu, CMD) \
__GEN_SPI_RSET_BASE(__cpu, INT_STATUS) \
__GEN_SPI_RSET_BASE(__cpu, INT_MASK_ST) \
__GEN_SPI_RSET_BASE(__cpu, INT_MASK) \
__GEN_SPI_RSET_BASE(__cpu, ST) \
__GEN_SPI_RSET_BASE(__cpu, CLK_CFG) \
__GEN_SPI_RSET_BASE(__cpu, FILL_BYTE) \
__GEN_SPI_RSET_BASE(__cpu, MSG_TAIL) \
__GEN_SPI_RSET_BASE(__cpu, RX_TAIL) \
__GEN_SPI_RSET_BASE(__cpu, MSG_CTL) \
__GEN_SPI_RSET_BASE(__cpu, MSG_DATA) \
__GEN_SPI_RSET_BASE(__cpu, RX_DATA) \
}

Definition at line 38 of file bcm63xx_dev_spi.h.

#define __GEN_SPI_RSET_BASE (   __cpu,
  __rset 
)
Value:
case SPI_## __rset: \
return SPI_## __cpu ##_## __rset;

Definition at line 34 of file bcm63xx_dev_spi.h.

Enumeration Type Documentation

Enumerator:
SPI_CMD 
SPI_INT_STATUS 
SPI_INT_MASK_ST 
SPI_INT_MASK 
SPI_ST 
SPI_CLK_CFG 
SPI_FILL_BYTE 
SPI_MSG_TAIL 
SPI_RX_TAIL 
SPI_MSG_CTL 
SPI_MSG_DATA 
SPI_RX_DATA 

Definition at line 19 of file bcm63xx_dev_spi.h.

Function Documentation

int __init bcm63xx_spi_register ( void  )

Definition at line 86 of file dev-spi.c.