1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _VFIO_CCW_H_ 8 #define _VFIO_CCW_H_ 9 #include <linux/types.h> 10 struct ccw_io_region { 11 #define ORB_AREA_SIZE 12 12 __u8 orb_area[ORB_AREA_SIZE]; 13 #define SCSW_AREA_SIZE 12 14 __u8 scsw_area[SCSW_AREA_SIZE]; 15 #define IRB_AREA_SIZE 96 16 __u8 irb_area[IRB_AREA_SIZE]; 17 __u32 ret_code; 18 } __attribute__((__packed__)); 19 #define VFIO_CCW_ASYNC_CMD_HSCH (1 << 0) 20 #define VFIO_CCW_ASYNC_CMD_CSCH (1 << 1) 21 struct ccw_cmd_region { 22 __u32 command; 23 __u32 ret_code; 24 } __attribute__((__packed__)); 25 struct ccw_schib_region { 26 #define SCHIB_AREA_SIZE 52 27 __u8 schib_area[SCHIB_AREA_SIZE]; 28 } __attribute__((__packed__)); 29 struct ccw_crw_region { 30 __u32 crw; 31 __u32 pad; 32 } __attribute__((__packed__)); 33 #endif 34