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

Go to the source code of this file.

Data Structures

struct  msmsdcc_nc_dmadata
 
struct  msmsdcc_dma_data
 
struct  msmsdcc_pio_data
 
struct  msmsdcc_curr_req
 
struct  msmsdcc_stats
 
struct  msmsdcc_host
 

Macros

#define MSMSDCC_CRCI_SDC1   6
 
#define MSMSDCC_CRCI_SDC2   7
 
#define MSMSDCC_CRCI_SDC3   12
 
#define MSMSDCC_CRCI_SDC4   13
 
#define MMCIPOWER   0x000
 
#define MCI_PWR_OFF   0x00
 
#define MCI_PWR_UP   0x02
 
#define MCI_PWR_ON   0x03
 
#define MCI_OD   (1 << 6)
 
#define MMCICLOCK   0x004
 
#define MCI_CLK_ENABLE   (1 << 8)
 
#define MCI_CLK_PWRSAVE   (1 << 9)
 
#define MCI_CLK_WIDEBUS   (1 << 10)
 
#define MCI_CLK_FLOWENA   (1 << 12)
 
#define MCI_CLK_INVERTOUT   (1 << 13)
 
#define MCI_CLK_SELECTIN   (1 << 14)
 
#define MMCIARGUMENT   0x008
 
#define MMCICOMMAND   0x00c
 
#define MCI_CPSM_RESPONSE   (1 << 6)
 
#define MCI_CPSM_LONGRSP   (1 << 7)
 
#define MCI_CPSM_INTERRUPT   (1 << 8)
 
#define MCI_CPSM_PENDING   (1 << 9)
 
#define MCI_CPSM_ENABLE   (1 << 10)
 
#define MCI_CPSM_PROGENA   (1 << 11)
 
#define MCI_CSPM_DATCMD   (1 << 12)
 
#define MCI_CSPM_MCIABORT   (1 << 13)
 
#define MCI_CSPM_CCSENABLE   (1 << 14)
 
#define MCI_CSPM_CCSDISABLE   (1 << 15)
 
#define MMCIRESPCMD   0x010
 
#define MMCIRESPONSE0   0x014
 
#define MMCIRESPONSE1   0x018
 
#define MMCIRESPONSE2   0x01c
 
#define MMCIRESPONSE3   0x020
 
#define MMCIDATATIMER   0x024
 
#define MMCIDATALENGTH   0x028
 
#define MMCIDATACTRL   0x02c
 
#define MCI_DPSM_ENABLE   (1 << 0)
 
#define MCI_DPSM_DIRECTION   (1 << 1)
 
#define MCI_DPSM_MODE   (1 << 2)
 
#define MCI_DPSM_DMAENABLE   (1 << 3)
 
#define MMCIDATACNT   0x030
 
#define MMCISTATUS   0x034
 
#define MCI_CMDCRCFAIL   (1 << 0)
 
#define MCI_DATACRCFAIL   (1 << 1)
 
#define MCI_CMDTIMEOUT   (1 << 2)
 
#define MCI_DATATIMEOUT   (1 << 3)
 
#define MCI_TXUNDERRUN   (1 << 4)
 
#define MCI_RXOVERRUN   (1 << 5)
 
#define MCI_CMDRESPEND   (1 << 6)
 
#define MCI_CMDSENT   (1 << 7)
 
#define MCI_DATAEND   (1 << 8)
 
#define MCI_DATABLOCKEND   (1 << 10)
 
#define MCI_CMDACTIVE   (1 << 11)
 
#define MCI_TXACTIVE   (1 << 12)
 
#define MCI_RXACTIVE   (1 << 13)
 
#define MCI_TXFIFOHALFEMPTY   (1 << 14)
 
#define MCI_RXFIFOHALFFULL   (1 << 15)
 
#define MCI_TXFIFOFULL   (1 << 16)
 
#define MCI_RXFIFOFULL   (1 << 17)
 
#define MCI_TXFIFOEMPTY   (1 << 18)
 
#define MCI_RXFIFOEMPTY   (1 << 19)
 
#define MCI_TXDATAAVLBL   (1 << 20)
 
#define MCI_RXDATAAVLBL   (1 << 21)
 
