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

Go to the source code of this file.

Data Structures

struct  wbsd_host
 

Macros

#define LOCK_CODE   0xAA
 
#define WBSD_CONF_SWRST   0x02
 
#define WBSD_CONF_DEVICE   0x07
 
#define WBSD_CONF_ID_HI   0x20
 
#define WBSD_CONF_ID_LO   0x21
 
#define WBSD_CONF_POWER   0x22
 
#define WBSD_CONF_PME   0x23
 
#define WBSD_CONF_PMES   0x24
 
#define WBSD_CONF_ENABLE   0x30
 
#define WBSD_CONF_PORT_HI   0x60
 
#define WBSD_CONF_PORT_LO   0x61
 
#define WBSD_CONF_IRQ   0x70
 
#define WBSD_CONF_DRQ   0x74
 
#define WBSD_CONF_PINS   0xF0
 
#define DEVICE_SD   0x03
 
#define WBSD_PINS_DAT3_HI   0x20
 
#define WBSD_PINS_DAT3_OUT   0x10
 
#define WBSD_PINS_GP11_HI   0x04
 
#define WBSD_PINS_DETECT_GP11   0x02
 
#define WBSD_PINS_DETECT_DAT3   0x01
 
#define WBSD_CMDR   0x00
 
#define WBSD_DFR   0x01
 
#define WBSD_EIR   0x02
 
#define WBSD_ISR   0x03
 
#define WBSD_FSR   0x04
 
#define WBSD_IDXR   0x05
 
#define WBSD_DATAR   0x06
 
#define WBSD_CSR   0x07
 
#define WBSD_EINT_CARD   0x40
 
#define WBSD_EINT_FIFO_THRE   0x20
 
#define WBSD_EINT_CRC   0x10
 
#define WBSD_EINT_TIMEOUT   0x08
 
#define WBSD_EINT_PROGEND   0x04
 
#define WBSD_EINT_BUSYEND   0x02
 
#define WBSD_EINT_TC   0x01
 
#define WBSD_INT_PENDING   0x80
 
#define WBSD_INT_CARD   0x40
 
#define WBSD_INT_FIFO_THRE   0x20
 
#define WBSD_INT_CRC   0x10
 
#define WBSD_INT_TIMEOUT   0x08
 
#define WBSD_INT_PROGEND   0x04
 
#define WBSD_INT_BUSYEND   0x02
 
#define WBSD_INT_TC   0x01
 
#define WBSD_FIFO_EMPTY   0x80
 
#define WBSD_FIFO_FULL   0x40
 
#define WBSD_FIFO_EMTHRE   0x20
 
#define WBSD_FIFO_FUTHRE   0x10
 
#define WBSD_FIFO_SZMASK   0x0F
 
#define WBSD_MSLED   0x20
 
#define WBSD_POWER_N   0x10
 
#define WBSD_WRPT   0x04
 
#define WBSD_CARDPRESENT   0x01
 
#define WBSD_IDX_CLK   0x01
 
#define WBSD_IDX_PBSMSB   0x02
 
#define WBSD_IDX_TAAC   0x03
 
#define WBSD_IDX_NSAC   0x04
 
#define WBSD_IDX_PBSLSB   0x05
 
#define WBSD_IDX_SETUP   0x06
 
#define WBSD_IDX_DMA   0x07
 
#define WBSD_IDX_FIFOEN   0x08
 
#define WBSD_IDX_STATUS   0x10
 
#define WBSD_IDX_RSPLEN   0x1E
 
#define WBSD_IDX_RESP0   0x1F
 
#define WBSD_IDX_RESP1   0x20
 
#define WBSD_IDX_RESP2   0x21
 
#define WBSD_IDX_RESP3   0x22
 
#define WBSD_IDX_RESP4   0x23
 
#define WBSD_IDX_RESP5   0x24
 
#define WBSD_IDX_RESP6   0x25
 
#define WBSD_IDX_RESP7   0x26
 
#define WBSD_IDX_RESP8   0x27
 
#define WBSD_IDX_RESP9   0x28
 
#define WBSD_IDX_RESP10   0x29
 
#define WBSD_IDX_RESP11   0x2A
 
#define WBSD_IDX_RESP12   0x2B
 
