Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
card.h File Reference
#include <linux/device.h>
#include <linux/mmc/core.h>
#include <linux/mod_devicetable.h>

Go to the source code of this file.

Data Structures

struct  mmc_cid
 
struct  mmc_csd
 
struct  mmc_ext_csd
 
struct  sd_scr
 
struct  sd_ssr
 
struct  sd_switch_caps
 
struct  sdio_cccr
 
struct  sdio_cis
 
struct  mmc_part
 
struct  mmc_card
 
struct  mmc_fixup
 
struct  mmc_driver
 

Macros

#define MMC_HIGH_26_MAX_DTR   26000000
 
#define MMC_HIGH_52_MAX_DTR   52000000
 
#define MMC_HIGH_DDR_MAX_DTR   52000000
 
#define MMC_HS200_MAX_DTR   200000000
 
#define MMC_DISCARD_FEATURE   BIT(0) /* CMD38 feature */
 
#define SD_SCR_BUS_WIDTH_1   (1<<0)
 
#define SD_SCR_BUS_WIDTH_4   (1<<2)
 
#define SD_SCR_CMD20_SUPPORT   (1<<0)
 
#define SD_SCR_CMD23_SUPPORT   (1<<1)
 
#define HIGH_SPEED_MAX_DTR   50000000
 
#define UHS_SDR104_MAX_DTR   208000000
 
#define UHS_SDR50_MAX_DTR   100000000
 
#define UHS_DDR50_MAX_DTR   50000000
 
#define UHS_SDR25_MAX_DTR   UHS_DDR50_MAX_DTR
 
#define UHS_SDR12_MAX_DTR   25000000
 
#define UHS_SDR12_BUS_SPEED   0
 
#define HIGH_SPEED_BUS_SPEED   1
 
#define UHS_SDR25_BUS_SPEED   1
 
#define UHS_SDR50_BUS_SPEED   2
 
#define UHS_SDR104_BUS_SPEED   3
 
#define UHS_DDR50_BUS_SPEED   4
 
#define SD_MODE_HIGH_SPEED   (1 << HIGH_SPEED_BUS_SPEED)
 
#define SD_MODE_UHS_SDR12   (1 << UHS_SDR12_BUS_SPEED)
 
#define SD_MODE_UHS_SDR25   (1 << UHS_SDR25_BUS_SPEED)
 
#define SD_MODE_UHS_SDR50   (1 << UHS_SDR50_BUS_SPEED)
 
#define SD_MODE_UHS_SDR104   (1 << UHS_SDR104_BUS_SPEED)
 
#define SD_MODE_UHS_DDR50   (1 << UHS_DDR50_BUS_SPEED)
 
#define SD_DRIVER_TYPE_B   0x01
 
#define SD_DRIVER_TYPE_A   0x02
 
#define SD_DRIVER_TYPE_C   0x04
 
#define SD_DRIVER_TYPE_D   0x08
 
#define SD_SET_CURRENT_LIMIT_200   0
 
#define SD_SET_CURRENT_LIMIT_400   1
 
#define SD_SET_CURRENT_LIMIT_600   2
 
#define SD_SET_CURRENT_LIMIT_800   3
 
#define SD_SET_CURRENT_NO_CHANGE   (-1)
 
#define SD_MAX_CURRENT_200   (1 << SD_SET_CURRENT_LIMIT_200)
 
#define SD_MAX_CURRENT_400   (1 << SD_SET_CURRENT_LIMIT_400)
 
#define SD_MAX_CURRENT_600   (1 << SD_SET_CURRENT_LIMIT_600)
 
#define SD_MAX_CURRENT_800   (1 << SD_SET_CURRENT_LIMIT_800)
 
#define SDIO_MAX_FUNCS   7
 
#define MMC_NUM_BOOT_PARTITION   2
 
#define MMC_NUM_GP_PARTITION   4
 
#define MMC_NUM_PHY_PARTITION   6
 