#define MCI_SDIOINTR   (1 << 22)
 
#define MCI_PROGDONE   (1 << 23)
 
#define MCI_ATACMDCOMPL   (1 << 24)
 
#define MCI_SDIOINTOPER   (1 << 25)
 
#define MCI_CCSTIMEOUT   (1 << 26)
 
#define MMCICLEAR   0x038
 
#define MCI_CMDCRCFAILCLR   (1 << 0)
 
#define MCI_DATACRCFAILCLR   (1 << 1)
 
#define MCI_CMDTIMEOUTCLR   (1 << 2)
 
#define MCI_DATATIMEOUTCLR   (1 << 3)
 
#define MCI_TXUNDERRUNCLR   (1 << 4)
 
#define MCI_RXOVERRUNCLR   (1 << 5)
 
#define MCI_CMDRESPENDCLR   (1 << 6)
 
#define MCI_CMDSENTCLR   (1 << 7)
 
#define MCI_DATAENDCLR   (1 << 8)
 
#define MCI_DATABLOCKENDCLR   (1 << 10)
 
#define MMCIMASK0   0x03c
 
#define MCI_CMDCRCFAILMASK   (1 << 0)
 
#define MCI_DATACRCFAILMASK   (1 << 1)
 
#define MCI_CMDTIMEOUTMASK   (1 << 2)
 
#define MCI_DATATIMEOUTMASK   (1 << 3)
 
#define MCI_TXUNDERRUNMASK   (1 << 4)
 
#define MCI_RXOVERRUNMASK   (1 << 5)
 
#define MCI_CMDRESPENDMASK   (1 << 6)
 
#define MCI_CMDSENTMASK   (1 << 7)
 
#define MCI_DATAENDMASK   (1 << 8)
 
#define MCI_DATABLOCKENDMASK   (1 << 10)
 
#define MCI_CMDACTIVEMASK   (1 << 11)
 
#define MCI_TXACTIVEMASK   (1 << 12)
 
#define MCI_RXACTIVEMASK   (1 << 13)
 
#define MCI_TXFIFOHALFEMPTYMASK   (1 << 14)
 
#define MCI_RXFIFOHALFFULLMASK   (1 << 15)
 
#define MCI_TXFIFOFULLMASK   (1 << 16)
 
#define MCI_RXFIFOFULLMASK   (1 << 17)
 
#define MCI_TXFIFOEMPTYMASK   (1 << 18)
 
#define MCI_RXFIFOEMPTYMASK   (1 << 19)
 
#define MCI_TXDATAAVLBLMASK   (1 << 20)
 
#define MCI_RXDATAAVLBLMASK   (1 << 21)
 
#define MCI_SDIOINTMASK   (1 << 22)
 
#define MCI_PROGDONEMASK   (1 << 23)
 
#define MCI_ATACMDCOMPLMASK   (1 << 24)
 
#define MCI_SDIOINTOPERMASK   (1 << 25)
 
#define MCI_CCSTIMEOUTMASK   (1 << 26)
 
#define MMCIMASK1   0x040
 
#define MMCIFIFOCNT   0x044
 
#define MCICCSTIMER   0x058
 
#define MMCIFIFO   0x080 /* to 0x0bc */
 
#define MCI_IRQENABLE
 
#define MCI_IRQ_PIO
 
#define MCI_FIFOSIZE   (16*4)
 
#define MCI_FIFOHALFSIZE   (MCI_FIFOSIZE / 2)
 
#define NR_SG   32
 

Macro Definition Documentation

#define MCI_ATACMDCOMPL   (1 << 24)

Definition at line 88 of file msm_sdcc.h.

#define MCI_ATACMDCOMPLMASK   (1 << 24)

Definition at line 128 of file msm_sdcc.h.

#define MCI_CCSTIMEOUT   (1 << 26)

Definition at line 90 of file msm_sdcc.h.

#define MCI_CCSTIMEOUTMASK   (1 << 26)

Definition at line 130 of file msm_sdcc.h.

#define MCI_CLK_ENABLE   (1 << 8)

Definition at line 28 of file msm_sdcc.h.

#define MCI_CLK_FLOWENA   (1 << 12)

