blob: aa5a87e53ba897d8d7da4a7c9555b2be135e40f2 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Ferris525ce912017-07-26 13:12:53 -07007#ifndef _VFIO_CCW_H_
8#define _VFIO_CCW_H_
Christopher Ferris82d75042015-01-26 10:57:07 -08009#include <linux/types.h>
Christopher Ferris525ce912017-07-26 13:12:53 -070010struct 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 Cross4ac33222022-12-15 15:45:35 -080018} __attribute__((__packed__));
Christopher Ferrisaeddbcf2019-07-08 12:45:46 -070019#define VFIO_CCW_ASYNC_CMD_HSCH (1 << 0)
20#define VFIO_CCW_ASYNC_CMD_CSCH (1 << 1)
21struct ccw_cmd_region {
22 __u32 command;
23 __u32 ret_code;
Colin Cross4ac33222022-12-15 15:45:35 -080024} __attribute__((__packed__));
Christopher Ferris8177cdf2020-08-03 11:53:55 -070025struct ccw_schib_region {
26#define SCHIB_AREA_SIZE 52
27 __u8 schib_area[SCHIB_AREA_SIZE];
Colin Cross4ac33222022-12-15 15:45:35 -080028} __attribute__((__packed__));
Christopher Ferris8177cdf2020-08-03 11:53:55 -070029struct ccw_crw_region {
30 __u32 crw;
31 __u32 pad;
Colin Cross4ac33222022-12-15 15:45:35 -080032} __attribute__((__packed__));
Christopher Ferris82d75042015-01-26 10:57:07 -080033#endif