summaryrefslogtreecommitdiff
path: root/platform/sysroot/usr/include/linux/vfio_ccw.h
blob: 7bf08f54829c14b1e2811980ea0d405517634828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/****************************************************************************
 ****************************************************************************
 ***
 ***   This header was automatically generated from a Linux kernel header
 ***   of the same name, to make information necessary for userspace to
 ***   call into the kernel available to libc.  It contains only constants,
 ***   structures, and macros generated from the original header, and thus,
 ***   contains no copyrightable information.
 ***
 ***   To edit the content of this header, modify the corresponding
 ***   source file (e.g. under external/kernel-headers/original/) then
 ***   run bionic/libc/kernel/tools/update_all.py
 ***
 ***   Any manual change here will be lost the next time this script will
 ***   be run. You've been warned!
 ***
 ****************************************************************************
 ****************************************************************************/
#ifndef _VFIO_CCW_H_
#define _VFIO_CCW_H_
#include <linux/types.h>
struct ccw_io_region {
#define ORB_AREA_SIZE 12
  __u8 orb_area[ORB_AREA_SIZE];
#define SCSW_AREA_SIZE 12
  __u8 scsw_area[SCSW_AREA_SIZE];
#define IRB_AREA_SIZE 96
  __u8 irb_area[IRB_AREA_SIZE];
  __u32 ret_code;
} __attribute__((__packed__));
#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__));
struct ccw_schib_region {
#define SCHIB_AREA_SIZE 52
  __u8 schib_area[SCHIB_AREA_SIZE];
} __attribute__((__packed__));
struct ccw_crw_region {
  __u32 crw;
  __u32 pad;
} __attribute__((__packed__));
#endif