Definition at line 31 of file msm_sdcc.h.

#define MCI_CLK_INVERTOUT   (1 << 13)

Definition at line 32 of file msm_sdcc.h.

#define MCI_CLK_PWRSAVE   (1 << 9)

Definition at line 29 of file msm_sdcc.h.

#define MCI_CLK_SELECTIN   (1 << 14)

Definition at line 33 of file msm_sdcc.h.

#define MCI_CLK_WIDEBUS   (1 << 10)

Definition at line 30 of file msm_sdcc.h.

#define MCI_CMDACTIVE   (1 << 11)

Definition at line 75 of file msm_sdcc.h.

#define MCI_CMDACTIVEMASK   (1 << 11)

Definition at line 115 of file msm_sdcc.h.

#define MCI_CMDCRCFAIL   (1 << 0)

Definition at line 65 of file msm_sdcc.h.

#define MCI_CMDCRCFAILCLR   (1 << 0)

Definition at line 93 of file msm_sdcc.h.

#define MCI_CMDCRCFAILMASK   (1 << 0)

Definition at line 105 of file msm_sdcc.h.

#define MCI_CMDRESPEND   (1 << 6)

Definition at line 71 of file msm_sdcc.h.

#define MCI_CMDRESPENDCLR   (1 << 6)

Definition at line 99 of file msm_sdcc.h.

#define MCI_CMDRESPENDMASK   (1 << 6)

Definition at line 111 of file msm_sdcc.h.

#define MCI_CMDSENT   (1 << 7)

Definition at line 72 of file msm_sdcc.h.

#define MCI_CMDSENTCLR   (1 << 7)

Definition at line 100 of file msm_sdcc.h.

#define MCI_CMDSENTMASK   (1 << 7)

Definition at line 112 of file msm_sdcc.h.

#define MCI_CMDTIMEOUT   (1 << 2)

Definition at line 67 of file msm_sdcc.h.

#define MCI_CMDTIMEOUTCLR   (1 << 2)

Definition at line 95 of file msm_sdcc.h.

#define MCI_CMDTIMEOUTMASK   (1 << 2)

Definition at line 107 of file msm_sdcc.h.

#define MCI_CPSM_ENABLE   (1 << 10)

Definition at line 41 of file msm_sdcc.h.

#define MCI_CPSM_INTERRUPT   (1 << 8)

Definition at line 39 of file msm_sdcc.h.

#define MCI_CPSM_LONGRSP   (1 << 7)

Definition at line 38 of file msm_sdcc.h.

#define MCI_CPSM_PENDING   (1 << 9)

Definition at line 40 of file msm_sdcc.h.

#define MCI_CPSM_PROGENA   (1 << 11)

Definition at line 42 of file msm_sdcc.h.

#define MCI_CPSM_RESPONSE   (1 << 6)

Definition at line 37 of file msm_sdcc.h.

#define MCI_CSPM_CCSDISABLE   (1 << 15)

Definition at line 46 of file msm_sdcc.h.

#define MCI_CSPM_CCSENABLE   (1 << 14)

Definition at line 45 of file msm_sdcc.h.

#define MCI_CSPM_DATCMD   (1 << 12)

Definition at line 43 of file msm_sdcc.h.

#define MCI_CSPM_MCIABORT   (1 << 13)

Definition at line 44 of file msm_sdcc.h.

#define MCI_DATABLOCKEND   (1 << 10)

Definition at line 74 of file msm_sdcc.h.

#define MCI_DATABLOCKENDCLR   (1 << 10)

Definition at line 102 of file msm_sdcc.h.

#define MCI_DATABLOCKENDMASK   (1 << 10)

Definition at line 114 of file msm_sdcc.h.

#define MCI_DATACRCFAIL   (1 << 1)

Definition at line 66 of file msm_sdcc.h.

#define MCI_DATACRCFAILCLR   (1 << 1)

Definition at line 94 of file msm_sdcc.h.

#define MCI_DATACRCFAILMASK   (1 << 1)

Definition at line 106 of file msm_sdcc.h.

#define MCI_DATAEND   (1 << 8)

Definition at line 73 of file msm_sdcc.h.

