aboutsummaryrefslogtreecommitdiffstats
path: root/include/xen
diff options
context:
space:
mode:
authorShannon Zhao <shannon.zhao@linaro.org>2016-04-07 08:03:31 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2016-07-06 05:34:46 -0400
commita62ed500307bfaf4c1a818b69f7c1e7df1039a16 (patch)
treee79f674f505b06eead42de60ce46bda73d5376ed /include/xen
parent9d2f145fce926ac35f1f602ed87bc61547cc6da5 (diff)
XEN: EFI: Move x86 specific codes to architecture directory
Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Tested-by: Julien Grall <julien.grall@arm.com> Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Diffstat (limited to 'include/xen')
-rw-r--r--include/xen/xen-ops.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
index 072be1c29917..3491582bf50a 100644
--- a/include/xen/xen-ops.h
+++ b/include/xen/xen-ops.h
@@ -90,14 +90,28 @@ int xen_xlate_map_ballooned_pages(xen_pfn_t **pfns, void **vaddr,
90 90
91bool xen_running_on_version_or_later(unsigned int major, unsigned int minor); 91bool xen_running_on_version_or_later(unsigned int major, unsigned int minor);
92 92
93#ifdef CONFIG_XEN_EFI 93efi_status_t xen_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc);
94extern efi_system_table_t *xen_efi_probe(void); 94efi_status_t xen_efi_set_time(efi_time_t *tm);
95#else 95efi_status_t xen_efi_get_wakeup_time(efi_bool_t *enabled, efi_bool_t *pending,
96static inline efi_system_table_t __init *xen_efi_probe(void) 96 efi_time_t *tm);
97{ 97efi_status_t xen_efi_set_wakeup_time(efi_bool_t enabled, efi_time_t *tm);
98 return NULL; 98efi_status_t xen_efi_get_variable(efi_char16_t *name, efi_guid_t *vendor,
99} 99 u32 *attr, unsigned long *data_size,
100#endif 100 void *data);
101efi_status_t xen_efi_get_next_variable(unsigned long *name_size,
102 efi_char16_t *name, efi_guid_t *vendor);
103efi_status_t xen_efi_set_variable(efi_char16_t *name, efi_guid_t *vendor,
104 u32 attr, unsigned long data_size,
105 void *data);
106efi_status_t xen_efi_query_variable_info(u32 attr, u64 *storage_space,
107 u64 *remaining_space,
108 u64 *max_variable_size);
109efi_status_t xen_efi_get_next_high_mono_count(u32 *count);
110efi_status_t xen_efi_update_capsule(efi_capsule_header_t **capsules,
111 unsigned long count, unsigned long sg_list);
112efi_status_t xen_efi_query_capsule_caps(efi_capsule_header_t **capsules,
113 unsigned long count, u64 *max_size,
114 int *reset_type);
101 115
102#ifdef CONFIG_PREEMPT 116#ifdef CONFIG_PREEMPT
103 117