#define MAX_MMC_PART_NAME_LEN   20
 
#define MMC_BLK_DATA_AREA_MAIN   (1<<0)
 
#define MMC_BLK_DATA_AREA_BOOT   (1<<1)
 
#define MMC_BLK_DATA_AREA_GP   (1<<2)
 
#define MMC_TYPE_MMC   0 /* MMC card */
 
#define MMC_TYPE_SD   1 /* SD card */
 
#define MMC_TYPE_SDIO   2 /* SDIO card */
 
#define MMC_TYPE_SD_COMBO   3 /* SD combo (IO+mem) card */
 
#define MMC_STATE_PRESENT   (1<<0) /* present in sysfs */
 
#define MMC_STATE_READONLY   (1<<1) /* card is read-only */
 
#define MMC_STATE_HIGHSPEED   (1<<2) /* card is in high speed mode */
 
#define MMC_STATE_BLOCKADDR   (1<<3) /* card uses block-addressing */
 
#define MMC_STATE_HIGHSPEED_DDR   (1<<4) /* card is in high speed mode */
 
#define MMC_STATE_ULTRAHIGHSPEED   (1<<5) /* card is in ultra high speed mode */
 
#define MMC_CARD_SDXC   (1<<6) /* card is SDXC */
 
#define MMC_CARD_REMOVED   (1<<7) /* card has been removed */
 
#define MMC_STATE_HIGHSPEED_200   (1<<8) /* card is in HS200 mode */
 
#define MMC_STATE_DOING_BKOPS   (1<<10) /* card is doing BKOPS */
 
#define MMC_QUIRK_LENIENT_FN0   (1<<0) /* allow SDIO FN0 writes outside of the VS CCCR range */
 
#define MMC_QUIRK_BLKSZ_FOR_BYTE_MODE   (1<<1) /* use func->cur_blksize */
 
#define MMC_QUIRK_NONSTD_SDIO   (1<<2) /* non-standard SDIO card attached */
 
#define MMC_QUIRK_BROKEN_CLK_GATING   (1<<3) /* clock gating the sdio bus will make card fail */
 
#define MMC_QUIRK_NONSTD_FUNC_IF   (1<<4) /* SDIO card has nonstd function interfaces */
 
#define MMC_QUIRK_DISABLE_CD   (1<<5) /* disconnect CD/DAT[3] resistor */
 
#define MMC_QUIRK_INAND_CMD38   (1<<6) /* iNAND devices have broken CMD38 */
 
#define MMC_QUIRK_BLK_NO_CMD23   (1<<7) /* Avoid CMD23 for regular multiblock */
 
#define MMC_QUIRK_BROKEN_BYTE_MODE_512   (1<<8) /* Avoid sending 512 bytes in */
 
#define MMC_QUIRK_LONG_READ_TIME   (1<<9) /* Data read time > CSD says */
 
#define MMC_QUIRK_SEC_ERASE_TRIM_BROKEN   (1<<10) /* Skip secure for erase/trim */
 
#define CID_MANFID_ANY   (-1u)
 
#define CID_OEMID_ANY   ((unsigned short) -1)
 
#define CID_NAME_ANY   (NULL)
 
#define END_FIXUP   { 0 }
 
#define _FIXUP_EXT(_name, _manfid, _oemid, _rev_start, _rev_end, _cis_vendor, _cis_device,_fixup, _data)
 
#define MMC_FIXUP_REV(_name, _manfid, _oemid, _rev_start, _rev_end, _fixup, _data)
 
#define MMC_FIXUP(_name, _manfid, _oemid, _fixup, _data)   MMC_FIXUP_REV(_name, _manfid, _oemid, 0, -1ull, _fixup, _data)
 
#define SDIO_FIXUP(_vendor, _device, _fixup, _data)
 
#define cid_rev(hwrev, fwrev, year, month)
 
#define cid_rev_card(card)
 
#define mmc_card_mmc(c)   ((c)->type == MMC_TYPE_MMC)
 