#define MCI_DATAENDCLR   (1 << 8)

Definition at line 101 of file msm_sdcc.h.

#define MCI_DATAENDMASK   (1 << 8)

Definition at line 113 of file msm_sdcc.h.

#define MCI_DATATIMEOUT   (1 << 3)

Definition at line 68 of file msm_sdcc.h.

#define MCI_DATATIMEOUTCLR   (1 << 3)

Definition at line 96 of file msm_sdcc.h.

#define MCI_DATATIMEOUTMASK   (1 << 3)

Definition at line 108 of file msm_sdcc.h.

#define MCI_DPSM_DIRECTION   (1 << 1)

Definition at line 59 of file msm_sdcc.h.

#define MCI_DPSM_DMAENABLE   (1 << 3)

Definition at line 61 of file msm_sdcc.h.

#define MCI_DPSM_ENABLE   (1 << 0)

Definition at line 58 of file msm_sdcc.h.

#define MCI_DPSM_MODE   (1 << 2)

Definition at line 60 of file msm_sdcc.h.

#define MCI_FIFOHALFSIZE   (MCI_FIFOSIZE / 2)

Definition at line 153 of file msm_sdcc.h.

#define MCI_FIFOSIZE   (16*4)

Definition at line 151 of file msm_sdcc.h.

#define MCI_IRQ_PIO
Value:
MCI_TXFIFOEMPTYMASK | MCI_RXFIFOFULLMASK | MCI_TXFIFOFULLMASK | \
MCI_RXFIFOHALFFULLMASK | MCI_TXFIFOHALFEMPTYMASK | \
MCI_RXACTIVEMASK | MCI_TXACTIVEMASK)

Definition at line 143 of file msm_sdcc.h.

#define MCI_IRQENABLE
#define MCI_OD   (1 << 6)

Definition at line 25 of file msm_sdcc.h.

#define MCI_PROGDONE   (1 << 23)

Definition at line 87 of file msm_sdcc.h.

#define MCI_PROGDONEMASK   (1 << 23)

Definition at line 127 of file msm_sdcc.h.

#define MCI_PWR_OFF   0x00

Definition at line 22 of file msm_sdcc.h.

#define MCI_PWR_ON   0x03

Definition at line 24 of file msm_sdcc.h.

#define MCI_PWR_UP   0x02

Definition at line 23 of file msm_sdcc.h.

#define MCI_RXACTIVE   (1 << 13)

Definition at line 77 of file msm_sdcc.h.

#define MCI_RXACTIVEMASK   (1 << 13)

Definition at line 117 of file msm_sdcc.h.

#define MCI_RXDATAAVLBL   (1 << 21)

Definition at line 85 of file msm_sdcc.h.

#define MCI_RXDATAAVLBLMASK   (1 << 21)

Definition at line 125 of file msm_sdcc.h.

#define MCI_RXFIFOEMPTY   (1 << 19)

Definition at line 83 of file msm_sdcc.h.

#define MCI_RXFIFOEMPTYMASK   (1 << 19)

Definition at line 123 of file msm_sdcc.h.

#define MCI_RXFIFOFULL   (1 << 17)

Definition at line 81 of file msm_sdcc.h.

#define MCI_RXFIFOFULLMASK   (1 << 17)

Definition at line 121 of file msm_sdcc.h.

#define MCI_RXFIFOHALFFULL   (1 << 15)

Definition at line 79 of file msm_sdcc.h.

#define MCI_RXFIFOHALFFULLMASK   (1 << 15)

Definition at line 119 of file msm_sdcc.h.

#define MCI_RXOVERRUN   (1 << 5)

Definition at line 70 of file msm_sdcc.h.

#define MCI_RXOVERRUNCLR   (1 << 5)

Definition at line 98 of file msm_sdcc.h.

#define MCI_RXOVERRUNMASK   (1 << 5)

Definition at line 110 of file msm_sdcc.h.

#define MCI_SDIOINTMASK   (1 << 22)

Definition at line 126 of file msm_sdcc.h.

#define MCI_SDIOINTOPER   (1 << 25)

Definition at line 89 of file msm_sdcc.h.

#define MCI_SDIOINTOPERMASK   (1 << 25)

