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 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 FILE_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  */
25 static inline __attribute__ (( always_inline )) void
26 MEMMAP_INLINE ( fdt, memmap_sync ) ( void ) {
27  /* Nothing to do */
28 }
29 
30 struct fdt_header;
31 
33 extern int fdtmem_register ( struct fdt_header *hdr, physaddr_t max );
34 
35 #endif /* _IPXE_FDTMEM_H */
#define max(x, y)
Definition: ath.h:41
Device tree header.
Definition: fdt.h:19
struct golan_inbox_hdr hdr
Message header.
Definition: CIB_PRM.h:28
int fdtmem_register(struct fdt_header *hdr, physaddr_t max)
Copy and register system device tree.
Definition: fdtmem.c:345
FILE_SECBOOT(PERMITTED)
#define MEMMAP_INLINE(_subsys, _api_func)
Calculate static inline memory map API function name.
Definition: memmap.h:26
physaddr_t fdtmem_relocate(struct fdt_header *hdr, physaddr_t max)
Find a relocation address for iPXE.
Definition: fdtmem.c:264
static __attribute__((always_inline)) void MEMMAP_INLINE(fdt
Synchronise in-use regions with the externally visible system memory map.
unsigned long physaddr_t
Definition: stdint.h:20
A device tree.
Definition: fdt.h:89
static memmap_sync(void)
Synchronise in-use regions with the externally visible system memory map.
Definition: fdtmem.h:26
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)