GNU Linux-libre 5.15.137-gnu
[releases.git] / arch / s390 / include / asm / tpi.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _ASM_S390_TPI_H
3 #define _ASM_S390_TPI_H
4
5 #include <linux/types.h>
6 #include <uapi/asm/schid.h>
7
8 #ifndef __ASSEMBLY__
9
10 /* I/O-Interruption Code as stored by TEST PENDING INTERRUPTION (TPI). */
11 struct tpi_info {
12         struct subchannel_id schid;
13         u32 intparm;
14         u32 adapter_IO:1;
15         u32 directed_irq:1;
16         u32 isc:3;
17         u32 :12;
18         u32 type:3;
19         u32 :12;
20 } __packed __aligned(4);
21
22 #endif /* __ASSEMBLY__ */
23
24 #endif /* _ASM_S390_TPI_H */