XenevaOS
Loading...
Searching...
No Matches
SdMmcPassThru.h
Go to the documentation of this file.
1
16#ifndef __SD_MMC_PASS_THRU_H__
17#define __SD_MMC_PASS_THRU_H__
18
19#define EFI_SD_MMC_PASS_THRU_PROTOCOL_GUID \
20 { \
21 0x716ef0d9, 0xff83, 0x4f69, {0x81, 0xe9, 0x51, 0x8b, 0xd3, 0x9a, 0x8e, 0x70 } \
22 }
23
25
26typedef enum {
27 SdMmcCommandTypeBc, // Broadcast commands, no response
28 SdMmcCommandTypeBcr, // Broadcast commands with response
29 SdMmcCommandTypeAc, // Addressed(point-to-point) commands
30 SdMmcCommandTypeAdtc // Addressed(point-to-point) data transfer commands
32
44
48 UINT32 CommandType; // One of the EFI_SD_MMC_COMMAND_TYPE values
49 UINT32 ResponseType; // One of the EFI_SD_MMC_RESPONSE_TYPE values
51
58
69
107typedef
111 IN UINT8 Slot,
113 IN EFI_EVENT Event OPTIONAL
114);
115
145typedef
149 IN OUT UINT8 *Slot
150);
151
186typedef
190 IN UINT8 Slot,
191 IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath
192);
193
215typedef
219 IN EFI_DEVICE_PATH_PROTOCOL *DevicePath,
220 OUT UINT8 *Slot
221);
222
246typedef
250 IN UINT8 Slot
251);
252
261
263
264#endif
#define EFIAPI
Definition ProcessorBind.h:172
unsigned int UINT32
Definition ProcessorBind.h:102
#define IN
Definition Base.h:347
#define OUT
Definition Base.h:352
#define OPTIONAL
Definition Base.h:358
struct _EFI_SD_MMC_PASS_THRU_COMMAND_PACKET EFI_SD_MMC_PASS_THRU_COMMAND_PACKET
EFI_GUID gEfiSdMmcPassThruProtocolGuid
EFI_STATUS(EFIAPI * EFI_SD_MMC_PASS_THRU_GET_SLOT_NUMBER)(IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This, IN EFI_DEVICE_PATH_PROTOCOL *DevicePath, OUT UINT8 *Slot)
Definition SdMmcPassThru.h:217
EFI_SD_MMC_RESPONSE_TYPE
Definition SdMmcPassThru.h:33
@ SdMmcResponseTypeR6
Definition SdMmcPassThru.h:41
@ SdMmcResponseTypeR5b
Definition SdMmcPassThru.h:40
@ SdMmcResponseTypeR5
Definition SdMmcPassThru.h:39
@ SdMmcResponseTypeR1b
Definition SdMmcPassThru.h:35
@ SdMmcResponseTypeR1
Definition SdMmcPassThru.h:34
@ SdMmcResponseTypeR2
Definition SdMmcPassThru.h:36
@ SdMmcResponseTypeR4
Definition SdMmcPassThru.h:38
@ SdMmcResponseTypeR3
Definition SdMmcPassThru.h:37
@ SdMmcResponseTypeR7
Definition SdMmcPassThru.h:42
EFI_SD_MMC_COMMAND_TYPE
Definition SdMmcPassThru.h:26
@ SdMmcCommandTypeBcr
Definition SdMmcPassThru.h:28
@ SdMmcCommandTypeBc
Definition SdMmcPassThru.h:27
@ SdMmcCommandTypeAc
Definition SdMmcPassThru.h:29
@ SdMmcCommandTypeAdtc
Definition SdMmcPassThru.h:30
struct _EFI_SD_MMC_COMMAND_BLOCK EFI_SD_MMC_COMMAND_BLOCK
EFI_STATUS(EFIAPI * EFI_SD_MMC_PASS_THRU_BUILD_DEVICE_PATH)(IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This, IN UINT8 Slot, IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath)
Definition SdMmcPassThru.h:188
struct _EFI_SD_MMC_STATUS_BLOCK EFI_SD_MMC_STATUS_BLOCK
EFI_STATUS(EFIAPI * EFI_SD_MMC_PASS_THRU_GET_NEXT_SLOT)(IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This, IN OUT UINT8 *Slot)
Definition SdMmcPassThru.h:147
EFI_STATUS(EFIAPI * EFI_SD_MMC_PASS_THRU_PASSTHRU)(IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This, IN UINT8 Slot, IN OUT EFI_SD_MMC_PASS_THRU_COMMAND_PACKET *Packet, IN EFI_EVENT Event OPTIONAL)
Definition SdMmcPassThru.h:109
EFI_STATUS(EFIAPI * EFI_SD_MMC_PASS_THRU_RESET_DEVICE)(IN EFI_SD_MMC_PASS_THRU_PROTOCOL *This, IN UINT8 Slot)
Definition SdMmcPassThru.h:248
RETURN_STATUS EFI_STATUS
Definition UefiBaseType.h:33
VOID * EFI_EVENT
Definition UefiBaseType.h:41
#define VOID
Definition acefi.h:190
unsigned short UINT16
Definition actypes.h:237
unsigned char UINT8
Definition actypes.h:236
COMPILER_DEPENDENT_UINT64 UINT64
Definition actypes.h:239
Definition DevicePath.h:49
Definition Base.h:281
Definition SdMmcPassThru.h:45
UINT32 ResponseType
Definition SdMmcPassThru.h:49
UINT16 CommandIndex
Definition SdMmcPassThru.h:46
UINT32 CommandType
Definition SdMmcPassThru.h:48
UINT32 CommandArgument
Definition SdMmcPassThru.h:47
Definition SdMmcPassThru.h:59
VOID * InDataBuffer
Definition SdMmcPassThru.h:63
EFI_SD_MMC_STATUS_BLOCK * SdMmcStatusBlk
Definition SdMmcPassThru.h:62
UINT32 OutTransferLength
Definition SdMmcPassThru.h:66
EFI_STATUS TransactionStatus
Definition SdMmcPassThru.h:67
VOID * OutDataBuffer
Definition SdMmcPassThru.h:64
EFI_SD_MMC_COMMAND_BLOCK * SdMmcCmdBlk
Definition SdMmcPassThru.h:61
UINT32 InTransferLength
Definition SdMmcPassThru.h:65
UINT64 Timeout
Definition SdMmcPassThru.h:60
Definition SdMmcPassThru.h:253
EFI_SD_MMC_PASS_THRU_PASSTHRU PassThru
Definition SdMmcPassThru.h:255
UINT32 IoAlign
Definition SdMmcPassThru.h:254
EFI_SD_MMC_PASS_THRU_GET_NEXT_SLOT GetNextSlot
Definition SdMmcPassThru.h:256
EFI_SD_MMC_PASS_THRU_RESET_DEVICE ResetDevice
Definition SdMmcPassThru.h:259
EFI_SD_MMC_PASS_THRU_BUILD_DEVICE_PATH BuildDevicePath
Definition SdMmcPassThru.h:257
EFI_SD_MMC_PASS_THRU_GET_SLOT_NUMBER GetSlotNumber
Definition SdMmcPassThru.h:258
Definition SdMmcPassThru.h:52
UINT32 Resp0
Definition SdMmcPassThru.h:53
UINT32 Resp1
Definition SdMmcPassThru.h:54
UINT32 Resp3
Definition SdMmcPassThru.h:56
UINT32 Resp2
Definition SdMmcPassThru.h:55