xref: /openbmc/qemu/hw/s390x/s390-virtio-hcall.h (revision 4921d0a7)
1 /*
2  * Support for virtio hypercalls on s390x
3  *
4  * Copyright IBM Corp. 2012, 2017
5  * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
6  *
7  * This work is licensed under the terms of the GNU GPL, version 2 or (at
8  * your option) any later version. See the COPYING file in the top-level
9  * directory.
10  */
11 
12 #ifndef HW_S390_VIRTIO_HCALL_H
13 #define HW_S390_VIRTIO_HCALL_H
14 
15 #include "standard-headers/asm-s390/virtio-ccw.h"
16 #include "cpu.h"
17 
18 /* The only thing that we need from the old kvm_virtio.h file */
19 #define KVM_S390_VIRTIO_NOTIFY 0
20 
21 typedef int (*s390_virtio_fn)(const uint64_t *args);
22 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
23 int s390_virtio_hypercall(CPUS390XState *env);
24 
25 #endif /* HW_S390_VIRTIO_HCALL_H */
26