#define mmc_card_sd(c)   ((c)->type == MMC_TYPE_SD)
 
#define mmc_card_sdio(c)   ((c)->type == MMC_TYPE_SDIO)
 
#define mmc_card_present(c)   ((c)->state & MMC_STATE_PRESENT)
 
#define mmc_card_readonly(c)   ((c)->state & MMC_STATE_READONLY)
 
#define mmc_card_highspeed(c)   ((c)->state & MMC_STATE_HIGHSPEED)
 
#define mmc_card_hs200(c)   ((c)->state & MMC_STATE_HIGHSPEED_200)
 
#define mmc_card_blockaddr(c)   ((c)->state & MMC_STATE_BLOCKADDR)
 
#define mmc_card_ddr_mode(c)   ((c)->state & MMC_STATE_HIGHSPEED_DDR)
 
#define mmc_card_uhs(c)   ((c)->state & MMC_STATE_ULTRAHIGHSPEED)
 
#define mmc_sd_card_uhs(c)   ((c)->state & MMC_STATE_ULTRAHIGHSPEED)
 
#define mmc_card_ext_capacity(c)   ((c)->state & MMC_CARD_SDXC)
 
#define mmc_card_removed(c)   ((c) && ((c)->state & MMC_CARD_REMOVED))
 
#define mmc_card_doing_bkops(c)   ((c)->state & MMC_STATE_DOING_BKOPS)
 
#define mmc_card_set_present(c)   ((c)->state |= MMC_STATE_PRESENT)
 
#define mmc_card_set_readonly(c)   ((c)->state |= MMC_STATE_READONLY)
 
#define mmc_card_set_highspeed(c)   ((c)->state |= MMC_STATE_HIGHSPEED)
 
#define mmc_card_set_hs200(c)   ((c)->state |= MMC_STATE_HIGHSPEED_200)
 
#define mmc_card_set_blockaddr(c)   ((c)->state |= MMC_STATE_BLOCKADDR)
 
#define mmc_card_set_ddr_mode(c)   ((c)->state |= MMC_STATE_HIGHSPEED_DDR)
 
#define mmc_card_set_uhs(c)   ((c)->state |= MMC_STATE_ULTRAHIGHSPEED)
 
#define mmc_sd_card_set_uhs(c)   ((c)->state |= MMC_STATE_ULTRAHIGHSPEED)
 
#define mmc_card_set_ext_capacity(c)   ((c)->state |= MMC_CARD_SDXC)
 
#define mmc_card_set_removed(c)   ((c)->state |= MMC_CARD_REMOVED)
 
#define mmc_card_set_doing_bkops(c)   ((c)->state |= MMC_STATE_DOING_BKOPS)
 
#define mmc_card_clr_doing_bkops(c)   ((c)->state &= ~MMC_STATE_DOING_BKOPS)
 
#define mmc_card_name(c)   ((c)->cid.prod_name)
 
#define mmc_card_id(c)   (dev_name(&(c)->dev))
 
#define mmc_dev_to_card(d)   container_of(d, struct mmc_card, dev)
 
#define mmc_list_to_card(l)   container_of(l, struct mmc_card, node)
 
#define mmc_get_drvdata(c)   dev_get_drvdata(&(c)->dev)
 
#define mmc_set_drvdata(c, d)   dev_set_drvdata(&(c)->dev, d)
 

Functions

int mmc_register_driver (struct mmc_driver *)
 
void mmc_unregister_driver (struct mmc_driver *)
 
void mmc_fixup_device (struct mmc_card *card, const struct mmc_fixup *table)
 

Macro Definition Documentation

#define _FIXUP_EXT (   _name,
  _manfid,
  _oemid,
  _rev_start,
  _rev_end,
  _cis_vendor,
  _cis_device,
  _fixup,
  _data 
)
Value:
{ \
.name = (_name), \
.manfid = (_manfid), \
.oemid = (_oemid), \
.rev_start = (_rev_start), \
.rev_end = (_rev_end), \
.cis_vendor = (_cis_vendor), \
.cis_device = (_cis_device), \
.vendor_fixup = (_fixup), \
.data = (_data), \
}