Definition at line 129 of file msm_sdcc.h.

#define MCI_SDIOINTR   (1 << 22)

Definition at line 86 of file msm_sdcc.h.

#define MCI_TXACTIVE   (1 << 12)

Definition at line 76 of file msm_sdcc.h.

#define MCI_TXACTIVEMASK   (1 << 12)

Definition at line 116 of file msm_sdcc.h.

#define MCI_TXDATAAVLBL   (1 << 20)

Definition at line 84 of file msm_sdcc.h.

#define MCI_TXDATAAVLBLMASK   (1 << 20)

Definition at line 124 of file msm_sdcc.h.

#define MCI_TXFIFOEMPTY   (1 << 18)

Definition at line 82 of file msm_sdcc.h.

#define MCI_TXFIFOEMPTYMASK   (1 << 18)

Definition at line 122 of file msm_sdcc.h.

#define MCI_TXFIFOFULL   (1 << 16)

Definition at line 80 of file msm_sdcc.h.

#define MCI_TXFIFOFULLMASK   (1 << 16)

Definition at line 120 of file msm_sdcc.h.

#define MCI_TXFIFOHALFEMPTY   (1 << 14)

Definition at line 78 of file msm_sdcc.h.

#define MCI_TXFIFOHALFEMPTYMASK   (1 << 14)

Definition at line 118 of file msm_sdcc.h.

#define MCI_TXUNDERRUN   (1 << 4)

Definition at line 69 of file msm_sdcc.h.

#define MCI_TXUNDERRUNCLR   (1 << 4)

Definition at line 97 of file msm_sdcc.h.

#define MCI_TXUNDERRUNMASK   (1 << 4)

Definition at line 109 of file msm_sdcc.h.

#define MCICCSTIMER   0x058

Definition at line 134 of file msm_sdcc.h.

#define MMCIARGUMENT   0x008

Definition at line 35 of file msm_sdcc.h.

#define MMCICLEAR   0x038

Definition at line 92 of file msm_sdcc.h.

#define MMCICLOCK   0x004

Definition at line 27 of file msm_sdcc.h.

#define MMCICOMMAND   0x00c

Definition at line 36 of file msm_sdcc.h.

#define MMCIDATACNT   0x030

Definition at line 63 of file msm_sdcc.h.

#define MMCIDATACTRL   0x02c

Definition at line 57 of file msm_sdcc.h.

#define MMCIDATALENGTH   0x028

Definition at line 55 of file msm_sdcc.h.

#define MMCIDATATIMER   0x024

Definition at line 54 of file msm_sdcc.h.

#define MMCIFIFO   0x080 /* to 0x0bc */

Definition at line 136 of file msm_sdcc.h.

#define MMCIFIFOCNT   0x044

Definition at line 133 of file msm_sdcc.h.

#define MMCIMASK0   0x03c

Definition at line 104 of file msm_sdcc.h.

#define MMCIMASK1   0x040

Definition at line 132 of file msm_sdcc.h.

#define MMCIPOWER   0x000

Definition at line 21 of file msm_sdcc.h.

#define MMCIRESPCMD   0x010

Definition at line 49 of file msm_sdcc.h.

#define MMCIRESPONSE0   0x014

Definition at line 50 of file msm_sdcc.h.

#define MMCIRESPONSE1   0x018

Definition at line 51 of file msm_sdcc.h.

#define MMCIRESPONSE2   0x01c

Definition at line 52 of file msm_sdcc.h.

#define MMCIRESPONSE3   0x020

Definition at line 53 of file msm_sdcc.h.

#define MMCISTATUS   0x034

Definition at line 64 of file msm_sdcc.h.

#define MSMSDCC_CRCI_SDC1   6

Definition at line 16 of file msm_sdcc.h.

#define MSMSDCC_CRCI_SDC2   7

Definition at line 17 of file msm_sdcc.h.

#define MSMSDCC_CRCI_SDC3   12

Definition at line 18 of file msm_sdcc.h.

#define MSMSDCC_CRCI_SDC4   13

Definition at line 19 of file msm_sdcc.h.

#define NR_SG   32

Definition at line 155 of file msm_sdcc.h.