memsizes.h File Reference

#include <basemem.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER)
static unsigned int basememsize (void)
 Get size of base memory from BIOS free base memory counter.
unsigned int extmemsize (void)
 Get size of extended memory.


Function Documentation

FILE_LICENCE ( GPL2_OR_LATER   ) 

static unsigned int basememsize ( void   )  [inline, static]

Get size of base memory from BIOS free base memory counter.

Return values:
basemem Base memory size, in kB

Definition at line 13 of file memsizes.h.

References get_fbms().

Referenced by get_memmap().

00013                                                 {
00014         return get_fbms();
00015 }

unsigned int extmemsize ( void   ) 

Get size of extended memory.

Return values:
extmem Extended memory size, in kB
Note that this is only an approximation; for an accurate picture, use the E820 memory map obtained via get_memmap();

Definition at line 141 of file memmap.c.

References extmemsize_88(), and extmemsize_e801().

Referenced by get_memmap(), and nbi_process_segments().

00141                                  {
00142         unsigned int extmem;
00143 
00144         /* Try INT 15,e801 first, then fall back to INT 15,88 */
00145         extmem = extmemsize_e801();
00146         if ( ! extmem )
00147                 extmem = extmemsize_88();
00148         return extmem;
00149 }


Generated on Tue Apr 6 20:01:12 2010 for gPXE by  doxygen 1.5.7.1