| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "efi.h" |
| 5 |
|
| 6 |
#define EFI_DTB_TABLE_GUID \ |
| 7 |
GUID_DEF(0xb1b621d5, 0xf19c, 0x41a5, 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0) |
| 8 |
#define EFI_DT_FIXUP_PROTOCOL_GUID \ |
| 9 |
GUID_DEF(0xe617d64c, 0xfe08, 0x46da, 0xf4, 0xdc, 0xbb, 0xd5, 0x87, 0x0c, 0x73, 0x00) |
| 10 |
|
| 11 |
#define EFI_DT_FIXUP_PROTOCOL_REVISION 0x00010000 |
| 12 |
|
| 13 |
/* Add nodes and update properties */ |
| 14 |
#define EFI_DT_APPLY_FIXUPS 0x00000001 |
| 15 |
|
| 16 |
/* |
| 17 |
* Reserve memory according to the /reserved-memory node |
| 18 |
* and the memory reservation block |
| 19 |
*/ |
| 20 |
#define EFI_DT_RESERVE_MEMORY 0x00000002 |
| 21 |
|
| 22 |
typedef struct EFI_DT_FIXUP_PROTOCOL EFI_DT_FIXUP_PROTOCOL; |
| 23 |
struct EFI_DT_FIXUP_PROTOCOL { |
| 24 |
uint64_t Revision; |
| 25 |
EFI_STATUS (EFIAPI *Fixup)( |
| 26 |
EFI_DT_FIXUP_PROTOCOL *This, |
| 27 |
void *Fdt, |
| 28 |
size_t *BufferSize, |
| 29 |
uint32_t Flags); |
| 30 |
}; |