/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* Structures for hypfs interface3*4* Copyright IBM Corp. 20135*6* Author: Martin Schwidefsky <[email protected]>7*/89#ifndef _ASM_HYPFS_H10#define _ASM_HYPFS_H1112#include <linux/types.h>1314/*15* IOCTL for binary interface /sys/kernel/debug/diag_30416*/17struct hypfs_diag304 {18__u32 args[2];19__u64 data;20__u64 rc;21} __attribute__((packed));2223#define HYPFS_IOCTL_MAGIC 0x102425#define HYPFS_DIAG304 \26_IOWR(HYPFS_IOCTL_MAGIC, 0x20, struct hypfs_diag304)2728/*29* Structures for binary interface /sys/kernel/debug/diag_0c30*/31struct hypfs_diag0c_hdr {32__u64 len; /* Length of diag0c buffer without header */33__u16 version; /* Version of header */34char reserved1[6]; /* Reserved */35char tod_ext[16]; /* TOD clock for diag0c */36__u64 count; /* Number of entries (CPUs) in diag0c array */37char reserved2[24]; /* Reserved */38};3940struct hypfs_diag0c_entry {41char date[8]; /* MM/DD/YY in EBCDIC */42char time[8]; /* HH:MM:SS in EBCDIC */43__u64 virtcpu; /* Virtual time consumed by the virt CPU (us) */44__u64 totalproc; /* Total of virtual and simulation time (us) */45__u32 cpu; /* Linux logical CPU number */46__u32 reserved; /* Align to 8 byte */47};4849struct hypfs_diag0c_data {50struct hypfs_diag0c_hdr hdr; /* 64 byte header */51struct hypfs_diag0c_entry entry[]; /* diag0c entry array */52};5354#endif555657