iPXE
memsizes.h
Go to the documentation of this file.
1#ifndef _MEMSIZES_H
2#define _MEMSIZES_H
3
4FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
5
6#include <basemem.h>
7
8/**
9 * Get size of base memory from BIOS free base memory counter
10 *
11 * @ret basemem Base memory size, in kB
12 */
13static inline unsigned int basememsize ( void ) {
14 return get_fbms();
15}
16
17extern unsigned int extmemsize ( void );
18
19#endif /* _MEMSIZES_H */
Base memory allocation.
static unsigned int get_fbms(void)
Read the BIOS free base memory counter.
Definition basemem.h:21
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
unsigned int extmemsize(void)
Get size of extended memory.
Definition int15.c:159
static unsigned int basememsize(void)
Get size of base memory from BIOS free base memory counter.
Definition memsizes.h:13