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

Go to the source code of this file.

Data Structures

struct  au1xmmc_platform_data
 

Macros

#define SD0_BASE   0xB0600000
 
#define SD1_BASE   0xB0680000
 
#define SD_TXPORT   (0x0000)
 
#define SD_RXPORT   (0x0004)
 
#define SD_CONFIG   (0x0008)
 
#define SD_ENABLE   (0x000C)
 
#define SD_CONFIG2   (0x0010)
 
#define SD_BLKSIZE   (0x0014)
 
#define SD_STATUS   (0x0018)
 
#define SD_DEBUG   (0x001C)
 
#define SD_CMD   (0x0020)
 
#define SD_CMDARG   (0x0024)
 
#define SD_RESP3   (0x0028)
 
#define SD_RESP2   (0x002C)
 
#define SD_RESP1   (0x0030)
 
#define SD_RESP0   (0x0034)
 
#define SD_TIMEOUT   (0x0038)
 
#define SD_TXPORT_TXD   (0x000000ff)
 
#define SD_RXPORT_RXD   (0x000000ff)
 
#define SD_CONFIG_DIV   (0x000001ff)
 
#define SD_CONFIG_DE   (0x00000200)
 
#define SD_CONFIG_NE   (0x00000400)
 
#define SD_CONFIG_TU   (0x00000800)
 
#define SD_CONFIG_TO   (0x00001000)
 
#define SD_CONFIG_RU   (0x00002000)
 
#define SD_CONFIG_RO   (0x00004000)
 
#define SD_CONFIG_I   (0x00008000)
 
#define SD_CONFIG_CR   (0x00010000)
 
#define SD_CONFIG_RAT   (0x00020000)
 
#define SD_CONFIG_DD   (0x00040000)
 
#define SD_CONFIG_DT   (0x00080000)
 
#define SD_CONFIG_SC   (0x00100000)
 
#define SD_CONFIG_RC   (0x00200000)
 
#define SD_CONFIG_WC   (0x00400000)
 
#define SD_CONFIG_xxx   (0x00800000)
 
#define SD_CONFIG_TH   (0x01000000)
 
#define SD_CONFIG_TE   (0x02000000)
 
#define SD_CONFIG_TA   (0x04000000)
 
#define SD_CONFIG_RH   (0x08000000)
 
#define SD_CONFIG_RA   (0x10000000)
 
#define SD_CONFIG_RF   (0x20000000)
 
#define SD_CONFIG_CD   (0x40000000)
 
#define SD_CONFIG_SI   (0x80000000)
 
#define SD_ENABLE_CE   (0x00000001)
 
#define SD_ENABLE_R   (0x00000002)
 
#define SD_CONFIG2_EN   (0x00000001)
 
#define SD_CONFIG2_FF   (0x00000002)
 
#define SD_CONFIG2_xx1   (0x00000004)
 
#define SD_CONFIG2_DF   (0x00000008)
 
#define SD_CONFIG2_DC   (0x00000010)
 
#define SD_CONFIG2_xx2   (0x000000e0)
 
#define SD_CONFIG2_BB   (0x00000080)
 
#define SD_CONFIG2_WB   (0x00000100)
 
#define SD_CONFIG2_RW   (0x00000200)
 
#define SD_CONFIG2_DP   (0x00000400)
 
#define SD_BLKSIZE_BS   (0x000007ff)
 
#define SD_BLKSIZE_BS_SHIFT   (0)
 
#define SD_BLKSIZE_BC   (0x01ff0000)
 
#define SD_BLKSIZE_BC_SHIFT   (16)
 
#define SD_STATUS_DCRCW   (0x00000007)
 
#define SD_STATUS_xx1   (0x00000008)
 
#define SD_STATUS_CB   (0x00000010)
 
#define SD_STATUS_DB   (0x00000020)
 
#define SD_STATUS_CF   (0x00000040)
 
#define SD_STATUS_D3   (0x00000080)
 
#define SD_STATUS_xx2   (0x00000300)
 
#define SD_STATUS_NE   (0x00000400)
 
#define SD_STATUS_TU   (0x00000800)
 
#define SD_STATUS_TO   (0x00001000)
 
#define SD_STATUS_RU   (0x00002000)
 
#define SD_STATUS_RO   (0x00004000)
 
#define SD_STATUS_I   (0x00008000)
 
#define SD_STATUS_CR   (0x00010000)
 
#define SD_STATUS_RAT   (0x00020000)
 
#define SD_STATUS_DD   (0x00040000)
 
#define SD_STATUS_DT   (0x00080000)
 
#define SD_STATUS_SC   (0x00100000)
 