Definition at line 324 of file card.h.

#define CID_MANFID_ANY   (-1u)

Definition at line 318 of file card.h.

#define CID_NAME_ANY   (NULL)

Definition at line 320 of file card.h.

#define CID_OEMID_ANY   ((unsigned short) -1)

Definition at line 319 of file card.h.

#define cid_rev (   hwrev,
  fwrev,
  year,
  month 
)
Value:
(((u64) hwrev) << 40 | \
((u64) fwrev) << 32 | \
((u64) year) << 16 | \
((u64) month))

Definition at line 355 of file card.h.

#define cid_rev_card (   card)
Value:
cid_rev(card->cid.hwrev, \
card->cid.fwrev, \
card->cid.year, \
card->cid.month)

Definition at line 361 of file card.h.

#define END_FIXUP   { 0 }

Definition at line 322 of file card.h.

#define HIGH_SPEED_BUS_SPEED   1

Definition at line 135 of file card.h.

#define HIGH_SPEED_MAX_DTR   50000000

Definition at line 127 of file card.h.

#define MAX_MMC_PART_NAME_LEN   20

Definition at line 195 of file card.h.

#define MMC_BLK_DATA_AREA_BOOT   (1<<1)

Definition at line 207 of file card.h.

#define MMC_BLK_DATA_AREA_GP   (1<<2)

Definition at line 208 of file card.h.

#define MMC_BLK_DATA_AREA_MAIN   (1<<0)

Definition at line 206 of file card.h.

#define mmc_card_blockaddr (   c)    ((c)->state & MMC_STATE_BLOCKADDR)

Definition at line 389 of file card.h.

#define mmc_card_clr_doing_bkops (   c)    ((c)->state &= ~MMC_STATE_DOING_BKOPS)

Definition at line 408 of file card.h.

#define mmc_card_ddr_mode (   c)    ((c)->state & MMC_STATE_HIGHSPEED_DDR)

Definition at line 390 of file card.h.

#define mmc_card_doing_bkops (   c)    ((c)->state & MMC_STATE_DOING_BKOPS)

Definition at line 395 of file card.h.

#define mmc_card_ext_capacity (   c)    ((c)->state & MMC_CARD_SDXC)

Definition at line 393 of file card.h.

#define mmc_card_highspeed (   c)    ((c)->state & MMC_STATE_HIGHSPEED)

Definition at line 387 of file card.h.

#define mmc_card_hs200 (   c)    ((c)->state & MMC_STATE_HIGHSPEED_200)

Definition at line 388 of file card.h.

#define mmc_card_id (   c)    (dev_name(&(c)->dev))

Definition at line 475 of file card.h.

#define mmc_card_mmc (   c)    ((c)->type == MMC_TYPE_MMC)

Definition at line 381 of file card.h.

#define mmc_card_name (   c)    ((c)->cid.prod_name)

Definition at line 474 of file card.h.

#define mmc_card_present (   c)    ((c)->state & MMC_STATE_PRESENT)

Definition at line 385 of file card.h.

#define mmc_card_readonly (   c)    ((c)->state & MMC_STATE_READONLY)

Definition at line 386 of file card.h.

#define MMC_CARD_REMOVED   (1<<7) /* card has been removed */

Definition at line 231 of file card.h.

#define mmc_card_removed (   c)    ((c) && ((c)->state & MMC_CARD_REMOVED))

Definition at line 394 of file card.h.

#define mmc_card_sd (   c)    ((c)->type == MMC_TYPE_SD)

Definition at line 382 of file card.h.

#define mmc_card_sdio (   c)    ((c)->type == MMC_TYPE_SDIO)

Definition at line 383 of file card.h.

