iPXE
fdtmem.h
Go to the documentation of this file.
1#ifndef _IPXE_FDTMEM_H
2#define _IPXE_FDTMEM_H
3
4/** @file
5 *
6 * Flattened Device Tree memory map
7 *
8 */
9
10FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11FILE_SECBOOT ( PERMITTED );
12
13#include <stdint.h>
14
15#ifdef MEMMAP_FDT
16#define MEMMAP_PREFIX_fdt
17#else
18#define MEMMAP_PREFIX_fdt __fdt_
19#endif
20
21/**
22 * Synchronise in-use regions with the externally visible system memory map
23 *
24 */
25static inline __attribute__ (( always_inline )) void
27 /* Nothing to do */
28}
29
30struct fdt_header;
31
33extern int fdtmem_register ( struct fdt_header *hdr, physaddr_t max );
34
35#endif /* _IPXE_FDTMEM_H */
struct golan_inbox_hdr hdr
Message header.
Definition CIB_PRM.h:0
unsigned long physaddr_t
Definition stdint.h:20
#define max(x, y)
Definition ath.h:41
physaddr_t fdtmem_relocate(struct fdt_header *hdr, physaddr_t max)
Find a relocation address for iPXE.
Definition fdtmem.c:264
static memmap_sync(void)
Synchronise in-use regions with the externally visible system memory map.
Definition fdtmem.h:26
int fdtmem_register(struct fdt_header *hdr, physaddr_t max)
Copy and register system device tree.
Definition fdtmem.c:345
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
Definition compiler.h:926
#define __attribute__(x)
Definition compiler.h:10
#define MEMMAP_INLINE(_subsys, _api_func)
Calculate static inline memory map API function name.
Definition memmap.h:26
Device tree header.
Definition fdt.h:19
A device tree.
Definition fdt.h:89