MdePkg[all]  1.08
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Emmc.h File Reference

Data Structures

struct  EMMC_CID
 
struct  EMMC_CSD
 
struct  EMMC_EXT_CSD
 

Macros

#define EMMC_GO_IDLE_STATE   0
 
#define EMMC_SEND_OP_COND   1
 
#define EMMC_ALL_SEND_CID   2
 
#define EMMC_SET_RELATIVE_ADDR   3
 
#define EMMC_SET_DSR   4
 
#define EMMC_SLEEP_AWAKE   5
 
#define EMMC_SWITCH   6
 
#define EMMC_SELECT_DESELECT_CARD   7
 
#define EMMC_SEND_EXT_CSD   8
 
#define EMMC_SEND_CSD   9
 
#define EMMC_SEND_CID   10
 
#define EMMC_STOP_TRANSMISSION   12
 
#define EMMC_SEND_STATUS   13
 
#define EMMC_BUSTEST_R   14
 
#define EMMC_GO_INACTIVE_STATE   15
 
#define EMMC_SET_BLOCKLEN   16
 
#define EMMC_READ_SINGLE_BLOCK   17
 
#define EMMC_READ_MULTIPLE_BLOCK   18
 
#define EMMC_BUSTEST_W   19
 
#define EMMC_SEND_TUNING_BLOCK   21
 
#define EMMC_SET_BLOCK_COUNT   23
 
#define EMMC_WRITE_BLOCK   24
 
#define EMMC_WRITE_MULTIPLE_BLOCK   25
 
#define EMMC_PROGRAM_CID   26
 
#define EMMC_PROGRAM_CSD   27
 
#define EMMC_SET_WRITE_PROT   28
 
#define EMMC_CLR_WRITE_PROT   29
 
#define EMMC_SEND_WRITE_PROT   30
 
#define EMMC_SEND_WRITE_PROT_TYPE   31
 
#define EMMC_ERASE_GROUP_START   35
 
#define EMMC_ERASE_GROUP_END   36
 
#define EMMC_ERASE   38
 
#define EMMC_FAST_IO   39
 
#define EMMC_GO_IRQ_STATE   40
 
#define EMMC_LOCK_UNLOCK   42
 
#define EMMC_SET_TIME   49
 
#define EMMC_PROTOCOL_RD   53
 
#define EMMC_PROTOCOL_WR   54
 
#define EMMC_APP_CMD   55
 
#define EMMC_GEN_CMD   56
 

Enumerations

enum  EMMC_PARTITION_TYPE {
  EmmcPartitionUserData = 0, EmmcPartitionBoot1 = 1, EmmcPartitionBoot2 = 2, EmmcPartitionRPMB = 3,
  EmmcPartitionGP1 = 4, EmmcPartitionGP2 = 5, EmmcPartitionGP3 = 6, EmmcPartitionGP4 = 7,
  EmmcPartitionUnknown
}
 

Detailed Description

Header file for eMMC support.

This header file contains some definitions defined in EMMC4.5/EMMC5.0 spec.

Copyright (c) 2015, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Macro Definition Documentation

#define EMMC_ALL_SEND_CID   2
#define EMMC_APP_CMD   55
#define EMMC_BUSTEST_R   14
#define EMMC_BUSTEST_W   19
#define EMMC_CLR_WRITE_PROT   29
#define EMMC_ERASE   38
#define EMMC_ERASE_GROUP_END   36
#define EMMC_ERASE_GROUP_START   35
#define EMMC_FAST_IO   39
#define EMMC_GEN_CMD   56
#define EMMC_GO_IDLE_STATE   0
#define EMMC_GO_INACTIVE_STATE   15
#define EMMC_GO_IRQ_STATE   40
#define EMMC_LOCK_UNLOCK   42
#define EMMC_PROGRAM_CID   26
#define EMMC_PROGRAM_CSD   27
#define EMMC_PROTOCOL_RD   53
#define EMMC_PROTOCOL_WR   54
#define EMMC_READ_MULTIPLE_BLOCK   18
#define EMMC_READ_SINGLE_BLOCK   17
#define EMMC_SELECT_DESELECT_CARD   7
#define EMMC_SEND_CID   10
#define EMMC_SEND_CSD   9
#define EMMC_SEND_EXT_CSD   8
#define EMMC_SEND_OP_COND   1
#define EMMC_SEND_STATUS   13
#define EMMC_SEND_TUNING_BLOCK   21
#define EMMC_SEND_WRITE_PROT   30
#define EMMC_SEND_WRITE_PROT_TYPE   31
#define EMMC_SET_BLOCK_COUNT   23
#define EMMC_SET_BLOCKLEN   16
#define EMMC_SET_DSR   4
#define EMMC_SET_RELATIVE_ADDR   3
#define EMMC_SET_TIME   49
#define EMMC_SET_WRITE_PROT   28
#define EMMC_SLEEP_AWAKE   5
#define EMMC_STOP_TRANSMISSION   12
#define EMMC_SWITCH   6
#define EMMC_WRITE_BLOCK   24
#define EMMC_WRITE_MULTIPLE_BLOCK   25

Enumeration Type Documentation

Enumerator
EmmcPartitionUserData 
EmmcPartitionBoot1 
EmmcPartitionBoot2 
EmmcPartitionRPMB 
EmmcPartitionGP1 
EmmcPartitionGP2 
EmmcPartitionGP3 
EmmcPartitionGP4 
EmmcPartitionUnknown