mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 10:48:51 +00:00
486544161f
Port hypervisor related code from Mini-OS. This is referencing the code of Mini-OS from [1] by Huang Shijie and Volodymyr Babchuk which is for ARM64. Update essential arch code to support required bit operations, memory barriers etc. Copyright for the bits ported belong to at least the following authors, please see related files for details: Copyright (c) 2002-2003, K A Fraser Copyright (c) 2005, Grzegorz Milos, gm281@cam.ac.uk,Intel Research Cambridge Copyright (c) 2014, Karim Allah Ahmed <karim.allah.ahmed@gmail.com> [1] - https://github.com/zyzii/mini-os.git Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> Signed-off-by: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com> [trini: Drop wmb() from musb-net/linux-compat.h now] Signed-off-by: Tom Rini <trini@konsulko.com>
27 lines
780 B
C
27 lines
780 B
C
/* SPDX-License-Identifier: GPL-2.0
|
|
*
|
|
* Simple wrappers around HVM functions
|
|
*
|
|
* Copyright (c) 2002-2003, K A Fraser
|
|
* Copyright (c) 2005, Grzegorz Milos, gm281@cam.ac.uk,Intel Research Cambridge
|
|
* Copyright (c) 2020, EPAM Systems Inc.
|
|
*/
|
|
#ifndef XEN_HVM_H__
|
|
#define XEN_HVM_H__
|
|
|
|
#include <asm/xen/hypercall.h>
|
|
#include <xen/interface/hvm/params.h>
|
|
#include <xen/interface/xen.h>
|
|
|
|
extern struct shared_info *HYPERVISOR_shared_info;
|
|
|
|
int hvm_get_parameter(int idx, uint64_t *value);
|
|
int hvm_get_parameter_maintain_dcache(int idx, uint64_t *value);
|
|
|
|
struct shared_info *map_shared_info(void *p);
|
|
void do_hypervisor_callback(struct pt_regs *regs);
|
|
void mask_evtchn(uint32_t port);
|
|
void unmask_evtchn(uint32_t port);
|
|
void clear_evtchn(uint32_t port);
|
|
|
|
#endif /* XEN_HVM_H__ */
|