~ubuntu-branches/ubuntu/trusty/virtualbox-lts-xenial/trusty-proposed

« back to all changes in this revision

Viewing changes to src/VBox/Devices/PC/ipxe/src/arch/i386/include/basemem.h

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2016-02-23 14:28:26 UTC
  • Revision ID: package-import@ubuntu.com-20160223142826-bdu69el2z6wa2a44
Tags: upstream-4.3.36-dfsg
ImportĀ upstreamĀ versionĀ 4.3.36-dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _BASEMEM_H
 
2
#define _BASEMEM_H
 
3
 
 
4
/** @file
 
5
 *
 
6
 * Base memory allocation
 
7
 *
 
8
 */
 
9
 
 
10
FILE_LICENCE ( GPL2_OR_LATER );
 
11
 
 
12
#include <stdint.h>
 
13
#include <realmode.h>
 
14
#include <bios.h>
 
15
 
 
16
/**
 
17
 * Read the BIOS free base memory counter
 
18
 *
 
19
 * @ret fbms            Free base memory counter (in kB)
 
20
 */
 
21
static inline unsigned int get_fbms ( void ) {
 
22
        uint16_t fbms;
 
23
 
 
24
        get_real ( fbms, BDA_SEG, BDA_FBMS );
 
25
        return fbms;
 
26
}
 
27
 
 
28
extern void set_fbms ( unsigned int new_fbms );
 
29
 
 
30
/* Actually in hidemem.c, but putting it here avoids polluting the
 
31
 * architecture-independent include/hidemem.h.
 
32
 */
 
33
extern void hide_basemem ( void );
 
34
 
 
35
#endif /* _BASEMEM_H */