|
#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) |
|