#define SD_STATUS_RC   (0x00200000)
 
#define SD_STATUS_WC   (0x00400000)
 
#define SD_STATUS_xx3   (0x00800000)
 
#define SD_STATUS_TH   (0x01000000)
 
#define SD_STATUS_TE   (0x02000000)
 
#define SD_STATUS_TA   (0x04000000)
 
#define SD_STATUS_RH   (0x08000000)
 
#define SD_STATUS_RA   (0x10000000)
 
#define SD_STATUS_RF   (0x20000000)
 
#define SD_STATUS_CD   (0x40000000)
 
#define SD_STATUS_SI   (0x80000000)
 
#define SD_CMD_GO   (0x00000001)
 
#define SD_CMD_RY   (0x00000002)
 
#define SD_CMD_xx1   (0x0000000c)
 
#define SD_CMD_CT_MASK   (0x000000f0)
 
#define SD_CMD_CT_0   (0x00000000)
 
#define SD_CMD_CT_1   (0x00000010)
 
#define SD_CMD_CT_2   (0x00000020)
 
#define SD_CMD_CT_3   (0x00000030)
 
#define SD_CMD_CT_4   (0x00000040)
 
#define SD_CMD_CT_5   (0x00000050)
 
#define SD_CMD_CT_6   (0x00000060)
 
#define SD_CMD_CT_7   (0x00000070)
 
#define SD_CMD_CI   (0x0000ff00)
 
#define SD_CMD_CI_SHIFT   (8)
 
#define SD_CMD_RT_MASK   (0x00ff0000)
 
#define SD_CMD_RT_0   (0x00000000)
 
#define SD_CMD_RT_1   (0x00010000)
 
#define SD_CMD_RT_2   (0x00020000)
 
#define SD_CMD_RT_3   (0x00030000)
 
#define SD_CMD_RT_4   (0x00040000)
 
#define SD_CMD_RT_5   (0x00050000)
 
#define SD_CMD_RT_6   (0x00060000)
 
#define SD_CMD_RT_1B   (0x00810000)
 

Macro Definition Documentation

#define SD0_BASE   0xB0600000

Definition at line 52 of file au1100_mmc.h.

#define SD1_BASE   0xB0680000

Definition at line 53 of file au1100_mmc.h.

#define SD_BLKSIZE   (0x0014)

Definition at line 64 of file au1100_mmc.h.

#define SD_BLKSIZE_BC   (0x01ff0000)

Definition at line 144 of file au1100_mmc.h.

#define SD_BLKSIZE_BC_SHIFT   (16)

Definition at line 145 of file au1100_mmc.h.

#define SD_BLKSIZE_BS   (0x000007ff)

Definition at line 142 of file au1100_mmc.h.

#define SD_BLKSIZE_BS_SHIFT   (0)

Definition at line 143 of file au1100_mmc.h.

#define SD_CMD   (0x0020)

Definition at line 67 of file au1100_mmc.h.

#define SD_CMD_CI   (0x0000ff00)

Definition at line 197 of file au1100_mmc.h.

#define SD_CMD_CI_SHIFT   (8)

Definition at line 198 of file au1100_mmc.h.

#define SD_CMD_CT_0   (0x00000000)

Definition at line 189 of file au1100_mmc.h.

#define SD_CMD_CT_1   (0x00000010)

Definition at line 190 of file au1100_mmc.h.

#define SD_CMD_CT_2   (0x00000020)

Definition at line 191 of file au1100_mmc.h.

#define SD_CMD_CT_3   (0x00000030)

Definition at line 192 of file au1100_mmc.h.

#define SD_CMD_CT_4   (0x00000040)

Definition at line 193 of file au1100_mmc.h.

#define SD_CMD_CT_5   (0x00000050)

Definition at line 194 of file au1100_mmc.h.

#define SD_CMD_CT_6   (0x00000060)

Definition at line 195 of file au1100_mmc.h.

#define SD_CMD_CT_7   (0x00000070)

Definition at line 196 of file au1100_mmc.h.

#define SD_CMD_CT_MASK   (0x000000f0)

Definition at line 188 of file au1100_mmc.h.

#define SD_CMD_GO   (0x00000001)

Definition at line 185 of file au1100_mmc.h.

#define SD_CMD_RT_0   (0x00000000)

Definition at line 200 of file au1100_mmc.h.

#define SD_CMD_RT_1   (0x00010000)

Definition at line 201 of file au1100_mmc.h.

#define SD_CMD_RT_1B   (0x00810000)

Definition at line 207 of file au1100_mmc.h.

#define SD_CMD_RT_2   (0x00020000)

Definition at line 202 of file au1100_mmc.h.

