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>
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
;
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
49 grub_xen_get_info32 (grub_elf_t elf
, struct grub_xen_file_info
*xi
);
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
);