#define MMC_CARD_SDXC   (1<<6) /* card is SDXC */

Definition at line 230 of file card.h.

#define mmc_card_set_blockaddr (   c)    ((c)->state |= MMC_STATE_BLOCKADDR)

Definition at line 401 of file card.h.

#define mmc_card_set_ddr_mode (   c)    ((c)->state |= MMC_STATE_HIGHSPEED_DDR)

Definition at line 402 of file card.h.

#define mmc_card_set_doing_bkops (   c)    ((c)->state |= MMC_STATE_DOING_BKOPS)

Definition at line 407 of file card.h.

#define mmc_card_set_ext_capacity (   c)    ((c)->state |= MMC_CARD_SDXC)

Definition at line 405 of file card.h.

#define mmc_card_set_highspeed (   c)    ((c)->state |= MMC_STATE_HIGHSPEED)

Definition at line 399 of file card.h.

#define mmc_card_set_hs200 (   c)    ((c)->state |= MMC_STATE_HIGHSPEED_200)

Definition at line 400 of file card.h.

#define mmc_card_set_present (   c)    ((c)->state |= MMC_STATE_PRESENT)

Definition at line 397 of file card.h.

#define mmc_card_set_readonly (   c)    ((c)->state |= MMC_STATE_READONLY)

Definition at line 398 of file card.h.

#define mmc_card_set_removed (   c)    ((c)->state |= MMC_CARD_REMOVED)

Definition at line 406 of file card.h.

#define mmc_card_set_uhs (   c)    ((c)->state |= MMC_STATE_ULTRAHIGHSPEED)

Definition at line 403 of file card.h.

#define mmc_card_uhs (   c)    ((c)->state & MMC_STATE_ULTRAHIGHSPEED)

Definition at line 391 of file card.h.

#define mmc_dev_to_card (   d)    container_of(d, struct mmc_card, dev)

Definition at line 477 of file card.h.

#define MMC_DISCARD_FEATURE   BIT(0) /* CMD38 feature */

Definition at line 104 of file card.h.

#define MMC_FIXUP (   _name,
  _manfid,
  _oemid,
  _fixup,
  _data 
)    MMC_FIXUP_REV(_name, _manfid, _oemid, 0, -1ull, _fixup, _data)

Definition at line 346 of file card.h.

#define MMC_FIXUP_REV (   _name,
  _manfid,
  _oemid,
  _rev_start,
  _rev_end,
  _fixup,
  _data 
)
Value:
_FIXUP_EXT(_name, _manfid, \
_oemid, _rev_start, _rev_end, \
_fixup, _data) \

Definition at line 339 of file card.h.

#define mmc_get_drvdata (   c)    dev_get_drvdata(&(c)->dev)

Definition at line 480 of file card.h.

#define MMC_HIGH_26_MAX_DTR   26000000

Definition at line 62 of file card.h.

#define MMC_HIGH_52_MAX_DTR   52000000

Definition at line 63 of file card.h.

#define MMC_HIGH_DDR_MAX_DTR   52000000

Definition at line 64 of file card.h.

#define MMC_HS200_MAX_DTR   200000000

Definition at line 65 of file card.h.

#define mmc_list_to_card (   l)    container_of(l, struct mmc_card, node)

Definition at line 479 of file card.h.

#define MMC_NUM_BOOT_PARTITION   2

Definition at line 192 of file card.h.

#define MMC_NUM_GP_PARTITION   4

Definition at line 193 of file card.h.

#define MMC_NUM_PHY_PARTITION   6

Definition at line 194 of file card.h.

#define MMC_QUIRK_BLK_NO_CMD23   (1<<7) /* Avoid CMD23 for regular multiblock */

Definition at line 244 of file card.h.

#define MMC_QUIRK_BLKSZ_FOR_BYTE_MODE   (1<<1) /* use func->cur_blksize */

Definition at line 236 of file card.h.

#define MMC_QUIRK_BROKEN_BYTE_MODE_512   (1<<8) /* Avoid sending 512 bytes in */

