mirror of
https://github.com/ipxe/ipxe
synced 2026-02-05 19:12:46 +03:00
[efi] Add flattened device tree header and GUID definitions
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -25,8 +25,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <string.h>
|
||||
#include <ipxe/fdt.h>
|
||||
#include <ipxe/efi/efi.h>
|
||||
#include <ipxe/init.h>
|
||||
#include <ipxe/efi/efi.h>
|
||||
#include <ipxe/efi/Guid/Fdt.h>
|
||||
|
||||
/** @file
|
||||
*
|
||||
@@ -34,13 +35,9 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
*
|
||||
*/
|
||||
|
||||
#define DEVICE_TREE_TABLE_GUID \
|
||||
{ 0xb1b621d5, 0xf19c, 0x41a5, \
|
||||
{ 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0 } }
|
||||
|
||||
/** EFI Flattened Device Tree configuration table */
|
||||
static struct fdt_header *efi_fdt;
|
||||
EFI_USE_TABLE ( DEVICE_TREE_TABLE, &efi_fdt, 0 );
|
||||
EFI_USE_TABLE ( FDT_TABLE, &efi_fdt, 0 );
|
||||
|
||||
/**
|
||||
* Initialise EFI Flattened Device Tree
|
||||
|
||||
@@ -85,6 +85,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#include <ipxe/efi/Protocol/UsbIo.h>
|
||||
#include <ipxe/efi/Protocol/VlanConfig.h>
|
||||
#include <ipxe/efi/Guid/Acpi.h>
|
||||
#include <ipxe/efi/Guid/Fdt.h>
|
||||
#include <ipxe/efi/Guid/FileInfo.h>
|
||||
#include <ipxe/efi/Guid/FileSystemInfo.h>
|
||||
#include <ipxe/efi/Guid/GlobalVariable.h>
|
||||
@@ -411,6 +412,10 @@ EFI_GUID efi_acpi_10_table_guid
|
||||
EFI_GUID efi_acpi_20_table_guid
|
||||
= EFI_ACPI_20_TABLE_GUID;
|
||||
|
||||
/** FDT table GUID */
|
||||
EFI_GUID efi_fdt_table_guid
|
||||
= FDT_TABLE_GUID;
|
||||
|
||||
/** SMBIOS table GUID */
|
||||
EFI_GUID efi_smbios_table_guid
|
||||
= SMBIOS_TABLE_GUID;
|
||||
@@ -524,6 +529,8 @@ static struct efi_well_known_guid efi_well_known_guids[] = {
|
||||
"Dns6" },
|
||||
{ &efi_dns6_service_binding_protocol_guid,
|
||||
"Dns6Sb" },
|
||||
{ &efi_fdt_table_guid,
|
||||
"Fdt" },
|
||||
{ &efi_global_variable,
|
||||
"GlobalVar" },
|
||||
{ &efi_graphics_output_protocol_guid,
|
||||
|
||||
Reference in New Issue
Block a user