2
* GRUB -- GRand Unified Bootloader
3
* Copyright (C) 2002,2004,2005,2007,2008 Free Software Foundation, Inc.
5
* GRUB is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
10
* GRUB is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef GRUB_INIT_MACHINE_HEADER
20
#define GRUB_INIT_MACHINE_HEADER 1
22
#include <grub/types.h>
23
#include <grub/symbol.h>
24
#include <grub/machine/memory.h>
26
/* Get the memory size in KB. If EXTENDED is zero, return conventional
27
memory, otherwise return extended memory. */
28
grub_uint16_t grub_get_memsize (int extended);
30
/* Get a packed EISA memory map. Lower 16 bits are between 1MB and 16MB
31
in 1KB parts, and upper 16 bits are above 16MB in 64KB parts. */
32
grub_uint32_t grub_get_eisa_mmap (void);
34
/* Get a memory map entry. Return next continuation value. Zero means
36
grub_uint32_t grub_get_mmap_entry (struct grub_machine_mmap_entry *entry,
39
/* Turn on/off Gate A20. */
40
void grub_gate_a20 (int on);
42
void EXPORT_FUNC(grub_stop_floppy) (void);
44
#endif /* ! GRUB_INIT_MACHINE_HEADER */