Definition at line 245 of file card.h.

#define MMC_QUIRK_BROKEN_CLK_GATING   (1<<3) /* clock gating the sdio bus will make card fail */

Definition at line 240 of file card.h.

#define MMC_QUIRK_DISABLE_CD   (1<<5) /* disconnect CD/DAT[3] resistor */

Definition at line 242 of file card.h.

#define MMC_QUIRK_INAND_CMD38   (1<<6) /* iNAND devices have broken CMD38 */

Definition at line 243 of file card.h.

#define MMC_QUIRK_LENIENT_FN0   (1<<0) /* allow SDIO FN0 writes outside of the VS CCCR range */

Definition at line 235 of file card.h.

#define MMC_QUIRK_LONG_READ_TIME   (1<<9) /* Data read time > CSD says */

Definition at line 246 of file card.h.

#define MMC_QUIRK_NONSTD_FUNC_IF   (1<<4) /* SDIO card has nonstd function interfaces */

Definition at line 241 of file card.h.

#define MMC_QUIRK_NONSTD_SDIO   (1<<2) /* non-standard SDIO card attached */

Definition at line 238 of file card.h.

#define MMC_QUIRK_SEC_ERASE_TRIM_BROKEN   (1<<10) /* Skip secure for erase/trim */

Definition at line 247 of file card.h.

#define mmc_sd_card_set_uhs (   c)    ((c)->state |= MMC_STATE_ULTRAHIGHSPEED)

Definition at line 404 of file card.h.

#define mmc_sd_card_uhs (   c)    ((c)->state & MMC_STATE_ULTRAHIGHSPEED)

Definition at line 392 of file card.h.

#define mmc_set_drvdata (   c,
  d 
)    dev_set_drvdata(&(c)->dev, d)

Definition at line 481 of file card.h.

#define MMC_STATE_BLOCKADDR   (1<<3) /* card uses block-addressing */

Definition at line 227 of file card.h.

#define MMC_STATE_DOING_BKOPS   (1<<10) /* card is doing BKOPS */

Definition at line 233 of file card.h.

#define MMC_STATE_HIGHSPEED   (1<<2) /* card is in high speed mode */

Definition at line 226 of file card.h.

#define MMC_STATE_HIGHSPEED_200   (1<<8) /* card is in HS200 mode */

Definition at line 232 of file card.h.

#define MMC_STATE_HIGHSPEED_DDR   (1<<4) /* card is in high speed mode */

Definition at line 228 of file card.h.

#define MMC_STATE_PRESENT   (1<<0) /* present in sysfs */

Definition at line 224 of file card.h.

#define MMC_STATE_READONLY   (1<<1) /* card is read-only */

Definition at line 225 of file card.h.

#define MMC_STATE_ULTRAHIGHSPEED   (1<<5) /* card is in ultra high speed mode */

Definition at line 229 of file card.h.

#define MMC_TYPE_MMC   0 /* MMC card */

Definition at line 219 of file card.h.

#define MMC_TYPE_SD   1 /* SD card */

Definition at line 220 of file card.h.

#define MMC_TYPE_SD_COMBO   3 /* SD combo (IO+mem) card */

Definition at line 222 of file card.h.

#define MMC_TYPE_SDIO   2 /* SDIO card */

Definition at line 221 of file card.h.

#define SD_DRIVER_TYPE_A   0x02

Definition at line 149 of file card.h.

#define SD_DRIVER_TYPE_B   0x01

Definition at line 148 of file card.h.

#define SD_DRIVER_TYPE_C   0x04

Definition at line 150 of file card.h.

#define SD_DRIVER_TYPE_D   0x08

Definition at line 151 of file card.h.

#define SD_MAX_CURRENT_200   (1 << SD_SET_CURRENT_LIMIT_200)

Definition at line 159 of file card.h.

#define SD_MAX_CURRENT_400   (1 << SD_SET_CURRENT_LIMIT_400)

