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

Data Structures

struct  SD_CID
 
struct  SD_CSD
 
struct  SD_CSD2
 
struct  SD_SCR
 

Macros

#define SD_GO_IDLE_STATE   0
 
#define SD_ALL_SEND_CID   2
 
#define SD_SET_RELATIVE_ADDR   3
 
#define SD_SET_DSR   4
 
#define SDIO_SEND_OP_COND   5
 
#define SD_SWITCH_FUNC   6
 
#define SD_SELECT_DESELECT_CARD   7
 
#define SD_SEND_IF_COND   8
 
#define SD_SEND_CSD   9
 
#define SD_SEND_CID   10
 
#define SD_VOLTAGE_SWITCH   11
 
#define SD_STOP_TRANSMISSION   12
 
#define SD_SEND_STATUS   13
 
#define SD_GO_INACTIVE_STATE   15
 
#define SD_SET_BLOCKLEN   16
 
#define SD_READ_SINGLE_BLOCK   17
 
#define SD_READ_MULTIPLE_BLOCK   18
 
#define SD_SEND_TUNING_BLOCK   19
 
#define SD_SPEED_CLASS_CONTROL   20
 
#define SD_SET_BLOCK_COUNT   23
 
#define SD_WRITE_SINGLE_BLOCK   24
 
#define SD_WRITE_MULTIPLE_BLOCK   25
 
#define SD_PROGRAM_CSD   27
 
#define SD_SET_WRITE_PROT   28
 
#define SD_CLR_WRITE_PROT   29
 
#define SD_SEND_WRITE_PROT   30
 
#define SD_ERASE_WR_BLK_START   32
 
#define SD_ERASE_WR_BLK_END   33
 
#define SD_ERASE   38
 
#define SD_LOCK_UNLOCK   42
 
#define SD_READ_EXTR_SINGLE   48
 
#define SD_WRITE_EXTR_SINGLE   49
 
#define SDIO_RW_DIRECT   52
 
#define SDIO_RW_EXTENDED   53
 
#define SD_APP_CMD   55
 
#define SD_GEN_CMD   56
 
#define SD_READ_EXTR_MULTI   58
 
#define SD_WRITE_EXTR_MULTI   59
 
#define SD_SET_BUS_WIDTH   6
 
#define SD_STATUS   13
 
#define SD_SEND_NUM_WR_BLOCKS   22
 
#define SD_SET_WR_BLK_ERASE_COUNT   23
 
#define SD_SEND_OP_COND   41
 
#define SD_SET_CLR_CARD_DETECT   42
 
#define SD_SEND_SCR   51
 

Detailed Description

Header file for SD memory card support.

This header file contains some definitions defined in SD Physical Layer Simplified Specification Version 4.10 spec.

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

Macro Definition Documentation

#define SD_ALL_SEND_CID   2
#define SD_APP_CMD   55
#define SD_CLR_WRITE_PROT   29
#define SD_ERASE   38
#define SD_ERASE_WR_BLK_END   33
#define SD_ERASE_WR_BLK_START   32
#define SD_GEN_CMD   56
#define SD_GO_IDLE_STATE   0
#define SD_GO_INACTIVE_STATE   15
#define SD_LOCK_UNLOCK   42
#define SD_PROGRAM_CSD   27
#define SD_READ_EXTR_MULTI   58
#define SD_READ_EXTR_SINGLE   48
#define SD_READ_MULTIPLE_BLOCK   18
#define SD_READ_SINGLE_BLOCK   17
#define SD_SELECT_DESELECT_CARD   7
#define SD_SEND_CID   10
#define SD_SEND_CSD   9
#define SD_SEND_IF_COND   8
#define SD_SEND_NUM_WR_BLOCKS   22
#define SD_SEND_OP_COND   41
#define SD_SEND_SCR   51
#define SD_SEND_STATUS   13
#define SD_SEND_TUNING_BLOCK   19
#define SD_SEND_WRITE_PROT   30
#define SD_SET_BLOCK_COUNT   23
#define SD_SET_BLOCKLEN   16
#define SD_SET_BUS_WIDTH   6
#define SD_SET_CLR_CARD_DETECT   42
#define SD_SET_DSR   4
#define SD_SET_RELATIVE_ADDR   3
#define SD_SET_WR_BLK_ERASE_COUNT   23
#define SD_SET_WRITE_PROT   28
#define SD_SPEED_CLASS_CONTROL   20
#define SD_STATUS   13
#define SD_STOP_TRANSMISSION   12
#define SD_SWITCH_FUNC   6
#define SD_VOLTAGE_SWITCH   11
#define SD_WRITE_EXTR_MULTI   59
#define SD_WRITE_EXTR_SINGLE   49
#define SD_WRITE_MULTIPLE_BLOCK   25
#define SD_WRITE_SINGLE_BLOCK   24
#define SDIO_RW_DIRECT   52
#define SDIO_RW_EXTENDED   53
#define SDIO_SEND_OP_COND   5