#define WBSD_IDX_RESP13   0x2C
 
#define WBSD_IDX_RESP14   0x2D
 
#define WBSD_IDX_RESP15   0x2E
 
#define WBSD_IDX_RESP16   0x2F
 
#define WBSD_IDX_CRCSTATUS   0x30
 
#define WBSD_IDX_ISR   0x3F
 
#define WBSD_CLK_375K   0x00
 
#define WBSD_CLK_12M   0x01
 
#define WBSD_CLK_16M   0x02
 
#define WBSD_CLK_24M   0x03
 
#define WBSD_DATA_WIDTH   0x01
 
#define WBSD_DAT3_H   0x08
 
#define WBSD_FIFO_RESET   0x04
 
#define WBSD_SOFT_RESET   0x02
 
#define WBSD_INC_INDEX   0x01
 
#define WBSD_DMA_SINGLE   0x02
 
#define WBSD_DMA_ENABLE   0x01
 
#define WBSD_FIFOEN_EMPTY   0x20
 
#define WBSD_FIFOEN_FULL   0x10
 
#define WBSD_FIFO_THREMASK   0x0F
 
#define WBSD_BLOCK_READ   0x80
 
#define WBSD_BLOCK_WRITE   0x40
 
#define WBSD_BUSY   0x20
 
#define WBSD_CARDTRAFFIC   0x04
 
#define WBSD_SENDCMD   0x02
 
#define WBSD_RECVRES   0x01
 
#define WBSD_RSP_SHORT   0x00
 
#define WBSD_RSP_LONG   0x01
 
#define WBSD_CRC_MASK   0x1F
 
#define WBSD_CRC_OK   0x05 /* S010E (00101) */
 
#define WBSD_CRC_FAIL   0x0B /* S101E (01011) */
 
#define WBSD_DMA_SIZE   65536
 
#define WBSD_FCARD_PRESENT   (1<<0) /* Card is present */
 
#define WBSD_FIGNORE_DETECT   (1<<1) /* Ignore card detection */
 

Macro Definition Documentation

#define DEVICE_SD   0x03

Definition at line 30 of file wbsd.h.

#define LOCK_CODE   0xAA

Definition at line 12 of file wbsd.h.

#define WBSD_BLOCK_READ   0x80

Definition at line 124 of file wbsd.h.

#define WBSD_BLOCK_WRITE   0x40

Definition at line 125 of file wbsd.h.

#define WBSD_BUSY   0x20

Definition at line 126 of file wbsd.h.

#define WBSD_CARDPRESENT   0x01

Definition at line 73 of file wbsd.h.

#define WBSD_CARDTRAFFIC   0x04

Definition at line 127 of file wbsd.h.

#define WBSD_CLK_12M   0x01

Definition at line 106 of file wbsd.h.

#define WBSD_CLK_16M   0x02

Definition at line 107 of file wbsd.h.

#define WBSD_CLK_24M   0x03

Definition at line 108 of file wbsd.h.

#define WBSD_CLK_375K   0x00

Definition at line 105 of file wbsd.h.

#define WBSD_CMDR   0x00

Definition at line 38 of file wbsd.h.

#define WBSD_CONF_DEVICE   0x07

Definition at line 15 of file wbsd.h.

#define WBSD_CONF_DRQ   0x74

Definition at line 26 of file wbsd.h.

#define WBSD_CONF_ENABLE   0x30

Definition at line 22 of file wbsd.h.

#define WBSD_CONF_ID_HI   0x20

Definition at line 16 of file wbsd.h.

#define WBSD_CONF_ID_LO   0x21

Definition at line 17 of file wbsd.h.

#define WBSD_CONF_IRQ   0x70

Definition at line 25 of file wbsd.h.

#define WBSD_CONF_PINS   0xF0

Definition at line 28 of file wbsd.h.

#define WBSD_CONF_PME   0x23

Definition at line 19 of file wbsd.h.

#define WBSD_CONF_PMES   0x24

Definition at line 20 of file wbsd.h.

#define WBSD_CONF_PORT_HI   0x60

Definition at line 23 of file wbsd.h.

#define WBSD_CONF_PORT_LO   0x61

