~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/vfio_ccw.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  * Interfaces for vfio-ccw
  4  *
  5  * Copyright IBM Corp. 2017
  6  *
  7  * Author(s): Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
  8  */
  9 
 10 #ifndef _VFIO_CCW_H_
 11 #define _VFIO_CCW_H_
 12 
 13 #include <linux/types.h>
 14 
 15 /* used for START SUBCHANNEL, always present */
 16 struct ccw_io_region {
 17 #define ORB_AREA_SIZE 12
 18         __u8    orb_area[ORB_AREA_SIZE];
 19 #define SCSW_AREA_SIZE 12
 20         __u8    scsw_area[SCSW_AREA_SIZE];
 21 #define IRB_AREA_SIZE 96
 22         __u8    irb_area[IRB_AREA_SIZE];
 23         __u32   ret_code;
 24 } __packed;
 25 
 26 /*
 27  * used for processing commands that trigger asynchronous actions
 28  * Note: this is controlled by a capability
 29  */
 30 #define VFIO_CCW_ASYNC_CMD_HSCH (1 << 0)
 31 #define VFIO_CCW_ASYNC_CMD_CSCH (1 << 1)
 32 struct ccw_cmd_region {
 33         __u32 command;
 34         __u32 ret_code;
 35 } __packed;
 36 
 37 /*
 38  * Used for processing commands that read the subchannel-information block
 39  * Reading this region triggers a stsch() to hardware
 40  * Note: this is controlled by a capability
 41  */
 42 struct ccw_schib_region {
 43 #define SCHIB_AREA_SIZE 52
 44         __u8 schib_area[SCHIB_AREA_SIZE];
 45 } __packed;
 46 
 47 /*
 48  * Used for returning a Channel Report Word to userspace.
 49  * Note: this is controlled by a capability
 50  */
 51 struct ccw_crw_region {
 52         __u32 crw;
 53         __u32 pad;
 54 } __packed;
 55 
 56 #endif
 57 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php