82 #define MMCSD_CMD_RESERVED (32U) 88 #define MMCSD_ERR (-(1)) 95 #define MMCSD_UNDEFINEDCMD (-(2)) 103 #define MMCSD_ERR_1P8V_SWITCH_CARD_NOT_RESPONDING (-(3)) 111 #define MMCSD_ERR_1P8V_SWITCH_MMCIO_SWITCH_FAILURE (-(4)) 119 #define MMCSD_ERR_1P8V_SWITCH_CARD_CMD11_FAILURE (-(5)) 126 #define MMCSD_ERR_INVALID_FREQ (-(6)) 132 #define MMCSD_ERR_FREQ_SWITCH_UNSUCCESSFUL (-(7)) 139 #define MMCSD_ERR_VOLTAGE_SWITCH_FAILURE (-(8)) 146 #define MMCSD_ERR_SET_SOC_INTERRUPT_PATH (-(9)) 153 #define MMCSD_ERR_REL_SOC_INTERRUPT_PATH (-(10)) 160 #define MMCSD_ERR_TUNING_CMD_ERROR (-(11)) 201 typedef struct MMCSD_ConfigParams_s {
257 typedef struct MMCSD_FxnTable_s {
291 typedef struct MMCSD_Config_s {
310 typedef struct MMCSD_mediaParams_s {
323 #define MMCSD_MAX_CONFIG_CNT (5U) uint16_t index
Definition: tisci_rm_proxy.h:153
SD Parameters.
Definition: MMCSD.h:201
MMCSD_Config MMCSD_Config_list[MMCSD_MAX_CONFIG_CNT]
Definition: MMCSD.h:324
MMCSD_Error(* MMCSD_WriteFxn)(MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks)
A function pointer to a driver specific implementation of MMCSD_write().
Definition: MMCSD.h:238
MMCSD_Error MMCSD_read(MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks)
Function that handles the SD read for SYS/BIOS.
MMCSD_InitFxn initFxn
Definition: MMCSD.h:265
MMCSD_Error MMCSD_control(MMCSD_Handle handle, uint32_t cmd, void *arg)
Function performs implementation specific features on a given MMCSD_Handle.
const MMCSD_FxnTable MMCSD_fxnTable
void * MMCSD_Params
A handle that is returned from a MMCSD_open() call.
Definition: MMCSD.h:178
MMCSD_Error(* MMCSD_InitFxn)(MMCSD_Handle handle)
A function pointer to a driver specific implementation of MMCSD_init().
Definition: MMCSD.h:225
The definition of a SD function table that contains the required set of functions to control a specif...
Definition: MMCSD.h:257
MMCSD_ReadFxn readFxn
Definition: MMCSD.h:274
MMCSD_Error(* MMCSD_OpenFxn)(MMCSD_Handle handle, MMCSD_Params params)
A function pointer to a driver specific implementation of MMCSD_open().
Definition: MMCSD.h:231
MMCSD_FxnTable const * fxnTablePtr
Definition: MMCSD.h:293
SD Global configuration.
Definition: MMCSD.h:291
void * MMCSD_Handle
A handle that is returned from a MMCSD_open() call.
Definition: MMCSD.h:173
MMCSD_Error MMCSD_close(MMCSD_Handle handle)
Function to close a SD peripheral specified by the SD handle.
MMCSD_Error(* MMCSD_CloseFxn)(MMCSD_Handle handle)
A function pointer to a driver specific implementation of MMCSD_close().
Definition: MMCSD.h:211
void * custom
Definition: MMCSD.h:202
MMCSD_Error MMCSD_open(uint32_t index, MMCSD_Params params, MMCSD_Handle *handle)
Function to initialize a given SD peripheral specified by the particular index value....
MMCSD_WriteFxn writeFxn
Definition: MMCSD.h:271
MMCSD_CardDetectCallbackFxn cardDetectCallback
Definition: MMCSD.h:204
MMCSD_Error(* MMCSD_ControlFxn)(MMCSD_Handle handle, uint32_t cmd, const void *arg)
A function pointer to a driver specific implementation of MMCSD_control().
Definition: MMCSD.h:217
MMCSD_ControlFxn controlFxn
Definition: MMCSD.h:262
#define MMCSD_MAX_CONFIG_CNT
Definition: MMCSD.h:323
MMCSD_OpenFxn openFxn
Definition: MMCSD.h:268
int32_t MMCSD_Error
Return status of MMCSD.
Definition: MMCSD.h:168
const MMCSD_Config_list MMCSD_config
gptp_ipc_command_t cmd
Definition: gptpipc.h:140
void * object
Definition: MMCSD.h:296
void(* MMCSD_CardDetectCallbackFxn)(MMCSD_Handle handle, uint32_t temp)
MMCSD callback function.
Definition: MMCSD.h:191
MMCSD_CloseFxn closeFxn
Definition: MMCSD.h:259
MMCSD_Error MMCSD_Params_init(MMCSD_Params params)
Function to initialize the MMCSD_Params struct to its defaults.
MMCSD_Error MMCSD_init(void)
Function to initializes the SD module.
void const * hwAttrs
Definition: MMCSD.h:299
MMCSD_Error(* MMCSD_ReadFxn)(MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks)
A function pointer to a driver specific implementation of MMCSD_read().
Definition: MMCSD.h:247
MMCSD_Error MMCSD_write(MMCSD_Handle handle, uint8_t *buf, uint32_t block, uint32_t numBlks)
Function that handles the SD write for SYS/BIOS.