1 /******************************************************************************
2  * asm-x86/guest/pvh-boot.h
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms and conditions of the GNU General Public
6  * License, version 2, as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public
14  * License along with this program; If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Copyright (c) 2017 Citrix Systems Ltd.
17  */
18 
19 #ifndef __X86_PVH_BOOT_H__
20 #define __X86_PVH_BOOT_H__
21 
22 #include <xen/multiboot.h>
23 
24 #ifdef CONFIG_PVH_GUEST
25 
26 extern bool pvh_boot;
27 
28 multiboot_info_t *pvh_init(void);
29 void pvh_print_info(void);
30 
31 #else
32 
33 #define pvh_boot 0
34 
pvh_init(void)35 static inline multiboot_info_t *pvh_init(void)
36 {
37     ASSERT_UNREACHABLE();
38     return NULL;
39 }
40 
pvh_print_info(void)41 static inline void pvh_print_info(void)
42 {
43     ASSERT_UNREACHABLE();
44 }
45 
46 #endif /* CONFIG_PVH_GUEST */
47 #endif /* __X86_PVH_BOOT_H__ */
48 
49 /*
50  * Local variables:
51  * mode: C
52  * c-file-style: "BSD"
53  * c-basic-offset: 4
54  * tab-width: 4
55  * indent-tabs-mode: nil
56  * End:
57  */
58