aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/vfio_ccw.h
diff options
context:
space:
mode:
authorCornelia Huck <cohuck@redhat.com>2018-07-23 16:03:27 +0200
committerCornelia Huck <cohuck@redhat.com>2019-04-24 14:18:51 +0200
commitd5afd5d135c8cc43bd2568361b4c91f0bd488c3f (patch)
tree89ed16e6dba457f7fe6f4aeb3aadff90535fb975 /include/uapi/linux/vfio_ccw.h
parents390/cio: export hsch to modules (diff)
downloadlinux-dev-d5afd5d135c8cc43bd2568361b4c91f0bd488c3f.tar.xz
linux-dev-d5afd5d135c8cc43bd2568361b4c91f0bd488c3f.zip
vfio-ccw: add handling for async channel instructions
Add a region to the vfio-ccw device that can be used to submit asynchronous I/O instructions. ssch continues to be handled by the existing I/O region; the new region handles hsch and csch. Interrupt status continues to be reported through the same channels as for ssch. Acked-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Farhan Ali <alifm@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to '')
-rw-r--r--include/uapi/linux/vfio_ccw.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/linux/vfio_ccw.h b/include/uapi/linux/vfio_ccw.h
index 2ec5f367ff78..cbecbf0cd54f 100644
--- a/include/uapi/linux/vfio_ccw.h
+++ b/include/uapi/linux/vfio_ccw.h
@@ -12,6 +12,7 @@
#include <linux/types.h>
+/* used for START SUBCHANNEL, always present */
struct ccw_io_region {
#define ORB_AREA_SIZE 12
__u8 orb_area[ORB_AREA_SIZE];
@@ -22,4 +23,15 @@ struct ccw_io_region {
__u32 ret_code;
} __packed;
+/*
+ * used for processing commands that trigger asynchronous actions
+ * Note: this is controlled by a capability
+ */
+#define VFIO_CCW_ASYNC_CMD_HSCH (1 << 0)
+#define VFIO_CCW_ASYNC_CMD_CSCH (1 << 1)
+struct ccw_cmd_region {
+ __u32 command;
+ __u32 ret_code;
+} __packed;
+
#endif