Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / xen_file.h
blob4b2ccba78514b5a842ea9110f2b2dc1b4d91b05a
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2013 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_XEN_FILE_HEADER
20 #define GRUB_XEN_FILE_HEADER 1
22 #include <grub/types.h>
23 #include <grub/elf.h>
24 #include <grub/elfload.h>
26 grub_elf_t grub_xen_file (grub_file_t file);
28 struct grub_xen_file_info
30 grub_uint64_t kern_start, kern_end;
31 grub_uint64_t virt_base;
32 grub_uint64_t entry_point;
33 grub_uint64_t hypercall_page;
34 grub_uint64_t paddr_offset;
35 int has_hypercall_page;
36 int has_note;
37 int has_xen_guest;
38 int extended_cr3;
39 enum
41 GRUB_XEN_FILE_I386 = 1,
42 GRUB_XEN_FILE_I386_PAE = 2,
43 GRUB_XEN_FILE_I386_PAE_BIMODE = 3,
44 GRUB_XEN_FILE_X86_64 = 4
45 } arch;
48 grub_err_t
49 grub_xen_get_info32 (grub_elf_t elf, struct grub_xen_file_info *xi);
50 grub_err_t
51 grub_xen_get_info64 (grub_elf_t elf, struct grub_xen_file_info *xi);
52 grub_err_t grub_xen_get_info (grub_elf_t elf, struct grub_xen_file_info *xi);
54 #endif