Definition at line 24 of file wbsd.h.

#define WBSD_CONF_POWER   0x22

Definition at line 18 of file wbsd.h.

#define WBSD_CONF_SWRST   0x02

Definition at line 14 of file wbsd.h.

#define WBSD_CRC_FAIL   0x0B /* S101E (01011) */

Definition at line 136 of file wbsd.h.

#define WBSD_CRC_MASK   0x1F

Definition at line 134 of file wbsd.h.

#define WBSD_CRC_OK   0x05 /* S010E (00101) */

Definition at line 135 of file wbsd.h.

#define WBSD_CSR   0x07

Definition at line 45 of file wbsd.h.

#define WBSD_DAT3_H   0x08

Definition at line 112 of file wbsd.h.

#define WBSD_DATA_WIDTH   0x01

Definition at line 110 of file wbsd.h.

#define WBSD_DATAR   0x06

Definition at line 44 of file wbsd.h.

#define WBSD_DFR   0x01

Definition at line 39 of file wbsd.h.

#define WBSD_DMA_ENABLE   0x01

Definition at line 118 of file wbsd.h.

#define WBSD_DMA_SINGLE   0x02

Definition at line 117 of file wbsd.h.

#define WBSD_DMA_SIZE   65536

Definition at line 138 of file wbsd.h.

#define WBSD_EINT_BUSYEND   0x02

Definition at line 52 of file wbsd.h.

#define WBSD_EINT_CARD   0x40

Definition at line 47 of file wbsd.h.

#define WBSD_EINT_CRC   0x10

Definition at line 49 of file wbsd.h.

#define WBSD_EINT_FIFO_THRE   0x20

Definition at line 48 of file wbsd.h.

#define WBSD_EINT_PROGEND   0x04

Definition at line 51 of file wbsd.h.

#define WBSD_EINT_TC   0x01

Definition at line 53 of file wbsd.h.

#define WBSD_EINT_TIMEOUT   0x08

Definition at line 50 of file wbsd.h.

#define WBSD_EIR   0x02

Definition at line 40 of file wbsd.h.

#define WBSD_FCARD_PRESENT   (1<<0) /* Card is present */

Definition at line 148 of file wbsd.h.

#define WBSD_FIFO_EMPTY   0x80

Definition at line 64 of file wbsd.h.

#define WBSD_FIFO_EMTHRE   0x20

Definition at line 66 of file wbsd.h.

#define WBSD_FIFO_FULL   0x40

Definition at line 65 of file wbsd.h.

#define WBSD_FIFO_FUTHRE   0x10

Definition at line 67 of file wbsd.h.

#define WBSD_FIFO_RESET   0x04

Definition at line 113 of file wbsd.h.

#define WBSD_FIFO_SZMASK   0x0F

Definition at line 68 of file wbsd.h.

#define WBSD_FIFO_THREMASK   0x0F

Definition at line 122 of file wbsd.h.

#define WBSD_FIFOEN_EMPTY   0x20

Definition at line 120 of file wbsd.h.

#define WBSD_FIFOEN_FULL   0x10

Definition at line 121 of file wbsd.h.

#define WBSD_FIGNORE_DETECT   (1<<1) /* Ignore card detection */

Definition at line 149 of file wbsd.h.

#define WBSD_FSR   0x04

Definition at line 42 of file wbsd.h.

#define WBSD_IDX_CLK   0x01

Definition at line 75 of file wbsd.h.

#define WBSD_IDX_CRCSTATUS   0x30

Definition at line 102 of file wbsd.h.

#define WBSD_IDX_DMA   0x07

Definition at line 81 of file wbsd.h.

#define WBSD_IDX_FIFOEN   0x08

Definition at line 82 of file wbsd.h.

#define WBSD_IDX_ISR   0x3F

Definition at line 103 of file wbsd.h.

#define WBSD_IDX_NSAC   0x04

Definition at line 78 of file wbsd.h.

#define WBSD_IDX_PBSLSB   0x05

Definition at line 79 of file wbsd.h.

#define WBSD_IDX_PBSMSB   0x02

Definition at line 76 of file wbsd.h.

#define WBSD_IDX_RESP0   0x1F

Definition at line 85 of file wbsd.h.

