Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sdhci.h File Reference
#include <linux/scatterlist.h>
#include <linux/compiler.h>
#include <linux/types.h>
#include <linux/io.h>
#include <linux/mmc/host.h>

Go to the source code of this file.

Data Structures

struct  sdhci_host
 

Macros

#define SDHCI_QUIRK_CLOCK_BEFORE_RESET   (1<<0)
 
#define SDHCI_QUIRK_FORCE_DMA   (1<<1)
 
#define SDHCI_QUIRK_NO_CARD_NO_RESET   (1<<2)
 
#define SDHCI_QUIRK_SINGLE_POWER_WRITE   (1<<3)
 
#define SDHCI_QUIRK_RESET_CMD_DATA_ON_IOS   (1<<4)
 
#define SDHCI_QUIRK_BROKEN_DMA   (1<<5)
 
#define SDHCI_QUIRK_BROKEN_ADMA   (1<<6)
 
#define SDHCI_QUIRK_32BIT_DMA_ADDR   (1<<7)
 
#define SDHCI_QUIRK_32BIT_DMA_SIZE   (1<<8)
 
#define SDHCI_QUIRK_32BIT_ADMA_SIZE   (1<<9)
 
#define SDHCI_QUIRK_RESET_AFTER_REQUEST   (1<<10)
 
#define SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER   (1<<11)
 
#define SDHCI_QUIRK_BROKEN_TIMEOUT_VAL   (1<<12)
 
#define SDHCI_QUIRK_BROKEN_SMALL_PIO   (1<<13)
 
#define SDHCI_QUIRK_NO_BUSY_IRQ   (1<<14)
 
#define SDHCI_QUIRK_BROKEN_CARD_DETECTION   (1<<15)
 
#define SDHCI_QUIRK_INVERTED_WRITE_PROTECT   (1<<16)
 
#define SDHCI_QUIRK_NONSTANDARD_CLOCK   (1<<17)
 
#define SDHCI_QUIRK_PIO_NEEDS_DELAY   (1<<18)
 
#define SDHCI_QUIRK_RESTORE_IRQS_AFTER_RESET   (1<<19)
 
#define SDHCI_QUIRK_FORCE_BLK_SZ_2048   (1<<20)
 
#define SDHCI_QUIRK_NO_MULTIBLOCK   (1<<21)
 
#define SDHCI_QUIRK_FORCE_1_BIT_DATA   (1<<22)
 
#define SDHCI_QUIRK_DELAY_AFTER_POWER   (1<<23)
 
#define SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK   (1<<24)
 
#define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN   (1<<25)
 
#define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC   (1<<26)
 
#define SDHCI_QUIRK_MISSING_CAPS   (1<<27)
 
#define SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12   (1<<28)
 
#define SDHCI_QUIRK_NO_HISPD_BIT   (1<<29)
 
#define SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC   (1<<30)
 
#define SDHCI_QUIRK_UNSTABLE_RO_DETECT   (1<<31)
 
#define SDHCI_QUIRK2_HOST_OFF_CARD_ON   (1<<0)
 
#define SDHCI_QUIRK2_HOST_NO_CMD23   (1<<1)
 
#define SDHCI_USE_SDMA   (1<<0) /* Host is SDMA capable */
 
#define SDHCI_USE_ADMA   (1<<1) /* Host is ADMA capable */
 
#define SDHCI_REQ_USE_DMA   (1<<2) /* Use DMA for this req. */
 
#define SDHCI_DEVICE_DEAD   (1<<3) /* Device unresponsive */
 
#define SDHCI_SDR50_NEEDS_TUNING   (1<<4) /* SDR50 needs tuning */
 
#define SDHCI_NEEDS_RETUNING   (1<<5) /* Host needs retuning */
 
#define SDHCI_AUTO_CMD12   (1<<6) /* Auto CMD12 support */
 
#define SDHCI_AUTO_CMD23   (1<<7) /* Auto CMD23 support */
 
#define SDHCI_PV_ENABLED   (1<<8) /* Preset value enabled */
 
#define SDHCI_SDIO_IRQ_ENABLED   (1<<9) /* SDIO irq enabled */
 
#define SDHCI_HS200_NEEDS_TUNING   (1<<10) /* HS200 needs tuning */
 
#define SDHCI_USING_RETUNING_TIMER   (1<<11) /* Host is using a retuning timer for the card */
 
#define SDHCI_TUNING_MODE_1   0
 

Macro Definition Documentation

#define SDHCI_AUTO_CMD12   (1<<6) /* Auto CMD12 support */

Definition at line 122 of file sdhci.h.

#define SDHCI_AUTO_CMD23   (1<<7) /* Auto CMD23 support */

Definition at line 123 of file sdhci.h.

#define SDHCI_DEVICE_DEAD   (1<<3) /* Device unresponsive */

Definition at line 119 of file sdhci.h.

#define SDHCI_HS200_NEEDS_TUNING   (1<<10) /* HS200 needs tuning */

Definition at line 126 of file sdhci.h.

#define SDHCI_NEEDS_RETUNING   (1<<5) /* Host needs retuning */

Definition at line 121 of file sdhci.h.

#define SDHCI_PV_ENABLED   (1<<8) /* Preset value enabled */

Definition at line 124 of file sdhci.h.

