coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mmc.h File Reference
Include dependency graph for mmc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MMC_HS_TIMING   0x00000100
 
#define MMC_HS_52MHZ   0x2
 
#define MMC_HS_200MHZ   0x10
 
#define MMC_HS400   0x40
 
#define SECURE_ERASE   0x80000000
 
#define MMC_STATUS_MASK   (~0x0206BF7F)
 
#define MMC_STATUS_RDY_FOR_DATA   (1 << 8)
 
#define MMC_STATUS_CURR_STATE   (0xf << 9)
 
#define MMC_STATUS_ERROR   (1 << 19)
 
#define MMC_SWITCH_MODE_CMD_SET   0x00 /* Change the command set */
 
#define MMC_SWITCH_MODE_SET_BITS
 
#define MMC_SWITCH_MODE_CLEAR_BITS
 
#define MMC_SWITCH_MODE_WRITE_BYTE   0x03 /* Set target byte to value */
 
#define R1_ILLEGAL_COMMAND   (1 << 22)
 
#define R1_APP_CMD   (1 << 5)
 
#define MMC_INIT_TIMEOUT_US   (1000 * 1000)
 
#define MMC_INIT_TIMEOUT_US_MS   1000
 

Functions

int storage_block_setup_media (struct storage_media *media, struct sd_mmc_ctrlr *ctrlr)
 

Macro Definition Documentation

◆ MMC_HS400

#define MMC_HS400   0x40

Definition at line 11 of file mmc.h.

◆ MMC_HS_200MHZ

#define MMC_HS_200MHZ   0x10

Definition at line 10 of file mmc.h.

◆ MMC_HS_52MHZ

#define MMC_HS_52MHZ   0x2

Definition at line 9 of file mmc.h.

◆ MMC_HS_TIMING

#define MMC_HS_TIMING   0x00000100

Definition at line 8 of file mmc.h.

◆ MMC_INIT_TIMEOUT_US

#define MMC_INIT_TIMEOUT_US   (1000 * 1000)

Definition at line 28 of file mmc.h.

◆ MMC_INIT_TIMEOUT_US_MS

#define MMC_INIT_TIMEOUT_US_MS   1000

Definition at line 29 of file mmc.h.

◆ MMC_STATUS_CURR_STATE

#define MMC_STATUS_CURR_STATE   (0xf << 9)

Definition at line 17 of file mmc.h.

◆ MMC_STATUS_ERROR

#define MMC_STATUS_ERROR   (1 << 19)

Definition at line 18 of file mmc.h.

◆ MMC_STATUS_MASK

#define MMC_STATUS_MASK   (~0x0206BF7F)

Definition at line 15 of file mmc.h.

◆ MMC_STATUS_RDY_FOR_DATA

#define MMC_STATUS_RDY_FOR_DATA   (1 << 8)

Definition at line 16 of file mmc.h.

◆ MMC_SWITCH_MODE_CLEAR_BITS

#define MMC_SWITCH_MODE_CLEAR_BITS
Value:
0x02 /* Clear bits in EXT_CSD byte
addressed by index, which are
1 in value field */

Definition at line 22 of file mmc.h.

◆ MMC_SWITCH_MODE_CMD_SET

#define MMC_SWITCH_MODE_CMD_SET   0x00 /* Change the command set */

Definition at line 20 of file mmc.h.

◆ MMC_SWITCH_MODE_SET_BITS

#define MMC_SWITCH_MODE_SET_BITS
Value:
0x01 /* Set bits in EXT_CSD byte
addressed by index which are
1 in value field */

Definition at line 21 of file mmc.h.

◆ MMC_SWITCH_MODE_WRITE_BYTE

#define MMC_SWITCH_MODE_WRITE_BYTE   0x03 /* Set target byte to value */

Definition at line 23 of file mmc.h.

◆ R1_APP_CMD

#define R1_APP_CMD   (1 << 5)

Definition at line 26 of file mmc.h.

◆ R1_ILLEGAL_COMMAND

#define R1_ILLEGAL_COMMAND   (1 << 22)

Definition at line 25 of file mmc.h.

◆ SECURE_ERASE

#define SECURE_ERASE   0x80000000

Definition at line 13 of file mmc.h.

Function Documentation

◆ storage_block_setup_media()

int storage_block_setup_media ( struct storage_media media,
struct sd_mmc_ctrlr ctrlr 
)