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

Go to the source code of this file.

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

Definition in file Sd.h.

Macro Definition Documentation

◆ SD_ALL_SEND_CID

#define SD_ALL_SEND_CID   2

Definition at line 19 of file Sd.h.

◆ SD_APP_CMD

#define SD_APP_CMD   55

Definition at line 52 of file Sd.h.

◆ SD_CLR_WRITE_PROT

#define SD_CLR_WRITE_PROT   29

Definition at line 42 of file Sd.h.

◆ SD_ERASE

#define SD_ERASE   38

Definition at line 46 of file Sd.h.

◆ SD_ERASE_WR_BLK_END

#define SD_ERASE_WR_BLK_END   33

Definition at line 45 of file Sd.h.

◆ SD_ERASE_WR_BLK_START

#define SD_ERASE_WR_BLK_START   32

Definition at line 44 of file Sd.h.

◆ SD_GEN_CMD

#define SD_GEN_CMD   56

Definition at line 53 of file Sd.h.

◆ SD_GO_IDLE_STATE

#define SD_GO_IDLE_STATE   0

Definition at line 18 of file Sd.h.

◆ SD_GO_INACTIVE_STATE

#define SD_GO_INACTIVE_STATE   15

Definition at line 31 of file Sd.h.

◆ SD_LOCK_UNLOCK

#define SD_LOCK_UNLOCK   42

Definition at line 47 of file Sd.h.

◆ SD_PROGRAM_CSD

#define SD_PROGRAM_CSD   27

Definition at line 40 of file Sd.h.

◆ SD_READ_EXTR_MULTI

#define SD_READ_EXTR_MULTI   58

Definition at line 54 of file Sd.h.

◆ SD_READ_EXTR_SINGLE

#define SD_READ_EXTR_SINGLE   48

Definition at line 48 of file Sd.h.

◆ SD_READ_MULTIPLE_BLOCK

#define SD_READ_MULTIPLE_BLOCK   18

Definition at line 34 of file Sd.h.

◆ SD_READ_SINGLE_BLOCK

#define SD_READ_SINGLE_BLOCK   17

Definition at line 33 of file Sd.h.

◆ SD_SELECT_DESELECT_CARD

#define SD_SELECT_DESELECT_CARD   7

Definition at line 24 of file Sd.h.

◆ SD_SEND_CID

#define SD_SEND_CID   10

Definition at line 27 of file Sd.h.

◆ SD_SEND_CSD

#define SD_SEND_CSD   9

Definition at line 26 of file Sd.h.

◆ SD_SEND_IF_COND

#define SD_SEND_IF_COND   8

Definition at line 25 of file Sd.h.

◆ SD_SEND_NUM_WR_BLOCKS

#define SD_SEND_NUM_WR_BLOCKS   22

Definition at line 59 of file Sd.h.

◆ SD_SEND_OP_COND

#define SD_SEND_OP_COND   41

Definition at line 61 of file Sd.h.

◆ SD_SEND_SCR

#define SD_SEND_SCR   51

Definition at line 63 of file Sd.h.

◆ SD_SEND_STATUS

#define SD_SEND_STATUS   13

Definition at line 30 of file Sd.h.

◆ SD_SEND_TUNING_BLOCK

#define SD_SEND_TUNING_BLOCK   19

Definition at line 35 of file Sd.h.

◆ SD_SEND_WRITE_PROT

#define SD_SEND_WRITE_PROT   30

Definition at line 43 of file Sd.h.

◆ SD_SET_BLOCK_COUNT

#define SD_SET_BLOCK_COUNT   23

Definition at line 37 of file Sd.h.

◆ SD_SET_BLOCKLEN

#define SD_SET_BLOCKLEN   16

Definition at line 32 of file Sd.h.

◆ SD_SET_BUS_WIDTH

#define SD_SET_BUS_WIDTH   6

Definition at line 57 of file Sd.h.

◆ SD_SET_CLR_CARD_DETECT

#define SD_SET_CLR_CARD_DETECT   42

Definition at line 62 of file Sd.h.

◆ SD_SET_DSR

#define SD_SET_DSR   4

Definition at line 21 of file Sd.h.

◆ SD_SET_RELATIVE_ADDR

#define SD_SET_RELATIVE_ADDR   3

Definition at line 20 of file Sd.h.

◆ SD_SET_WR_BLK_ERASE_COUNT

#define SD_SET_WR_BLK_ERASE_COUNT   23

Definition at line 60 of file Sd.h.

◆ SD_SET_WRITE_PROT

#define SD_SET_WRITE_PROT   28

Definition at line 41 of file Sd.h.

◆ SD_SPEED_CLASS_CONTROL

#define SD_SPEED_CLASS_CONTROL   20

Definition at line 36 of file Sd.h.

◆ SD_STATUS

#define SD_STATUS   13

Definition at line 58 of file Sd.h.

◆ SD_STOP_TRANSMISSION

#define SD_STOP_TRANSMISSION   12

Definition at line 29 of file Sd.h.

◆ SD_SWITCH_FUNC

#define SD_SWITCH_FUNC   6

Definition at line 23 of file Sd.h.

◆ SD_VOLTAGE_SWITCH

#define SD_VOLTAGE_SWITCH   11

Definition at line 28 of file Sd.h.

◆ SD_WRITE_EXTR_MULTI

#define SD_WRITE_EXTR_MULTI   59

Definition at line 55 of file Sd.h.

◆ SD_WRITE_EXTR_SINGLE

#define SD_WRITE_EXTR_SINGLE   49

Definition at line 49 of file Sd.h.

◆ SD_WRITE_MULTIPLE_BLOCK

#define SD_WRITE_MULTIPLE_BLOCK   25

Definition at line 39 of file Sd.h.

◆ SD_WRITE_SINGLE_BLOCK

#define SD_WRITE_SINGLE_BLOCK   24

Definition at line 38 of file Sd.h.

◆ SDIO_RW_DIRECT

#define SDIO_RW_DIRECT   52

Definition at line 50 of file Sd.h.

◆ SDIO_RW_EXTENDED

#define SDIO_RW_EXTENDED   53

Definition at line 51 of file Sd.h.

◆ SDIO_SEND_OP_COND

#define SDIO_SEND_OP_COND   5

Definition at line 22 of file Sd.h.