TianoCore EDK2 master
Loading...
Searching...
No Matches
DiskIo.h
Go to the documentation of this file.
1
13#ifndef __DISK_IO_H__
14#define __DISK_IO_H__
15
16#define EFI_DISK_IO_PROTOCOL_GUID \
17 { \
18 0xce345171, 0xba0b, 0x11d2, {0x8e, 0x4f, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b } \
19 }
20
24#define DISK_IO_PROTOCOL EFI_DISK_IO_PROTOCOL_GUID
25
27
32
50typedef
52(EFIAPI *EFI_DISK_READ)(
54 IN UINT32 MediaId,
55 IN UINT64 Offset,
56 IN UINTN BufferSize,
57 OUT VOID *Buffer
58 );
59
78typedef
80(EFIAPI *EFI_DISK_WRITE)(
82 IN UINT32 MediaId,
83 IN UINT64 Offset,
84 IN UINTN BufferSize,
85 IN VOID *Buffer
86 );
87
88#define EFI_DISK_IO_PROTOCOL_REVISION 0x00010000
89
93#define EFI_DISK_IO_INTERFACE_REVISION EFI_DISK_IO_PROTOCOL_REVISION
94
104 UINT64 Revision;
105 EFI_DISK_READ ReadDisk;
106 EFI_DISK_WRITE WriteDisk;
107};
108
109extern EFI_GUID gEfiDiskIoProtocolGuid;
110
111#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS(EFIAPI * EFI_DISK_READ)(IN EFI_DISK_IO_PROTOCOL *This, IN UINT32 MediaId, IN UINT64 Offset, IN UINTN BufferSize, OUT VOID *Buffer)
Definition: DiskIo.h:52
EFI_STATUS(EFIAPI * EFI_DISK_WRITE)(IN EFI_DISK_IO_PROTOCOL *This, IN UINT32 MediaId, IN UINT64 Offset, IN UINTN BufferSize, IN VOID *Buffer)
Definition: DiskIo.h:80
EFI_DISK_IO_PROTOCOL EFI_DISK_IO
Definition: DiskIo.h:31
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213