47#define EMMC_PARTITION_SIGNATURE SIGNATURE_32 ('E', 'm', 'm', 'P')
49#define EMMC_PARTITION_DATA_FROM_BLKIO(a) \
50 CR(a, EMMC_PARTITION, BlockIo, EMMC_PARTITION_SIGNATURE)
52#define EMMC_PARTITION_DATA_FROM_BLKIO2(a) \
53 CR(a, EMMC_PARTITION, BlockIo2, EMMC_PARTITION_SIGNATURE)
55#define EMMC_PARTITION_DATA_FROM_SSP(a) \
56 CR(a, EMMC_PARTITION, StorageSecurity, EMMC_PARTITION_SIGNATURE)
58#define EMMC_PARTITION_DATA_FROM_ERASEBLK(a) \
59 CR(a, EMMC_PARTITION, EraseBlock, EMMC_PARTITION_SIGNATURE)
61#define EMMC_PARTITION_DATA_FROM_DISKINFO(a) \
62 CR(a, EMMC_PARTITION, DiskInfo, EMMC_PARTITION_SIGNATURE)
67#define EMMC_GENERIC_TIMEOUT 2500 * 1000
69#define EMMC_REQUEST_SIGNATURE SIGNATURE_32 ('E', 'm', 'R', 'e')
91#define EMMC_REQUEST_FROM_LINK(a) \
92 CR(a, EMMC_REQUEST, Link, EMMC_REQUEST_SIGNATURE)
97 EMMC_PARTITION_TYPE PartitionType;
115#define EMMC_MAX_DEVICES 6
119#define EMMC_MAX_PARTITIONS 8
120#define EMMC_MODEL_NAME_MAX_LEN 32
126 BOOLEAN SectorAddressing;
140 CHAR16 ModelName[EMMC_MODEL_NAME_MAX_LEN];
328 OUT CHAR16 **DriverName
406 OUT CHAR16 **ControllerName
442 OUT UINT32 *DevStatus
EFI_STATUS EFIAPI EmmcDxeComponentNameGetControllerName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN EFI_HANDLE ControllerHandle, IN EFI_HANDLE ChildHandle OPTIONAL, IN CHAR8 *Language, OUT CHAR16 **ControllerName)
EFI_STATUS EFIAPI EmmcDxeComponentNameGetDriverName(IN EFI_COMPONENT_NAME_PROTOCOL *This, IN CHAR8 *Language, OUT CHAR16 **DriverName)
EFI_STATUS EFIAPI EmmcDxeDriverBindingStop(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN UINTN NumberOfChildren, IN EFI_HANDLE *ChildHandleBuffer)
EFI_STATUS EmmcSendStatus(IN EMMC_DEVICE *Device, IN UINT16 Rca, OUT UINT32 *DevStatus)
EFI_STATUS EmmcGetCsd(IN EMMC_DEVICE *Device, IN UINT16 Rca, OUT EMMC_CSD *Csd)
EFI_STATUS EFIAPI EmmcDxeDriverBindingSupported(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EmmcGetExtCsd(IN EMMC_DEVICE *Device, OUT EMMC_EXT_CSD *ExtCsd)
EFI_STATUS EFIAPI EmmcDxeDriverBindingStart(IN EFI_DRIVER_BINDING_PROTOCOL *This, IN EFI_HANDLE Controller, IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath)
EFI_STATUS EmmcGetCid(IN EMMC_DEVICE *Device, IN UINT16 Rca, OUT EMMC_CID *Cid)
EFI_STATUS EmmcSelect(IN EMMC_DEVICE *Device, IN UINT16 Rca)