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

TOMOYO Linux Cross Reference
Linux/arch/s390/include/asm/crw.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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 */
  2 /*
  3  *   Data definitions for channel report processing
  4  *    Copyright IBM Corp. 2000, 2009
  5  *    Author(s): Ingo Adlung <adlung@de.ibm.com>,
  6  *               Martin Schwidefsky <schwidefsky@de.ibm.com>,
  7  *               Cornelia Huck <cornelia.huck@de.ibm.com>,
  8  */
  9 
 10 #ifndef _ASM_S390_CRW_H
 11 #define _ASM_S390_CRW_H
 12 
 13 #include <linux/types.h>
 14 
 15 /*
 16  * Channel Report Word
 17  */
 18 struct crw {
 19         __u32 res1 :  1;   /* reserved zero */
 20         __u32 slct :  1;   /* solicited */
 21         __u32 oflw :  1;   /* overflow */
 22         __u32 chn  :  1;   /* chained */
 23         __u32 rsc  :  4;   /* reporting source code */
 24         __u32 anc  :  1;   /* ancillary report */
 25         __u32 res2 :  1;   /* reserved zero */
 26         __u32 erc  :  6;   /* error-recovery code */
 27         __u32 rsid : 16;   /* reporting-source ID */
 28 } __attribute__ ((packed));
 29 
 30 typedef void (*crw_handler_t)(struct crw *, struct crw *, int);
 31 
 32 extern int crw_register_handler(int rsc, crw_handler_t handler);
 33 extern void crw_unregister_handler(int rsc);
 34 extern void crw_handle_channel_report(void);
 35 void crw_wait_for_channel_report(void);
 36 
 37 #define NR_RSCS 16
 38 
 39 #define CRW_RSC_MONITOR  0x2  /* monitoring facility */
 40 #define CRW_RSC_SCH      0x3  /* subchannel */
 41 #define CRW_RSC_CPATH    0x4  /* channel path */
 42 #define CRW_RSC_CONFIG   0x9  /* configuration-alert facility */
 43 #define CRW_RSC_CSS      0xB  /* channel subsystem */
 44 
 45 #define CRW_ERC_EVENT    0x00 /* event information pending */
 46 #define CRW_ERC_AVAIL    0x01 /* available */
 47 #define CRW_ERC_INIT     0x02 /* initialized */
 48 #define CRW_ERC_TERROR   0x03 /* temporary error */
 49 #define CRW_ERC_IPARM    0x04 /* installed parm initialized */
 50 #define CRW_ERC_TERM     0x05 /* terminal */
 51 #define CRW_ERC_PERRN    0x06 /* perm. error, fac. not init */
 52 #define CRW_ERC_PERRI    0x07 /* perm. error, facility init */
 53 #define CRW_ERC_PMOD     0x08 /* installed parameters modified */
 54 
 55 #endif /* _ASM_S390_CRW_H */
 56 

~ [ 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