#define SD_CMD_RT_3   (0x00030000)

Definition at line 203 of file au1100_mmc.h.

#define SD_CMD_RT_4   (0x00040000)

Definition at line 204 of file au1100_mmc.h.

#define SD_CMD_RT_5   (0x00050000)

Definition at line 205 of file au1100_mmc.h.

#define SD_CMD_RT_6   (0x00060000)

Definition at line 206 of file au1100_mmc.h.

#define SD_CMD_RT_MASK   (0x00ff0000)

Definition at line 199 of file au1100_mmc.h.

#define SD_CMD_RY   (0x00000002)

Definition at line 186 of file au1100_mmc.h.

#define SD_CMD_xx1   (0x0000000c)

Definition at line 187 of file au1100_mmc.h.

#define SD_CMDARG   (0x0024)

Definition at line 68 of file au1100_mmc.h.

#define SD_CONFIG   (0x0008)

Definition at line 61 of file au1100_mmc.h.

#define SD_CONFIG2   (0x0010)

Definition at line 63 of file au1100_mmc.h.

#define SD_CONFIG2_BB   (0x00000080)

Definition at line 133 of file au1100_mmc.h.

#define SD_CONFIG2_DC   (0x00000010)

Definition at line 131 of file au1100_mmc.h.

#define SD_CONFIG2_DF   (0x00000008)

Definition at line 130 of file au1100_mmc.h.

#define SD_CONFIG2_DP   (0x00000400)

Definition at line 136 of file au1100_mmc.h.

#define SD_CONFIG2_EN   (0x00000001)

Definition at line 127 of file au1100_mmc.h.

#define SD_CONFIG2_FF   (0x00000002)

Definition at line 128 of file au1100_mmc.h.

#define SD_CONFIG2_RW   (0x00000200)

Definition at line 135 of file au1100_mmc.h.

#define SD_CONFIG2_WB   (0x00000100)

Definition at line 134 of file au1100_mmc.h.

#define SD_CONFIG2_xx1   (0x00000004)

Definition at line 129 of file au1100_mmc.h.

#define SD_CONFIG2_xx2   (0x000000e0)

Definition at line 132 of file au1100_mmc.h.

#define SD_CONFIG_CD   (0x40000000)

Definition at line 113 of file au1100_mmc.h.

#define SD_CONFIG_CR   (0x00010000)

Definition at line 99 of file au1100_mmc.h.

#define SD_CONFIG_DD   (0x00040000)

Definition at line 101 of file au1100_mmc.h.

#define SD_CONFIG_DE   (0x00000200)

Definition at line 92 of file au1100_mmc.h.

#define SD_CONFIG_DIV   (0x000001ff)

Definition at line 91 of file au1100_mmc.h.

#define SD_CONFIG_DT   (0x00080000)

Definition at line 102 of file au1100_mmc.h.

#define SD_CONFIG_I   (0x00008000)

Definition at line 98 of file au1100_mmc.h.

#define SD_CONFIG_NE   (0x00000400)

Definition at line 93 of file au1100_mmc.h.

#define SD_CONFIG_RA   (0x10000000)

Definition at line 111 of file au1100_mmc.h.

#define SD_CONFIG_RAT   (0x00020000)

Definition at line 100 of file au1100_mmc.h.

#define SD_CONFIG_RC   (0x00200000)

Definition at line 104 of file au1100_mmc.h.

#define SD_CONFIG_RF   (0x20000000)

Definition at line 112 of file au1100_mmc.h.

#define SD_CONFIG_RH   (0x08000000)

Definition at line 110 of file au1100_mmc.h.

#define SD_CONFIG_RO   (0x00004000)

Definition at line 97 of file au1100_mmc.h.

#define SD_CONFIG_RU   (0x00002000)

Definition at line 96 of file au1100_mmc.h.

#define SD_CONFIG_SC   (0x00100000)

Definition at line 103 of file au1100_mmc.h.

#define SD_CONFIG_SI   (0x80000000)

Definition at line 114 of file au1100_mmc.h.

#define SD_CONFIG_TA   (0x04000000)

Definition at line 109 of file au1100_mmc.h.

#define SD_CONFIG_TE   (0x02000000)

Definition at line 108 of file au1100_mmc.h.

#define SD_CONFIG_TH   (0x01000000)

Definition at line 107 of file au1100_mmc.h.

#define SD_CONFIG_TO   (0x00001000)

Definition at line 95 of file au1100_mmc.h.

#define SD_CONFIG_TU   (0x00000800)

Definition at line 94 of file au1100_mmc.h.

#define SD_CONFIG_WC   (0x00400000)

