TianoCore EDK2 master
Loading...
Searching...
No Matches
Emmc.h File Reference

Go to the source code of this file.

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

Definition in file Emmc.h.

Macro Definition Documentation

◆ EMMC_ALL_SEND_CID

#define EMMC_ALL_SEND_CID   2

Definition at line 19 of file Emmc.h.

◆ EMMC_APP_CMD

#define EMMC_APP_CMD   55

Definition at line 55 of file Emmc.h.

◆ EMMC_BUSTEST_R

#define EMMC_BUSTEST_R   14

Definition at line 30 of file Emmc.h.

◆ EMMC_BUSTEST_W

#define EMMC_BUSTEST_W   19

Definition at line 35 of file Emmc.h.

◆ EMMC_CLR_WRITE_PROT

#define EMMC_CLR_WRITE_PROT   29

Definition at line 43 of file Emmc.h.

◆ EMMC_ERASE

#define EMMC_ERASE   38

Definition at line 48 of file Emmc.h.

◆ EMMC_ERASE_GROUP_END

#define EMMC_ERASE_GROUP_END   36

Definition at line 47 of file Emmc.h.

◆ EMMC_ERASE_GROUP_START

#define EMMC_ERASE_GROUP_START   35

Definition at line 46 of file Emmc.h.

◆ EMMC_FAST_IO

#define EMMC_FAST_IO   39

Definition at line 49 of file Emmc.h.

◆ EMMC_GEN_CMD

#define EMMC_GEN_CMD   56

Definition at line 56 of file Emmc.h.

◆ EMMC_GO_IDLE_STATE

#define EMMC_GO_IDLE_STATE   0

Definition at line 17 of file Emmc.h.

◆ EMMC_GO_INACTIVE_STATE

#define EMMC_GO_INACTIVE_STATE   15

Definition at line 31 of file Emmc.h.

◆ EMMC_GO_IRQ_STATE

#define EMMC_GO_IRQ_STATE   40

Definition at line 50 of file Emmc.h.

◆ EMMC_LOCK_UNLOCK

#define EMMC_LOCK_UNLOCK   42

Definition at line 51 of file Emmc.h.

◆ EMMC_PROGRAM_CID

#define EMMC_PROGRAM_CID   26

Definition at line 40 of file Emmc.h.

◆ EMMC_PROGRAM_CSD

#define EMMC_PROGRAM_CSD   27

Definition at line 41 of file Emmc.h.

◆ EMMC_PROTOCOL_RD

#define EMMC_PROTOCOL_RD   53

Definition at line 53 of file Emmc.h.

◆ EMMC_PROTOCOL_WR

#define EMMC_PROTOCOL_WR   54

Definition at line 54 of file Emmc.h.

◆ EMMC_READ_MULTIPLE_BLOCK

#define EMMC_READ_MULTIPLE_BLOCK   18

Definition at line 34 of file Emmc.h.

◆ EMMC_READ_SINGLE_BLOCK

#define EMMC_READ_SINGLE_BLOCK   17

Definition at line 33 of file Emmc.h.

◆ EMMC_SELECT_DESELECT_CARD

#define EMMC_SELECT_DESELECT_CARD   7

Definition at line 24 of file Emmc.h.

◆ EMMC_SEND_CID

#define EMMC_SEND_CID   10

Definition at line 27 of file Emmc.h.

◆ EMMC_SEND_CSD

#define EMMC_SEND_CSD   9

Definition at line 26 of file Emmc.h.

◆ EMMC_SEND_EXT_CSD

#define EMMC_SEND_EXT_CSD   8

Definition at line 25 of file Emmc.h.

◆ EMMC_SEND_OP_COND

#define EMMC_SEND_OP_COND   1

Definition at line 18 of file Emmc.h.

◆ EMMC_SEND_STATUS

#define EMMC_SEND_STATUS   13

Definition at line 29 of file Emmc.h.

◆ EMMC_SEND_TUNING_BLOCK

#define EMMC_SEND_TUNING_BLOCK   21

Definition at line 36 of file Emmc.h.

◆ EMMC_SEND_WRITE_PROT

#define EMMC_SEND_WRITE_PROT   30

Definition at line 44 of file Emmc.h.

◆ EMMC_SEND_WRITE_PROT_TYPE

#define EMMC_SEND_WRITE_PROT_TYPE   31

Definition at line 45 of file Emmc.h.

◆ EMMC_SET_BLOCK_COUNT

#define EMMC_SET_BLOCK_COUNT   23

Definition at line 37 of file Emmc.h.

◆ EMMC_SET_BLOCKLEN

#define EMMC_SET_BLOCKLEN   16

Definition at line 32 of file Emmc.h.

◆ EMMC_SET_DSR

#define EMMC_SET_DSR   4

Definition at line 21 of file Emmc.h.

◆ EMMC_SET_RELATIVE_ADDR

#define EMMC_SET_RELATIVE_ADDR   3

Definition at line 20 of file Emmc.h.

◆ EMMC_SET_TIME

#define EMMC_SET_TIME   49

Definition at line 52 of file Emmc.h.

◆ EMMC_SET_WRITE_PROT

#define EMMC_SET_WRITE_PROT   28

Definition at line 42 of file Emmc.h.

◆ EMMC_SLEEP_AWAKE

#define EMMC_SLEEP_AWAKE   5

Definition at line 22 of file Emmc.h.

◆ EMMC_STOP_TRANSMISSION

#define EMMC_STOP_TRANSMISSION   12

Definition at line 28 of file Emmc.h.

◆ EMMC_SWITCH

#define EMMC_SWITCH   6

Definition at line 23 of file Emmc.h.

◆ EMMC_WRITE_BLOCK

#define EMMC_WRITE_BLOCK   24

Definition at line 38 of file Emmc.h.

◆ EMMC_WRITE_MULTIPLE_BLOCK

#define EMMC_WRITE_MULTIPLE_BLOCK   25

Definition at line 39 of file Emmc.h.

Enumeration Type Documentation

◆ EMMC_PARTITION_TYPE

enum EMMC_PARTITION_TYPE

Definition at line 58 of file Emmc.h.