TianoCore EDK2 master
Loading...
Searching...
No Matches
EmmcBlockIo.h
Go to the documentation of this file.
1
12#ifndef _EMMC_BLOCK_IO_H_
13#define _EMMC_BLOCK_IO_H_
14
27EFIAPI
30 IN BOOLEAN ExtendedVerification
31 );
32
53EFIAPI
56 IN UINT32 MediaId,
57 IN EFI_LBA Lba,
58 IN UINTN BufferSize,
59 OUT VOID *Buffer
60 );
61
83EFIAPI
86 IN UINT32 MediaId,
87 IN EFI_LBA Lba,
88 IN UINTN BufferSize,
89 IN VOID *Buffer
90 );
91
103EFIAPI
106 );
107
120EFIAPI
123 IN BOOLEAN ExtendedVerification
124 );
125
153EFIAPI
156 IN UINT32 MediaId,
157 IN EFI_LBA Lba,
159 IN UINTN BufferSize,
160 OUT VOID *Buffer
161 );
162
186EFIAPI
189 IN UINT32 MediaId,
190 IN EFI_LBA Lba,
192 IN UINTN BufferSize,
193 IN VOID *Buffer
194 );
195
208EFIAPI
212 );
213
290EFIAPI
293 IN UINT32 MediaId,
294 IN UINT64 Timeout,
295 IN UINT8 SecurityProtocolId,
296 IN UINT16 SecurityProtocolSpecificData,
297 IN UINTN PayloadBufferSize,
298 OUT VOID *PayloadBuffer,
299 OUT UINTN *PayloadTransferSize,
300 IN BOOLEAN IsRead
301 );
302
378EFIAPI
381 IN UINT32 MediaId,
382 IN UINT64 Timeout,
383 IN UINT8 SecurityProtocolId,
384 IN UINT16 SecurityProtocolSpecificData,
385 IN UINTN PayloadBufferSize,
386 OUT VOID *PayloadBuffer,
387 OUT UINTN *PayloadTransferSize
388 );
389
454EFIAPI
457 IN UINT32 MediaId,
458 IN UINT64 Timeout,
459 IN UINT8 SecurityProtocolId,
460 IN UINT16 SecurityProtocolSpecificData,
461 IN UINTN PayloadBufferSize,
462 IN VOID *PayloadBuffer
463 );
464
493EFIAPI
496 IN UINT32 MediaId,
497 IN EFI_LBA Lba,
499 IN UINTN Size
500 );
501
502#endif
UINT64 UINTN
EFI_STATUS EFIAPI EmmcSecurityProtocolIn(IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *This, IN UINT32 MediaId, IN UINT64 Timeout, IN UINT8 SecurityProtocolId, IN UINT16 SecurityProtocolSpecificData, IN UINTN PayloadBufferSize, OUT VOID *PayloadBuffer, OUT UINTN *PayloadTransferSize)
Definition: EmmcBlockIo.c:1496
EFI_STATUS EFIAPI EmmcWriteBlocks(IN EFI_BLOCK_IO_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN UINTN BufferSize, IN VOID *Buffer)
Definition: EmmcBlockIo.c:1024
EFI_STATUS EFIAPI EmmcResetEx(IN EFI_BLOCK_IO2_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Definition: EmmcBlockIo.c:1076
EFI_STATUS EFIAPI EmmcReadBlocksEx(IN EFI_BLOCK_IO2_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN OUT EFI_BLOCK_IO2_TOKEN *Token, IN UINTN BufferSize, OUT VOID *Buffer)
Definition: EmmcBlockIo.c:1142
EFI_STATUS EFIAPI EmmcReadBlocks(IN EFI_BLOCK_IO_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN UINTN BufferSize, OUT VOID *Buffer)
Definition: EmmcBlockIo.c:985
EFI_STATUS EFIAPI EmmcSecurityProtocolInOut(IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *This, IN UINT32 MediaId, IN UINT64 Timeout, IN UINT8 SecurityProtocolId, IN UINT16 SecurityProtocolSpecificData, IN UINTN PayloadBufferSize, OUT VOID *PayloadBuffer, OUT UINTN *PayloadTransferSize, IN BOOLEAN IsRead)
Definition: EmmcBlockIo.c:1308
EFI_STATUS EFIAPI EmmcWriteBlocksEx(IN EFI_BLOCK_IO2_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN OUT EFI_BLOCK_IO2_TOKEN *Token, IN UINTN BufferSize, IN VOID *Buffer)
Definition: EmmcBlockIo.c:1184
EFI_STATUS EFIAPI EmmcEraseBlocks(IN EFI_ERASE_BLOCK_PROTOCOL *This, IN UINT32 MediaId, IN EFI_LBA Lba, IN OUT EFI_ERASE_BLOCK_TOKEN *Token, IN UINTN Size)
Definition: EmmcBlockIo.c:2010
EFI_STATUS EFIAPI EmmcFlushBlocksEx(IN EFI_BLOCK_IO2_PROTOCOL *This, IN OUT EFI_BLOCK_IO2_TOKEN *Token)
Definition: EmmcBlockIo.c:1215
EFI_STATUS EFIAPI EmmcSecurityProtocolOut(IN EFI_STORAGE_SECURITY_COMMAND_PROTOCOL *This, IN UINT32 MediaId, IN UINT64 Timeout, IN UINT8 SecurityProtocolId, IN UINT16 SecurityProtocolSpecificData, IN UINTN PayloadBufferSize, IN VOID *PayloadBuffer)
Definition: EmmcBlockIo.c:1593
EFI_STATUS EFIAPI EmmcFlushBlocks(IN EFI_BLOCK_IO_PROTOCOL *This)
Definition: EmmcBlockIo.c:1053
EFI_STATUS EFIAPI EmmcReset(IN EFI_BLOCK_IO_PROTOCOL *This, IN BOOLEAN ExtendedVerification)
Definition: EmmcBlockIo.c:944
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT64 EFI_LBA
Definition: UefiBaseType.h:45
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29