#define WBSD_IDX_RESP1   0x20

Definition at line 86 of file wbsd.h.

#define WBSD_IDX_RESP10   0x29

Definition at line 95 of file wbsd.h.

#define WBSD_IDX_RESP11   0x2A

Definition at line 96 of file wbsd.h.

#define WBSD_IDX_RESP12   0x2B

Definition at line 97 of file wbsd.h.

#define WBSD_IDX_RESP13   0x2C

Definition at line 98 of file wbsd.h.

#define WBSD_IDX_RESP14   0x2D

Definition at line 99 of file wbsd.h.

#define WBSD_IDX_RESP15   0x2E

Definition at line 100 of file wbsd.h.

#define WBSD_IDX_RESP16   0x2F

Definition at line 101 of file wbsd.h.

#define WBSD_IDX_RESP2   0x21

Definition at line 87 of file wbsd.h.

#define WBSD_IDX_RESP3   0x22

Definition at line 88 of file wbsd.h.

#define WBSD_IDX_RESP4   0x23

Definition at line 89 of file wbsd.h.

#define WBSD_IDX_RESP5   0x24

Definition at line 90 of file wbsd.h.

#define WBSD_IDX_RESP6   0x25

Definition at line 91 of file wbsd.h.

#define WBSD_IDX_RESP7   0x26

Definition at line 92 of file wbsd.h.

#define WBSD_IDX_RESP8   0x27

Definition at line 93 of file wbsd.h.

#define WBSD_IDX_RESP9   0x28

Definition at line 94 of file wbsd.h.

#define WBSD_IDX_RSPLEN   0x1E

Definition at line 84 of file wbsd.h.

#define WBSD_IDX_SETUP   0x06

Definition at line 80 of file wbsd.h.

#define WBSD_IDX_STATUS   0x10

Definition at line 83 of file wbsd.h.

#define WBSD_IDX_TAAC   0x03

Definition at line 77 of file wbsd.h.

#define WBSD_IDXR   0x05

Definition at line 43 of file wbsd.h.

#define WBSD_INC_INDEX   0x01

Definition at line 115 of file wbsd.h.

#define WBSD_INT_BUSYEND   0x02

Definition at line 61 of file wbsd.h.

#define WBSD_INT_CARD   0x40

Definition at line 56 of file wbsd.h.

#define WBSD_INT_CRC   0x10

Definition at line 58 of file wbsd.h.

#define WBSD_INT_FIFO_THRE   0x20

Definition at line 57 of file wbsd.h.

#define WBSD_INT_PENDING   0x80

Definition at line 55 of file wbsd.h.

#define WBSD_INT_PROGEND   0x04

Definition at line 60 of file wbsd.h.

#define WBSD_INT_TC   0x01

Definition at line 62 of file wbsd.h.

#define WBSD_INT_TIMEOUT   0x08

Definition at line 59 of file wbsd.h.

#define WBSD_ISR   0x03

Definition at line 41 of file wbsd.h.

#define WBSD_MSLED   0x20

Definition at line 70 of file wbsd.h.

#define WBSD_PINS_DAT3_HI   0x20

Definition at line 32 of file wbsd.h.

#define WBSD_PINS_DAT3_OUT   0x10

Definition at line 33 of file wbsd.h.

#define WBSD_PINS_DETECT_DAT3   0x01

Definition at line 36 of file wbsd.h.

#define WBSD_PINS_DETECT_GP11   0x02

Definition at line 35 of file wbsd.h.

#define WBSD_PINS_GP11_HI   0x04

Definition at line 34 of file wbsd.h.

#define WBSD_POWER_N   0x10

Definition at line 71 of file wbsd.h.

#define WBSD_RECVRES   0x01

Definition at line 129 of file wbsd.h.

#define WBSD_RSP_LONG   0x01

Definition at line 132 of file wbsd.h.

#define WBSD_RSP_SHORT   0x00

Definition at line 131 of file wbsd.h.

#define WBSD_SENDCMD   0x02

Definition at line 128 of file wbsd.h.

#define WBSD_SOFT_RESET   0x02

Definition at line 114 of file wbsd.h.

#define WBSD_WRPT   0x04

Definition at line 72 of file wbsd.h.