#define SDHCI_QUIRK2_HOST_NO_CMD23   (1<<1)

Definition at line 94 of file sdhci.h.

#define SDHCI_QUIRK2_HOST_OFF_CARD_ON   (1<<0)

Definition at line 93 of file sdhci.h.

#define SDHCI_QUIRK_32BIT_ADMA_SIZE   (1<<9)

Definition at line 45 of file sdhci.h.

#define SDHCI_QUIRK_32BIT_DMA_ADDR   (1<<7)

Definition at line 41 of file sdhci.h.

#define SDHCI_QUIRK_32BIT_DMA_SIZE   (1<<8)

Definition at line 43 of file sdhci.h.

#define SDHCI_QUIRK_BROKEN_ADMA   (1<<6)

Definition at line 39 of file sdhci.h.

#define SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC   (1<<30)

Definition at line 87 of file sdhci.h.

#define SDHCI_QUIRK_BROKEN_CARD_DETECTION   (1<<15)

Definition at line 57 of file sdhci.h.

#define SDHCI_QUIRK_BROKEN_DMA   (1<<5)

Definition at line 37 of file sdhci.h.

#define SDHCI_QUIRK_BROKEN_SMALL_PIO   (1<<13)

Definition at line 53 of file sdhci.h.

#define SDHCI_QUIRK_BROKEN_TIMEOUT_VAL   (1<<12)

Definition at line 51 of file sdhci.h.

#define SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN   (1<<25)

Definition at line 77 of file sdhci.h.

#define SDHCI_QUIRK_CLOCK_BEFORE_RESET   (1<<0)

Definition at line 27 of file sdhci.h.

#define SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK   (1<<24)

Definition at line 75 of file sdhci.h.

#define SDHCI_QUIRK_DELAY_AFTER_POWER   (1<<23)

Definition at line 73 of file sdhci.h.

#define SDHCI_QUIRK_FORCE_1_BIT_DATA   (1<<22)

Definition at line 71 of file sdhci.h.

#define SDHCI_QUIRK_FORCE_BLK_SZ_2048   (1<<20)

Definition at line 67 of file sdhci.h.

#define SDHCI_QUIRK_FORCE_DMA   (1<<1)

Definition at line 29 of file sdhci.h.

#define SDHCI_QUIRK_INVERTED_WRITE_PROTECT   (1<<16)

Definition at line 59 of file sdhci.h.

#define SDHCI_QUIRK_MISSING_CAPS   (1<<27)

Definition at line 81 of file sdhci.h.

#define SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12   (1<<28)

Definition at line 83 of file sdhci.h.

#define SDHCI_QUIRK_NO_BUSY_IRQ   (1<<14)

Definition at line 55 of file sdhci.h.

#define SDHCI_QUIRK_NO_CARD_NO_RESET   (1<<2)

Definition at line 31 of file sdhci.h.

#define SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC   (1<<26)

Definition at line 79 of file sdhci.h.

#define SDHCI_QUIRK_NO_HISPD_BIT   (1<<29)

Definition at line 85 of file sdhci.h.

#define SDHCI_QUIRK_NO_MULTIBLOCK   (1<<21)

Definition at line 69 of file sdhci.h.

#define SDHCI_QUIRK_NO_SIMULT_VDD_AND_POWER   (1<<11)

Definition at line 49 of file sdhci.h.

#define SDHCI_QUIRK_NONSTANDARD_CLOCK   (1<<17)

Definition at line 61 of file sdhci.h.

#define SDHCI_QUIRK_PIO_NEEDS_DELAY   (1<<18)

Definition at line 63 of file sdhci.h.

#define SDHCI_QUIRK_RESET_AFTER_REQUEST   (1<<10)

Definition at line 47 of file sdhci.h.

#define SDHCI_QUIRK_RESET_CMD_DATA_ON_IOS   (1<<4)

Definition at line 35 of file sdhci.h.

#define SDHCI_QUIRK_RESTORE_IRQS_AFTER_RESET   (1<<19)

Definition at line 65 of file sdhci.h.

#define SDHCI_QUIRK_SINGLE_POWER_WRITE   (1<<3)

Definition at line 33 of file sdhci.h.

#define SDHCI_QUIRK_UNSTABLE_RO_DETECT   (1<<31)

Definition at line 89 of file sdhci.h.

#define SDHCI_REQ_USE_DMA   (1<<2) /* Use DMA for this req. */

Definition at line 118 of file sdhci.h.

#define SDHCI_SDIO_IRQ_ENABLED   (1<<9) /* SDIO irq enabled */

Definition at line 125 of file sdhci.h.

#define SDHCI_SDR50_NEEDS_TUNING   (1<<4) /* SDR50 needs tuning */

Definition at line 120 of file sdhci.h.

#define SDHCI_TUNING_MODE_1   0

Definition at line 173 of file sdhci.h.

#define SDHCI_USE_ADMA   (1<<1) /* Host is ADMA capable */

Definition at line 117 of file sdhci.h.

#define SDHCI_USE_SDMA   (1<<0) /* Host is SDMA capable */

Definition at line 116 of file sdhci.h.

#define SDHCI_USING_RETUNING_TIMER   (1<<11) /* Host is using a retuning timer for the card */

Definition at line 127 of file sdhci.h.