aboutsummaryrefslogtreecommitdiff
path: root/hw/s390x/s390-virtio-hcall.h
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2017-09-13 15:23:59 +0200
committerCornelia Huck <cohuck@redhat.com>2017-09-19 18:31:31 +0200
commit7d57754690268fe87bf75cd180d9176c6863875d (patch)
treeca4cb7a743a838bb76c6551e6ccb2a503e6201d6 /hw/s390x/s390-virtio-hcall.h
parent6286b41986f2e2b24e9dbf274fa3d5473210f7de (diff)
s390x: rename s390-virtio.h to s390-virtio-hcall.h
The only interface left, so let's properly rename it. Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: David Hildenbrand <david@redhat.com> Message-Id: <20170913132417.24384-5-david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'hw/s390x/s390-virtio-hcall.h')
-rw-r--r--hw/s390x/s390-virtio-hcall.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/hw/s390x/s390-virtio-hcall.h b/hw/s390x/s390-virtio-hcall.h
new file mode 100644
index 0000000000..59fcba3a06
--- /dev/null
+++ b/hw/s390x/s390-virtio-hcall.h
@@ -0,0 +1,20 @@
+/*
+ * Support for virtio hypercalls on s390x
+ *
+ * Copyright 2012 IBM Corp.
+ * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2 or (at
+ * your option) any later version. See the COPYING file in the top-level
+ * directory.
+ */
+
+#ifndef HW_S390_VIRTIO_HCALL_H
+#define HW_S390_VIRTIO_HCALL_H
+
+#include "standard-headers/asm-s390/kvm_virtio.h"
+#include "standard-headers/asm-s390/virtio-ccw.h"
+
+typedef int (*s390_virtio_fn)(const uint64_t *args);
+void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn);
+#endif /* HW_S390_VIRTIO_HCALL_H */