/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2012 - Virtual Open Systems and Columbia University * Author: Christoffer Dall */ #ifndef __ARM_KVM_MMIO_H__ #define __ARM_KVM_MMIO_H__ #include #include #include struct kvm_decode { unsigned long rt; bool sign_extend; /* Not used on 32-bit arm */ bool sixty_four; }; void kvm_mmio_write_buf(void *buf, unsigned int len, unsigned long data); unsigned long kvm_mmio_read_buf(const void *buf, unsigned int len); int kvm_handle_mmio_return(struct kvm_vcpu *vcpu, struct kvm_run *run); int io_mem_abort(struct kvm_vcpu *vcpu, struct kvm_run *run, phys_addr_t fault_ipa); #endif /* __ARM_KVM_MMIO_H__ */