| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "efi.h" |
| 5 |
|
| 6 |
#define EFI_DISK_IO_PROTOCOL_GUID \ |
| 7 |
GUID_DEF(0xCE345171, 0xBA0B, 0x11d2, 0x8e, 0x4F, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b) |
| 8 |
|
| 9 |
typedef struct EFI_DISK_IO_PROTOCOL EFI_DISK_IO_PROTOCOL; |
| 10 |
struct EFI_DISK_IO_PROTOCOL { |
| 11 |
uint64_t Revision; |
| 12 |
EFI_STATUS (EFIAPI *ReadDisk)( |
| 13 |
EFI_DISK_IO_PROTOCOL *This, |
| 14 |
uint32_t MediaId, |
| 15 |
uint64_t Offset, |
| 16 |
size_t BufferSize, |
| 17 |
void *Buffer); |
| 18 |
EFI_STATUS (EFIAPI *WriteDisk)( |
| 19 |
EFI_DISK_IO_PROTOCOL *This, |
| 20 |
uint32_t MediaId, |
| 21 |
uint64_t Offset, |
| 22 |
size_t BufferSize, |
| 23 |
const void *Buffer); |
| 24 |
}; |