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

Go to the source code of this file.

Macros

#define SDC_CCR   (PKUNITY_SDC_BASE + 0x0000)
 
#define SDC_SRR   (PKUNITY_SDC_BASE + 0x0004)
 
#define SDC_ARGUMENT   (PKUNITY_SDC_BASE + 0x0008)
 
#define SDC_COMMAND   (PKUNITY_SDC_BASE + 0x000C)
 
#define SDC_BLOCKSIZE   (PKUNITY_SDC_BASE + 0x0010)
 
#define SDC_BLOCKCOUNT   (PKUNITY_SDC_BASE + 0x0014)
 
#define SDC_TMR   (PKUNITY_SDC_BASE + 0x0018)
 
#define SDC_RES0   (PKUNITY_SDC_BASE + 0x001C)
 
#define SDC_RES1   (PKUNITY_SDC_BASE + 0x0020)
 
#define SDC_RES2   (PKUNITY_SDC_BASE + 0x0024)
 
#define SDC_RES3   (PKUNITY_SDC_BASE + 0x0028)
 
#define SDC_RTCR   (PKUNITY_SDC_BASE + 0x002C)
 
#define SDC_ISR   (PKUNITY_SDC_BASE + 0x0030)
 
#define SDC_ISMR   (PKUNITY_SDC_BASE + 0x0034)
 
#define SDC_RXFIFO   (PKUNITY_SDC_BASE + 0x0038)
 
#define SDC_TXFIFO   (PKUNITY_SDC_BASE + 0x003C)
 
#define SDC_CCR_CLKEN   FIELD(1, 1, 2)
 
#define SDC_CCR_PDIV(v)   FIELD((v), 8, 8)
 
#define SDC_SRR_ENABLE   FIELD(0, 1, 0)
 
#define SDC_SRR_DISABLE   FIELD(1, 1, 0)
 
#define SDC_COMMAND_RESTYPE_MASK   FMASK(2, 0)
 
#define SDC_COMMAND_RESTYPE_NONE   FIELD(0, 2, 0)
 
#define SDC_COMMAND_RESTYPE_LONG   FIELD(1, 2, 0)
 
#define SDC_COMMAND_RESTYPE_SHORT   FIELD(2, 2, 0)
 
#define SDC_COMMAND_RESTYPE_SHORTBUSY   FIELD(3, 2, 0)
 
#define SDC_COMMAND_DATAREADY   FIELD(1, 1, 2)
 
#define SDC_COMMAND_CMDEN   FIELD(1, 1, 3)
 
#define SDC_COMMAND_CMDINDEX(v)   FIELD((v), 6, 5)
 
#define SDC_BLOCKSIZE_BSMASK(v)   FIELD((v), 11, 0)
 
#define SDC_BLOCKCOUNT_BCMASK(v)   FIELD((v), 12, 0)
 
#define SDC_TMR_WTH_1BIT   FIELD(0, 1, 0)
 
#define SDC_TMR_WTH_4BIT   FIELD(1, 1, 0)
 
#define SDC_TMR_DIR_READ   FIELD(0, 1, 1)
 
#define SDC_TMR_DIR_WRITE   FIELD(1, 1, 1)
 
#define SDC_IR_MASK   FMASK(13, 0)
 
#define SDC_IR_RESTIMEOUT   FIELD(1, 1, 0)
 
#define SDC_IR_WRITECRC   FIELD(1, 1, 1)
 
#define SDC_IR_READCRC   FIELD(1, 1, 2)
 
#define SDC_IR_TXFIFOREAD   FIELD(1, 1, 3)
 
#define SDC_IR_RXFIFOWRITE   FIELD(1, 1, 4)
 
#define SDC_IR_READTIMEOUT   FIELD(1, 1, 5)
 
#define SDC_IR_DATACOMPLETE   FIELD(1, 1, 6)
 
#define SDC_IR_CMDCOMPLETE   FIELD(1, 1, 7)
 
#define SDC_IR_RXFIFOFULL   FIELD(1, 1, 8)
 
#define SDC_IR_RXFIFOEMPTY   FIELD(1, 1, 9)
 
#define SDC_IR_TXFIFOFULL   FIELD(1, 1, 10)
 
#define SDC_IR_TXFIFOEMPTY   FIELD(1, 1, 11)
 
#define SDC_IR_ENDCMDWITHRES   FIELD(1, 1, 12)
 

Macro Definition Documentation

#define SDC_ARGUMENT   (PKUNITY_SDC_BASE + 0x0008)

Definition at line 15 of file regs-sdc.h.

#define SDC_BLOCKCOUNT   (PKUNITY_SDC_BASE + 0x0014)

Definition at line 27 of file regs-sdc.h.

#define SDC_BLOCKCOUNT_BCMASK (   v)    FIELD((v), 12, 0)

Definition at line 124 of file regs-sdc.h.

#define SDC_BLOCKSIZE   (PKUNITY_SDC_BASE + 0x0010)

Definition at line 23 of file regs-sdc.h.

#define SDC_BLOCKSIZE_BSMASK (   v)    FIELD((v), 11, 0)

Definition at line 120 of file regs-sdc.h.

#define SDC_CCR   (PKUNITY_SDC_BASE + 0x0000)

Definition at line 7 of file regs-sdc.h.

#define SDC_CCR_CLKEN   FIELD(1, 1, 2)

Definition at line 72 of file regs-sdc.h.

#define SDC_CCR_PDIV (   v)    FIELD((v), 8, 8)

