]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-headers/linux/vfio_ccw.h
linux headers: update against Linux 5.2-rc1
[mirror_qemu.git] / linux-headers / linux / vfio_ccw.h
index 3a565511ab6f15bff3e7b941fb6fa31d0c2059c5..fcc3e69ef526444601cb22d1765a9ae936690485 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
 /*
  * Interfaces for vfio-ccw
  *
@@ -11,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];
@@ -21,4 +23,15 @@ struct ccw_io_region {
        __u32   ret_code;
 } __attribute__((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;
+} __attribute__((packed));
+
 #endif