[tcp] Allow out-of-order receive queue to be discarded
[gpxe.git] / src / arch / i386 / include / basemem.h
blobc477c7fe243eb294e4a17b54a5dd896eb9e85562
1 #ifndef _BASEMEM_H
2 #define _BASEMEM_H
4 /** @file
6 * Base memory allocation
8 */
10 FILE_LICENCE ( GPL2_OR_LATER );
12 #include <stdint.h>
13 #include <realmode.h>
14 #include <bios.h>
16 /**
17 * Read the BIOS free base memory counter
19 * @ret fbms Free base memory counter (in kB)
21 static inline unsigned int get_fbms ( void ) {
22 uint16_t fbms;
24 get_real ( fbms, BDA_SEG, BDA_FBMS );
25 return fbms;
28 extern void set_fbms ( unsigned int new_fbms );
30 /* Actually in hidemem.c, but putting it here avoids polluting the
31 * architecture-independent include/hidemem.h.
33 extern void hide_basemem ( void );
35 #endif /* _BASEMEM_H */