1 /******************************************************************************
2  * platform_hypercall.c
3  */
4 
5 EMIT_FILE;
6 
7 #include <xen/lib.h>
8 #include <compat/platform.h>
9 
10 DEFINE_XEN_GUEST_HANDLE(compat_platform_op_t);
11 #define xen_platform_op     compat_platform_op
12 #define xen_platform_op_t   compat_platform_op_t
13 #define do_platform_op(x)   compat_platform_op(_##x)
14 
15 #define efi_get_info        efi_compat_get_info
16 #define efi_runtime_call(x) efi_compat_runtime_call(x)
17 
18 #define xen_processor_performance compat_processor_performance
19 #define set_px_pminfo       compat_set_px_pminfo
20 
21 #define xen_processor_power compat_processor_power
22 #define set_cx_pminfo       compat_set_cx_pminfo
23 
24 #define xen_pf_pcpuinfo xenpf_pcpuinfo
25 CHECK_pf_pcpuinfo;
26 #undef xen_pf_pcpuinfo
27 
28 #define xen_pf_pcpu_version xenpf_pcpu_version
29 CHECK_pf_pcpu_version;
30 #undef xen_pf_pcpu_version
31 
32 #define xen_pf_enter_acpi_sleep xenpf_enter_acpi_sleep
33 CHECK_pf_enter_acpi_sleep;
34 #undef xen_pf_enter_acpi_sleep
35 
36 #define xen_pf_resource_entry xenpf_resource_entry
37 CHECK_pf_resource_entry;
38 #undef xen_pf_resource_entry
39 
40 #define COMPAT
41 #define _XEN_GUEST_HANDLE(t) XEN_GUEST_HANDLE(t)
42 #define _XEN_GUEST_HANDLE_PARAM(t) XEN_GUEST_HANDLE_PARAM(t)
43 typedef int ret_t;
44 
45 #include "../platform_hypercall.c"
46 
47 /*
48  * Local variables:
49  * mode: C
50  * c-file-style: "BSD"
51  * c-basic-offset: 4
52  * tab-width: 4
53  * indent-tabs-mode: nil
54  * End:
55  */
56