summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/fdtmem.h
blob: 1bbc38ff9a6cfacfd8bf600106fd1478d6742d17 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef _IPXE_FDTMEM_H
#define _IPXE_FDTMEM_H

/** @file
 *
 * Flattened Device Tree memory map
 *
 */

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( PERMITTED );

#include <stdint.h>

#ifdef MEMMAP_FDT
#define MEMMAP_PREFIX_fdt
#else
#define MEMMAP_PREFIX_fdt __fdt_
#endif

/**
 * Synchronise in-use regions with the externally visible system memory map
 *
 */
static inline __attribute__ (( always_inline )) void
MEMMAP_INLINE ( fdt, memmap_sync ) ( void ) {
	/* Nothing to do */
}

struct fdt_header;

extern physaddr_t fdtmem_relocate ( struct fdt_header *hdr, physaddr_t max );
extern int fdtmem_register ( struct fdt_header *hdr, physaddr_t max );

#endif /* _IPXE_FDTMEM_H */