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 
12 #include <stdint.h>
13 
14 #ifdef MEMMAP_FDT
15 #define MEMMAP_PREFIX_fdt
16 #else
17 #define MEMMAP_PREFIX_fdt __fdt_
18 #endif
19 
20 /**
21  * Synchronise in-use regions with the externally visible system memory map
22  *
23  */
24 static inline __attribute__ (( always_inline )) void
25 MEMMAP_INLINE ( fdt, memmap_sync ) ( void ) {
26  /* Nothing to do */
27 }
28 
29 struct fdt_header;
30 
32 extern int fdtmem_register ( struct fdt_header *hdr, physaddr_t max );
33 
34 #endif /* _IPXE_FDTMEM_H */
#define max(x, y)
Definition: ath.h:40
Device tree header.
Definition: fdt.h:18
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
#define MEMMAP_INLINE(_subsys, _api_func)
Calculate static inline memory map API function name.
Definition: memmap.h:25
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:88
static memmap_sync(void)
Synchronise in-use regions with the externally visible system memory map.
Definition: fdtmem.h:25
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)