|
iPXE
|
EFI Flattened Device Tree. More...
#include <string.h>#include <byteswap.h>#include <ipxe/fdt.h>#include <ipxe/init.h>#include <ipxe/efi/efi.h>#include <ipxe/efi/efi_table.h>#include <ipxe/efi/efi_fdt.h>#include <ipxe/efi/Guid/Fdt.h>Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| EFI_USE_TABLE (FDT_TABLE, &efi_fdt, 0) | |
| static void | efi_fdt_init (void) |
| Initialise EFI Flattened Device Tree. More... | |
| struct init_fn efi_fdt_init_fn | __init_fn (INIT_EARLY) |
| EFI Flattened Device Tree initialisation function. More... | |
| static size_t | efi_fdt_len (const void *data) |
| Determine length of EFI Flattened Device Tree. More... | |
| int | efi_fdt_install (const char *cmdline) |
| Install EFI Flattened Device Tree table. More... | |
| int | efi_fdt_uninstall (void) |
| Uninstall EFI Flattened Device Tree table. More... | |
Variables | |
| static struct fdt_header * | efi_fdt |
| EFI Flattened Device Tree configuration table. More... | |
| static struct efi_table | efi_fdt_table |
| EFI Flattened Device Tree table type. More... | |
| static void * | efi_fdt_backup |
| EFI Flattened Device Tree table backup. More... | |
| static struct fdt_header * | efi_fdt_installed |
| EFI Flattened Device Tree installed table. More... | |
EFI Flattened Device Tree.
Definition in file efi_fdt.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| EFI_USE_TABLE | ( | FDT_TABLE | , |
| & | efi_fdt, | ||
| 0 | |||
| ) |
|
static |
Initialise EFI Flattened Device Tree.
Definition at line 49 of file efi_fdt.c.
References EFI_BOOT_SERVICES::AllocatePool, EFI_SYSTEM_TABLE::BootServices, DBGC, efi_fdt, efi_systab, EfiBootServicesData, fdt_parse(), fdt::len, memcpy(), fdt::raw, rc, strerror(), and sysfdt.
| struct init_fn efi_fdt_init_fn __init_fn | ( | INIT_EARLY | ) |
EFI Flattened Device Tree initialisation function.
|
static |
Determine length of EFI Flattened Device Tree.
| data | Configuration table data (presumed valid) |
| len | Length of table |
Definition at line 90 of file efi_fdt.c.
References be32_to_cpu, data, and hdr.
| int efi_fdt_install | ( | const char * | cmdline | ) |
Install EFI Flattened Device Tree table.
| cmdline | Command line, or NULL |
| rc | Return status code |
Definition at line 114 of file efi_fdt.c.
References cmdline, DBGC, efi_fdt, efi_fdt_backup, efi_fdt_installed, efi_fdt_table, efi_install_table(), efi_uninstall_table(), fdt_create(), fdt_remove(), rc, and strerror().
| int efi_fdt_uninstall | ( | void | ) |
Uninstall EFI Flattened Device Tree table.
Uninstall EFI Flattened Device Tree table (when no FDT support is present)
| rc | Return status code |
Definition at line 146 of file efi_fdt.c.
References DBGC, efi_fdt, efi_fdt_backup, efi_fdt_installed, efi_fdt_table, efi_uninstall_table(), fdt_remove(), rc, and strerror().
|
static |
EFI Flattened Device Tree configuration table.
Definition at line 42 of file efi_fdt.c.
Referenced by efi_fdt_init(), efi_fdt_install(), and efi_fdt_uninstall().
|
static |
EFI Flattened Device Tree table type.
Definition at line 97 of file efi_fdt.c.
Referenced by efi_fdt_install(), and efi_fdt_uninstall().
|
static |
EFI Flattened Device Tree table backup.
Definition at line 103 of file efi_fdt.c.
Referenced by efi_fdt_install(), and efi_fdt_uninstall().
|
static |
EFI Flattened Device Tree installed table.
Definition at line 106 of file efi_fdt.c.
Referenced by efi_fdt_install(), and efi_fdt_uninstall().
1.8.15