Definition at line 105 of file au1100_mmc.h.

#define SD_CONFIG_xxx   (0x00800000)

Definition at line 106 of file au1100_mmc.h.

#define SD_DEBUG   (0x001C)

Definition at line 66 of file au1100_mmc.h.

#define SD_ENABLE   (0x000C)

Definition at line 62 of file au1100_mmc.h.

#define SD_ENABLE_CE   (0x00000001)

Definition at line 120 of file au1100_mmc.h.

#define SD_ENABLE_R   (0x00000002)

Definition at line 121 of file au1100_mmc.h.

#define SD_RESP0   (0x0034)

Definition at line 72 of file au1100_mmc.h.

#define SD_RESP1   (0x0030)

Definition at line 71 of file au1100_mmc.h.

#define SD_RESP2   (0x002C)

Definition at line 70 of file au1100_mmc.h.

#define SD_RESP3   (0x0028)

Definition at line 69 of file au1100_mmc.h.

#define SD_RXPORT   (0x0004)

Definition at line 60 of file au1100_mmc.h.

#define SD_RXPORT_RXD   (0x000000ff)

Definition at line 85 of file au1100_mmc.h.

#define SD_STATUS   (0x0018)

Definition at line 65 of file au1100_mmc.h.

#define SD_STATUS_CB   (0x00000010)

Definition at line 153 of file au1100_mmc.h.

#define SD_STATUS_CD   (0x40000000)

Definition at line 178 of file au1100_mmc.h.

#define SD_STATUS_CF   (0x00000040)

Definition at line 155 of file au1100_mmc.h.

#define SD_STATUS_CR   (0x00010000)

Definition at line 164 of file au1100_mmc.h.

#define SD_STATUS_D3   (0x00000080)

Definition at line 156 of file au1100_mmc.h.

#define SD_STATUS_DB   (0x00000020)

Definition at line 154 of file au1100_mmc.h.

#define SD_STATUS_DCRCW   (0x00000007)

Definition at line 151 of file au1100_mmc.h.

#define SD_STATUS_DD   (0x00040000)

Definition at line 166 of file au1100_mmc.h.

#define SD_STATUS_DT   (0x00080000)

Definition at line 167 of file au1100_mmc.h.

#define SD_STATUS_I   (0x00008000)

Definition at line 163 of file au1100_mmc.h.

#define SD_STATUS_NE   (0x00000400)

Definition at line 158 of file au1100_mmc.h.

#define SD_STATUS_RA   (0x10000000)

Definition at line 176 of file au1100_mmc.h.

#define SD_STATUS_RAT   (0x00020000)

Definition at line 165 of file au1100_mmc.h.

#define SD_STATUS_RC   (0x00200000)

Definition at line 169 of file au1100_mmc.h.

#define SD_STATUS_RF   (0x20000000)

Definition at line 177 of file au1100_mmc.h.

#define SD_STATUS_RH   (0x08000000)

Definition at line 175 of file au1100_mmc.h.

#define SD_STATUS_RO   (0x00004000)

Definition at line 162 of file au1100_mmc.h.

#define SD_STATUS_RU   (0x00002000)

Definition at line 161 of file au1100_mmc.h.

#define SD_STATUS_SC   (0x00100000)

Definition at line 168 of file au1100_mmc.h.

#define SD_STATUS_SI   (0x80000000)

Definition at line 179 of file au1100_mmc.h.

#define SD_STATUS_TA   (0x04000000)

Definition at line 174 of file au1100_mmc.h.

#define SD_STATUS_TE   (0x02000000)

Definition at line 173 of file au1100_mmc.h.

#define SD_STATUS_TH   (0x01000000)

Definition at line 172 of file au1100_mmc.h.

#define SD_STATUS_TO   (0x00001000)

Definition at line 160 of file au1100_mmc.h.

#define SD_STATUS_TU   (0x00000800)

Definition at line 159 of file au1100_mmc.h.

#define SD_STATUS_WC   (0x00400000)

Definition at line 170 of file au1100_mmc.h.

#define SD_STATUS_xx1   (0x00000008)

Definition at line 152 of file au1100_mmc.h.

#define SD_STATUS_xx2   (0x00000300)

Definition at line 157 of file au1100_mmc.h.

#define SD_STATUS_xx3   (0x00800000)

Definition at line 171 of file au1100_mmc.h.

#define SD_TIMEOUT   (0x0038)

Definition at line 73 of file au1100_mmc.h.

#define SD_TXPORT   (0x0000)

Definition at line 59 of file au1100_mmc.h.

#define SD_TXPORT_TXD   (0x000000ff)

Definition at line 79 of file au1100_mmc.h.