| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 1 | /**************************************************************************** | 
 | 2 |  **************************************************************************** | 
 | 3 |  *** | 
 | 4 |  ***   This header was automatically generated from a Linux kernel header | 
 | 5 |  ***   of the same name, to make information necessary for userspace to | 
 | 6 |  ***   call into the kernel available to libc.  It contains only constants, | 
 | 7 |  ***   structures, and macros generated from the original header, and thus, | 
 | 8 |  ***   contains no copyrightable information. | 
 | 9 |  *** | 
 | 10 |  ***   To edit the content of this header, modify the corresponding | 
 | 11 |  ***   source file (e.g. under external/kernel-headers/original/) then | 
 | 12 |  ***   run bionic/libc/kernel/tools/update_all.py | 
 | 13 |  *** | 
 | 14 |  ***   Any manual change here will be lost the next time this script will | 
 | 15 |  ***   be run. You've been warned! | 
 | 16 |  *** | 
 | 17 |  **************************************************************************** | 
 | 18 |  ****************************************************************************/ | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 19 | #ifndef _VFIO_CCW_H_ | 
 | 20 | #define _VFIO_CCW_H_ | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 21 | #include <linux/types.h> | 
| Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 22 | struct ccw_io_region { | 
 | 23 | #define ORB_AREA_SIZE 12 | 
 | 24 |   __u8 orb_area[ORB_AREA_SIZE]; | 
 | 25 | #define SCSW_AREA_SIZE 12 | 
 | 26 |   __u8 scsw_area[SCSW_AREA_SIZE]; | 
 | 27 | #define IRB_AREA_SIZE 96 | 
 | 28 |   __u8 irb_area[IRB_AREA_SIZE]; | 
 | 29 |   __u32 ret_code; | 
 | 30 | } __packed; | 
| Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 31 | #define VFIO_CCW_ASYNC_CMD_HSCH (1 << 0) | 
 | 32 | #define VFIO_CCW_ASYNC_CMD_CSCH (1 << 1) | 
 | 33 | struct ccw_cmd_region { | 
 | 34 |   __u32 command; | 
 | 35 |   __u32 ret_code; | 
 | 36 | } __packed; | 
| Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 37 | #endif |