1*dd873966SEric Auger /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
274c98e20SCornelia Huck /*
374c98e20SCornelia Huck  * Interfaces for vfio-ccw
474c98e20SCornelia Huck  *
574c98e20SCornelia Huck  * Copyright IBM Corp. 2017
674c98e20SCornelia Huck  *
774c98e20SCornelia Huck  * Author(s): Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
874c98e20SCornelia Huck  */
974c98e20SCornelia Huck 
1074c98e20SCornelia Huck #ifndef _VFIO_CCW_H_
1174c98e20SCornelia Huck #define _VFIO_CCW_H_
1274c98e20SCornelia Huck 
1374c98e20SCornelia Huck #include <linux/types.h>
1474c98e20SCornelia Huck 
1574c98e20SCornelia Huck struct ccw_io_region {
1674c98e20SCornelia Huck #define ORB_AREA_SIZE 12
1774c98e20SCornelia Huck 	__u8	orb_area[ORB_AREA_SIZE];
1874c98e20SCornelia Huck #define SCSW_AREA_SIZE 12
1974c98e20SCornelia Huck 	__u8	scsw_area[SCSW_AREA_SIZE];
2074c98e20SCornelia Huck #define IRB_AREA_SIZE 96
2174c98e20SCornelia Huck 	__u8	irb_area[IRB_AREA_SIZE];
2274c98e20SCornelia Huck 	__u32	ret_code;
2374c98e20SCornelia Huck } __attribute__((packed));
2474c98e20SCornelia Huck 
2574c98e20SCornelia Huck #endif
26