Definition at line 160 of file card.h.

#define SD_MAX_CURRENT_600   (1 << SD_SET_CURRENT_LIMIT_600)

Definition at line 161 of file card.h.

#define SD_MAX_CURRENT_800   (1 << SD_SET_CURRENT_LIMIT_800)

Definition at line 162 of file card.h.

#define SD_MODE_HIGH_SPEED   (1 << HIGH_SPEED_BUS_SPEED)

Definition at line 141 of file card.h.

#define SD_MODE_UHS_DDR50   (1 << UHS_DDR50_BUS_SPEED)

Definition at line 146 of file card.h.

#define SD_MODE_UHS_SDR104   (1 << UHS_SDR104_BUS_SPEED)

Definition at line 145 of file card.h.

#define SD_MODE_UHS_SDR12   (1 << UHS_SDR12_BUS_SPEED)

Definition at line 142 of file card.h.

#define SD_MODE_UHS_SDR25   (1 << UHS_SDR25_BUS_SPEED)

Definition at line 143 of file card.h.

#define SD_MODE_UHS_SDR50   (1 << UHS_SDR50_BUS_SPEED)

Definition at line 144 of file card.h.

#define SD_SCR_BUS_WIDTH_1   (1<<0)

Definition at line 111 of file card.h.

#define SD_SCR_BUS_WIDTH_4   (1<<2)

Definition at line 112 of file card.h.

#define SD_SCR_CMD20_SUPPORT   (1<<0)

Definition at line 114 of file card.h.

#define SD_SCR_CMD23_SUPPORT   (1<<1)

Definition at line 115 of file card.h.

#define SD_SET_CURRENT_LIMIT_200   0

Definition at line 153 of file card.h.

#define SD_SET_CURRENT_LIMIT_400   1

Definition at line 154 of file card.h.

#define SD_SET_CURRENT_LIMIT_600   2

Definition at line 155 of file card.h.

#define SD_SET_CURRENT_LIMIT_800   3

Definition at line 156 of file card.h.

#define SD_SET_CURRENT_NO_CHANGE   (-1)

Definition at line 157 of file card.h.

#define SDIO_FIXUP (   _vendor,
  _device,
  _fixup,
  _data 
)
Value:
CID_OEMID_ANY, 0, -1ull, \
_vendor, _device, \
_fixup, _data) \

Definition at line 349 of file card.h.

#define SDIO_MAX_FUNCS   7

Definition at line 187 of file card.h.

#define UHS_DDR50_BUS_SPEED   4

Definition at line 139 of file card.h.

#define UHS_DDR50_MAX_DTR   50000000

Definition at line 130 of file card.h.

#define UHS_SDR104_BUS_SPEED   3

Definition at line 138 of file card.h.

#define UHS_SDR104_MAX_DTR   208000000

Definition at line 128 of file card.h.

#define UHS_SDR12_BUS_SPEED   0

Definition at line 134 of file card.h.

#define UHS_SDR12_MAX_DTR   25000000

Definition at line 132 of file card.h.

#define UHS_SDR25_BUS_SPEED   1

Definition at line 136 of file card.h.

#define UHS_SDR25_MAX_DTR   UHS_DDR50_MAX_DTR

Definition at line 131 of file card.h.

#define UHS_SDR50_BUS_SPEED   2

Definition at line 137 of file card.h.

#define UHS_SDR50_MAX_DTR   100000000

Definition at line 129 of file card.h.

Function Documentation

void mmc_fixup_device ( struct mmc_card card,
const struct mmc_fixup table 
)

Definition at line 64 of file quirks.c.

int mmc_register_driver ( struct mmc_driver drv)

mmc_register_driver - register a media driver : MMC media driver

Definition at line 202 of file bus.c.

void mmc_unregister_driver ( struct mmc_driver drv)

mmc_unregister_driver - unregister a media driver : MMC media driver

Definition at line 214 of file bus.c.