Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  *   Data definitions for channel report processing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *    Copyright IBM Corp. 2000, 2009
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  *    Author(s): Ingo Adlung <adlung@de.ibm.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  *		 Martin Schwidefsky <schwidefsky@de.ibm.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  *		 Cornelia Huck <cornelia.huck@de.ibm.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *		 Heiko Carstens <heiko.carstens@de.ibm.com>,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #ifndef _ASM_S390_CRW_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define _ASM_S390_CRW_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * Channel Report Word
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) struct crw {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	__u32 res1 :  1;   /* reserved zero */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	__u32 slct :  1;   /* solicited */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	__u32 oflw :  1;   /* overflow */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	__u32 chn  :  1;   /* chained */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	__u32 rsc  :  4;   /* reporting source code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	__u32 anc  :  1;   /* ancillary report */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	__u32 res2 :  1;   /* reserved zero */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	__u32 erc  :  6;   /* error-recovery code */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	__u32 rsid : 16;   /* reporting-source ID */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) } __attribute__ ((packed));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) typedef void (*crw_handler_t)(struct crw *, struct crw *, int);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) extern int crw_register_handler(int rsc, crw_handler_t handler);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) extern void crw_unregister_handler(int rsc);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) extern void crw_handle_channel_report(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) void crw_wait_for_channel_report(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define NR_RSCS 16
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define CRW_RSC_MONITOR  0x2  /* monitoring facility */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define CRW_RSC_SCH	 0x3  /* subchannel */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define CRW_RSC_CPATH	 0x4  /* channel path */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define CRW_RSC_CONFIG	 0x9  /* configuration-alert facility */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define CRW_RSC_CSS	 0xB  /* channel subsystem */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define CRW_ERC_EVENT	 0x00 /* event information pending */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define CRW_ERC_AVAIL	 0x01 /* available */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define CRW_ERC_INIT	 0x02 /* initialized */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #define CRW_ERC_TERROR	 0x03 /* temporary error */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) #define CRW_ERC_IPARM	 0x04 /* installed parm initialized */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #define CRW_ERC_TERM	 0x05 /* terminal */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) #define CRW_ERC_PERRN	 0x06 /* perm. error, fac. not init */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) #define CRW_ERC_PERRI	 0x07 /* perm. error, facility init */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) #define CRW_ERC_PMOD	 0x08 /* installed parameters modified */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #endif /* _ASM_S390_CRW_H */