Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _ASM_S390_TPI_H
0003 #define _ASM_S390_TPI_H
0004 
0005 #include <linux/types.h>
0006 #include <uapi/asm/schid.h>
0007 
0008 #ifndef __ASSEMBLY__
0009 
0010 /* I/O-Interruption Code as stored by TEST PENDING INTERRUPTION (TPI). */
0011 struct tpi_info {
0012     struct subchannel_id schid;
0013     u32 intparm;
0014     u32 adapter_IO:1;
0015     u32 directed_irq:1;
0016     u32 isc:3;
0017     u32 :12;
0018     u32 type:3;
0019     u32 :12;
0020 } __packed __aligned(4);
0021 
0022 /* I/O-Interruption Code as stored by TPI for an Adapter I/O */
0023 struct tpi_adapter_info {
0024     u32 aism:8;
0025     u32 :22;
0026     u32 error:1;
0027     u32 forward:1;
0028     u32 reserved;
0029     u32 adapter_IO:1;
0030     u32 directed_irq:1;
0031     u32 isc:3;
0032     u32 :27;
0033 } __packed __aligned(4);
0034 
0035 #endif /* __ASSEMBLY__ */
0036 
0037 #endif /* _ASM_S390_TPI_H */