summaryrefslogtreecommitdiff
path: root/arch/s390/include/uapi/asm/virtio-ccw.h
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2013-02-28 12:33:17 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2013-03-05 19:12:10 -0300
commit6a773cb825afb74a600a08fe87fab55ee98ec2ac (patch)
tree03724ab9ae67a391c732f512c405fe6591b3b160 /arch/s390/include/uapi/asm/virtio-ccw.h
parent07e169335ff0570c6e67b5ccf74d793f00ab0834 (diff)
KVM: s390: Export virtio-ccw api.
Export the virtio-ccw api in a header for usage by other code. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/s390/include/uapi/asm/virtio-ccw.h')
-rw-r--r--arch/s390/include/uapi/asm/virtio-ccw.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/virtio-ccw.h b/arch/s390/include/uapi/asm/virtio-ccw.h
new file mode 100644
index 000000000000..a9a4ebf79fa7
--- /dev/null
+++ b/arch/s390/include/uapi/asm/virtio-ccw.h
@@ -0,0 +1,21 @@
+/*
+ * Definitions for virtio-ccw devices.
+ *
+ * Copyright IBM Corp. 2013
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License (version 2 only)
+ * as published by the Free Software Foundation.
+ *
+ * Author(s): Cornelia Huck <cornelia.huck@de.ibm.com>
+ */
+#ifndef __KVM_VIRTIO_CCW_H
+#define __KVM_VIRTIO_CCW_H
+
+/* Alignment of vring buffers. */
+#define KVM_VIRTIO_CCW_RING_ALIGN 4096
+
+/* Subcode for diagnose 500 (virtio hypercall). */
+#define KVM_S390_VIRTIO_CCW_NOTIFY 3
+
+#endif