Definition at line 76 of file regs-sdc.h.

#define SDC_COMMAND   (PKUNITY_SDC_BASE + 0x000C)

Definition at line 19 of file regs-sdc.h.

#define SDC_COMMAND_CMDEN   FIELD(1, 1, 3)

Definition at line 111 of file regs-sdc.h.

#define SDC_COMMAND_CMDINDEX (   v)    FIELD((v), 6, 5)

Definition at line 115 of file regs-sdc.h.

#define SDC_COMMAND_DATAREADY   FIELD(1, 1, 2)

Definition at line 110 of file regs-sdc.h.

#define SDC_COMMAND_RESTYPE_LONG   FIELD(1, 2, 0)

Definition at line 98 of file regs-sdc.h.

#define SDC_COMMAND_RESTYPE_MASK   FMASK(2, 0)

Definition at line 90 of file regs-sdc.h.

#define SDC_COMMAND_RESTYPE_NONE   FIELD(0, 2, 0)

Definition at line 94 of file regs-sdc.h.

#define SDC_COMMAND_RESTYPE_SHORT   FIELD(2, 2, 0)

Definition at line 102 of file regs-sdc.h.

#define SDC_COMMAND_RESTYPE_SHORTBUSY   FIELD(3, 2, 0)

Definition at line 106 of file regs-sdc.h.

#define SDC_IR_CMDCOMPLETE   FIELD(1, 1, 7)

Definition at line 151 of file regs-sdc.h.

#define SDC_IR_DATACOMPLETE   FIELD(1, 1, 6)

Definition at line 150 of file regs-sdc.h.

#define SDC_IR_ENDCMDWITHRES   FIELD(1, 1, 12)

Definition at line 156 of file regs-sdc.h.

#define SDC_IR_MASK   FMASK(13, 0)

Definition at line 143 of file regs-sdc.h.

#define SDC_IR_READCRC   FIELD(1, 1, 2)

Definition at line 146 of file regs-sdc.h.

#define SDC_IR_READTIMEOUT   FIELD(1, 1, 5)

Definition at line 149 of file regs-sdc.h.

#define SDC_IR_RESTIMEOUT   FIELD(1, 1, 0)

Definition at line 144 of file regs-sdc.h.

#define SDC_IR_RXFIFOEMPTY   FIELD(1, 1, 9)

Definition at line 153 of file regs-sdc.h.

#define SDC_IR_RXFIFOFULL   FIELD(1, 1, 8)

Definition at line 152 of file regs-sdc.h.

#define SDC_IR_RXFIFOWRITE   FIELD(1, 1, 4)

Definition at line 148 of file regs-sdc.h.

#define SDC_IR_TXFIFOEMPTY   FIELD(1, 1, 11)

Definition at line 155 of file regs-sdc.h.

#define SDC_IR_TXFIFOFULL   FIELD(1, 1, 10)

Definition at line 154 of file regs-sdc.h.

#define SDC_IR_TXFIFOREAD   FIELD(1, 1, 3)

Definition at line 147 of file regs-sdc.h.

#define SDC_IR_WRITECRC   FIELD(1, 1, 1)

Definition at line 145 of file regs-sdc.h.

#define SDC_ISMR   (PKUNITY_SDC_BASE + 0x0034)

Definition at line 59 of file regs-sdc.h.

#define SDC_ISR   (PKUNITY_SDC_BASE + 0x0030)

Definition at line 55 of file regs-sdc.h.

#define SDC_RES0   (PKUNITY_SDC_BASE + 0x001C)

Definition at line 35 of file regs-sdc.h.

#define SDC_RES1   (PKUNITY_SDC_BASE + 0x0020)

Definition at line 39 of file regs-sdc.h.

#define SDC_RES2   (PKUNITY_SDC_BASE + 0x0024)

Definition at line 43 of file regs-sdc.h.

#define SDC_RES3   (PKUNITY_SDC_BASE + 0x0028)

Definition at line 47 of file regs-sdc.h.

#define SDC_RTCR   (PKUNITY_SDC_BASE + 0x002C)

Definition at line 51 of file regs-sdc.h.

#define SDC_RXFIFO   (PKUNITY_SDC_BASE + 0x0038)

Definition at line 63 of file regs-sdc.h.

#define SDC_SRR   (PKUNITY_SDC_BASE + 0x0004)

Definition at line 11 of file regs-sdc.h.

#define SDC_SRR_DISABLE   FIELD(1, 1, 0)

Definition at line 85 of file regs-sdc.h.

#define SDC_SRR_ENABLE   FIELD(0, 1, 0)

Definition at line 81 of file regs-sdc.h.

#define SDC_TMR   (PKUNITY_SDC_BASE + 0x0018)

Definition at line 31 of file regs-sdc.h.

#define SDC_TMR_DIR_READ   FIELD(0, 1, 1)

Definition at line 137 of file regs-sdc.h.

#define SDC_TMR_DIR_WRITE   FIELD(1, 1, 1)

Definition at line 141 of file regs-sdc.h.

#define SDC_TMR_WTH_1BIT   FIELD(0, 1, 0)

Definition at line 129 of file regs-sdc.h.

#define SDC_TMR_WTH_4BIT   FIELD(1, 1, 0)

Definition at line 133 of file regs-sdc.h.

#define SDC_TXFIFO   (PKUNITY_SDC_BASE + 0x003C)

Definition at line 67 of file regs-sdc.h.