Declares an SDMMC context structure.
|
enum | SdmmcResponseType {
SdmmcResponseType_NoResponse = 0,
SdmmcResponseType_R1 = 1,
SdmmcResponseType_R2 =2,
SdmmcResponseType_R3 =3,
SdmmcResponseType_R4 = 4,
SdmmcResponseType_R5 = 5,
SdmmcResponseType_R6 = 6,
SdmmcResponseType_R7 = 7,
SdmmcResponseType_R1B = 8,
SdmmcResponseType_Num,
SdmmcResponseType_Force32 = 0x7FFFFFFF
} |
| Defines command responses for eMMC/ESD. More...
|
|
enum | SdmmcCommand {
SdmmcCommand_GoIdleState = 0,
SdmmcCommand_EmmcSendOperatingConditions = 1,
SdmmcCommand_AllSendCid = 2,
SdmmcCommand_EmmcSetRelativeAddress = 3,
SdmmcCommand_EsdSendRelativeAddress = 3,
SdmmcCommand_Switch = 6,
SdmmcCommand_SelectDeselectCard = 7,
SdmmcCommand_EsdSendInterfaceCondition = 8,
SdmmcCommand_EmmcSendExtendedCsd = 8,
SdmmcCommand_SendCsd = 9,
SdmmcCommand_StopTransmission =12,
SdmmcCommand_SendStatus = 13,
SdmmcCommand_SetBlockLength = 16,
SdmmcCommand_ReadSingle = 17,
SdmmcCommand_ReadMultiple = 18,
SdmmcCommand_SetBlockCount = 23,
SdmmcCommand_WriteSingle = 24,
SdmmcCommand_WriteMultiple = 25,
SdmmcCommand_EsdAppSendOperatingCondition = 41,
SdmmcCommand_EsdSelectPartition = 43,
SdmmcCommand_EsdAppSendScr = 51,
SdmmcCommand_EsdAppCommand = 55,
SdmmcCommand_Force32 = 0x7FFFFFFF
} |
| Defines eMMC/ESD commands as per eMMC/ESD specifications. More...
|
|
enum | SdmmcState {
SdmmcState_Idle = 0,
SdmmcState_Ready,
SdmmcState_Ident,
SdmmcState_Stby,
SdmmcState_Tran,
SdmmcState_Data,
SdmmcState_Rcv,
SdmmcState_Prg,
SdmmcState_Force32 = 0x7FFFFFFF
} |
| Defines eMMC/ESD card states. More...
|
|
enum | SdmmcAccessRegion {
SdmmcAccessRegion_UserArea = 0,
SdmmcAccessRegion_BootPartition1,
SdmmcAccessRegion_BootPartition2,
SdmmcAccessRegion_Num,
SdmmcAccessRegion_Unknown,
SdmmcAccessRegion_Force32 = 0x7FFFFFFF
} |
| Defines eMMC card partitions. More...
|
|
enum | NvBootSdmmcCardType {
NvBootSdmmcCardType_Emmc = 0,
NvBootSdmmcCardType_Esd,
NvBootSdmmcCardType_Num,
NvBootSdmmcCardType_Force32 = 0x7FFFFFFF
} |
| Defines the supported card types. More...
|
|
enum | NvBootSdmmcCardClock {
NvBootSdmmcCardClock_Identification = 0,
NvBootSdmmcCardClock_DataTransfer_SDR20,
NvBootSdmmcCardClock_DataTransfer_HS50,
NvBootSdmmcCardClock_DataTransfer_DDR50,
NvBootSdmmcCardClock_DataTransfer_HS400,
NvBootSdmmcCardClock_Num,
NvBootSdmmcCardClock_Force32 = 0x7FFFFFFF
} |
| Defines various clock rates to use for accessing the eMMC/ESD card. More...
|
|
enum | SdmmcInitLevel {
SdmmcInit_All = 0,
SdmmcInit_CMD0n1,
SdmmcInit_InitSkipCMD0,
SdmmcInit_InitSkipIdentification
} |
| Defines various initialization optimization options. More...
|
|
#define MAX_SDMMC_INSTANCE 4 |
#define NVBOOT_SDMMC_BOOT_MODE_BUFFER_SIZE_IN_BYTES 512 |
Defines the buffer size for reading data in boot mode.
Definition at line 49 of file sdmmc.h.
#define NVBOOT_SDMMC_ECSD_BUFFER_SIZE_IN_BYTES 512 |
Defines the buffer size for reading extended CSD.
Definition at line 47 of file sdmmc.h.
#define NVBOOT_SDMMC_RESPONSE_BUFFER_SIZE_IN_BYTES 16 |
Defines the SDMMC response buffer size.
Definition at line 45 of file sdmmc.h.
#define SDMMC_COMMAND_TIMEOUT_IN_US 100000 |
Defines maximum timeout for a command complete.
Definition at line 36 of file sdmmc.h.
#define SDMMC_OP_COND_TIMEOUT_IN_US 1000000 |
Defines maximum timeout for operation condition (CMD1) response.
Definition at line 38 of file sdmmc.h.
#define SDMMC_READ_TIMEOUT_IN_US 200000 |
Defines maximum timeout for read command operation complete.
Definition at line 40 of file sdmmc.h.
#define SDMMC_TIME_OUT_IN_US 100000 |
Defines maximum timeout for eMMC operations.
Definition at line 42 of file sdmmc.h.
Defines various clock rates to use for accessing the eMMC/ESD card.
Enumerator |
---|
NvBootSdmmcCardClock_Identification |
|
NvBootSdmmcCardClock_DataTransfer_SDR20 |
|
NvBootSdmmcCardClock_DataTransfer_HS50 |
|
NvBootSdmmcCardClock_DataTransfer_DDR50 |
|
NvBootSdmmcCardClock_DataTransfer_HS400 |
|
NvBootSdmmcCardClock_Num |
|
NvBootSdmmcCardClock_Force32 |
|
Definition at line 145 of file sdmmc.h.
Defines the supported card types.
Enumerator |
---|
NvBootSdmmcCardType_Emmc |
|
NvBootSdmmcCardType_Esd |
|
NvBootSdmmcCardType_Num |
|
NvBootSdmmcCardType_Force32 |
|
Definition at line 134 of file sdmmc.h.
Defines eMMC card partitions.
Enumerator |
---|
SdmmcAccessRegion_UserArea |
|
SdmmcAccessRegion_BootPartition1 |
|
SdmmcAccessRegion_BootPartition2 |
|
SdmmcAccessRegion_Num |
|
SdmmcAccessRegion_Unknown |
|
SdmmcAccessRegion_Force32 |
|
Definition at line 121 of file sdmmc.h.
Defines eMMC/ESD commands as per eMMC/ESD specifications.
eMMC-specific commands include the eMMC
prefix, and ESD-specific commands include the ESD
prefix. Commands that apply to all board types have no prefix.
Enumerator |
---|
SdmmcCommand_GoIdleState |
|
SdmmcCommand_EmmcSendOperatingConditions |
|
SdmmcCommand_AllSendCid |
|
SdmmcCommand_EmmcSetRelativeAddress |
|
SdmmcCommand_EsdSendRelativeAddress |
|
SdmmcCommand_Switch |
|
SdmmcCommand_SelectDeselectCard |
|
SdmmcCommand_EsdSendInterfaceCondition |
|
SdmmcCommand_EmmcSendExtendedCsd |
|
SdmmcCommand_SendCsd |
|
SdmmcCommand_StopTransmission |
|
SdmmcCommand_SendStatus |
|
SdmmcCommand_SetBlockLength |
|
SdmmcCommand_ReadSingle |
|
SdmmcCommand_ReadMultiple |
|
SdmmcCommand_SetBlockCount |
|
SdmmcCommand_WriteSingle |
|
SdmmcCommand_WriteMultiple |
|
SdmmcCommand_EsdAppSendOperatingCondition |
|
SdmmcCommand_EsdSelectPartition |
|
SdmmcCommand_EsdAppSendScr |
|
SdmmcCommand_EsdAppCommand |
|
SdmmcCommand_Force32 |
|
Definition at line 75 of file sdmmc.h.
Defines various initialization optimization options.
Enumerator |
---|
SdmmcInit_All |
|
SdmmcInit_CMD0n1 |
|
SdmmcInit_InitSkipCMD0 |
|
SdmmcInit_InitSkipIdentification |
|
Definition at line 158 of file sdmmc.h.
Defines command responses for eMMC/ESD.
Enumerator |
---|
SdmmcResponseType_NoResponse |
|
SdmmcResponseType_R1 |
|
SdmmcResponseType_R2 |
|
SdmmcResponseType_R3 |
|
SdmmcResponseType_R4 |
|
SdmmcResponseType_R5 |
|
SdmmcResponseType_R6 |
|
SdmmcResponseType_R7 |
|
SdmmcResponseType_R1B |
|
SdmmcResponseType_Num |
|
SdmmcResponseType_Force32 |
|
Definition at line 55 of file sdmmc.h.
Defines eMMC/ESD card states.
Enumerator |
---|
SdmmcState_Idle |
|
SdmmcState_Ready |
|
SdmmcState_Ident |
|
SdmmcState_Stby |
|
SdmmcState_Tran |
|
SdmmcState_Data |
|
SdmmcState_Rcv |
|
SdmmcState_Prg |
|
SdmmcState_Force32 |
|
Definition at line 105 of file sdmmc.h.
void QbSddmmcPrintInterruptStatus |
( |
NvU32 |
InterruptStatus | ) |
|
void QbSdmmcDumpTegraRegs |
( |
NvU32 |
RegBase | ) |
|
NvS32 QbSdmmcInit |
( |
void |
| ) |
|
NvError QbSdmmcRead |
( |
QbDriver |
DriverType, |
|
|
NvU32 |
Instance, |
|
|
void * |
Buffer, |
|
|
NvU64 |
Size, |
|
|
NvU64 |
Offset |
|
) |
| |