Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 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 | */ |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 7 | #ifndef _VFIO_CCW_H_ |
| 8 | #define _VFIO_CCW_H_ |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 9 | #include <linux/types.h> |
Christopher Ferris | 525ce91 | 2017-07-26 13:12:53 -0700 | [diff] [blame] | 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; |
Colin Cross | 4ac3322 | 2022-12-15 15:45:35 -0800 | [diff] [blame] | 18 | } __attribute__((__packed__)); |
Christopher Ferris | aeddbcf | 2019-07-08 12:45:46 -0700 | [diff] [blame] | 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; |
Colin Cross | 4ac3322 | 2022-12-15 15:45:35 -0800 | [diff] [blame] | 24 | } __attribute__((__packed__)); |
Christopher Ferris | 8177cdf | 2020-08-03 11:53:55 -0700 | [diff] [blame] | 25 | struct ccw_schib_region { |
| 26 | #define SCHIB_AREA_SIZE 52 |
| 27 | __u8 schib_area[SCHIB_AREA_SIZE]; |
Colin Cross | 4ac3322 | 2022-12-15 15:45:35 -0800 | [diff] [blame] | 28 | } __attribute__((__packed__)); |
Christopher Ferris | 8177cdf | 2020-08-03 11:53:55 -0700 | [diff] [blame] | 29 | struct ccw_crw_region { |
| 30 | __u32 crw; |
| 31 | __u32 pad; |
Colin Cross | 4ac3322 | 2022-12-15 15:45:35 -0800 | [diff] [blame] | 32 | } __attribute__((__packed__)); |
Christopher Ferris | 82d7504 | 2015-01-26 10:57:07 -0800 | [diff] [blame] | 33 | #endif |