xref: /openbmc/linux/arch/s390/include/asm/isc.h (revision eadb86ab)
1c6557e7fSMartin Schwidefsky #ifndef _ASM_S390_ISC_H
2c6557e7fSMartin Schwidefsky #define _ASM_S390_ISC_H
3c6557e7fSMartin Schwidefsky 
4c6557e7fSMartin Schwidefsky #include <linux/types.h>
5c6557e7fSMartin Schwidefsky 
6c6557e7fSMartin Schwidefsky /*
7c6557e7fSMartin Schwidefsky  * I/O interruption subclasses used by drivers.
8c6557e7fSMartin Schwidefsky  * Please add all used iscs here so that it is possible to distribute
9c6557e7fSMartin Schwidefsky  * isc usage between drivers.
10c6557e7fSMartin Schwidefsky  * Reminder: 0 is highest priority, 7 lowest.
11c6557e7fSMartin Schwidefsky  */
12c6557e7fSMartin Schwidefsky #define MAX_ISC 7
13c6557e7fSMartin Schwidefsky 
14c6557e7fSMartin Schwidefsky /* Regular I/O interrupts. */
15c6557e7fSMartin Schwidefsky #define IO_SCH_ISC 3			/* regular I/O subchannels */
16c6557e7fSMartin Schwidefsky #define CONSOLE_ISC 1			/* console I/O subchannel */
17eadb86abSSebastian Ott #define EADM_SCH_ISC 4			/* EADM subchannels */
18c6557e7fSMartin Schwidefsky #define CHSC_SCH_ISC 7			/* CHSC subchannels */
19c6557e7fSMartin Schwidefsky /* Adapter interrupts. */
20c6557e7fSMartin Schwidefsky #define QDIO_AIRQ_ISC IO_SCH_ISC	/* I/O subchannel in qdio mode */
21cb17a636SFelix Beck #define AP_ISC 6			/* adjunct processor (crypto) devices */
22c6557e7fSMartin Schwidefsky 
23c6557e7fSMartin Schwidefsky /* Functions for registration of I/O interruption subclasses */
24c6557e7fSMartin Schwidefsky void isc_register(unsigned int isc);
25c6557e7fSMartin Schwidefsky void isc_unregister(unsigned int isc);
26c6557e7fSMartin Schwidefsky 
27c6557e7fSMartin Schwidefsky #endif /* _ASM_S390_ISC_H */
28