xref: /openbmc/qemu/hw/s390x/s390-virtio-hcall.h (revision f764718d)
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 
17 /* The only thing that we need from the old kvm_virtio.h file */
18 #define KVM_S390_VIRTIO_NOTIFY 0
19 
20 typedef int (*s390_virtio_fn)(const uint64_t *args);
21 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
22 int s390_virtio_hypercall(CPUS390XState *env);
23 #endif /* HW_S390_VIRTIO_HCALL_H */
24