mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 18:25:04 +07:00
f4eae94f71
There are three users of adapter interrupts: AP, QDIO and PCI. Each registers a single adapter interrupt with independent ISCs. Define a "struct airq" with the interrupt handler, a pointer and a mask for the local summary indicator and the ISC for the adapter interrupt source. Convert the indicator array with its fixed number of adapter interrupt sources per ISE to an array of hlists. This removes the limitation to 32 adapter interrupts per ISC and allows for arbitrary memory locations for the local summary indicator. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
27 lines
767 B
C
27 lines
767 B
C
/*
|
|
* Copyright IBM Corp. 2002, 2007
|
|
* Author(s): Ingo Adlung <adlung@de.ibm.com>
|
|
* Cornelia Huck <cornelia.huck@de.ibm.com>
|
|
* Arnd Bergmann <arndb@de.ibm.com>
|
|
* Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
|
|
*/
|
|
|
|
#ifndef _ASM_S390_AIRQ_H
|
|
#define _ASM_S390_AIRQ_H
|
|
|
|
struct airq_struct {
|
|
struct hlist_node list; /* Handler queueing. */
|
|
void (*handler)(struct airq_struct *); /* Thin-interrupt handler */
|
|
u8 *lsi_ptr; /* Local-Summary-Indicator pointer */
|
|
u8 lsi_mask; /* Local-Summary-Indicator mask */
|
|
u8 isc; /* Interrupt-subclass */
|
|
u8 flags;
|
|
};
|
|
|
|
#define AIRQ_PTR_ALLOCATED 0x01
|
|
|
|
int register_adapter_interrupt(struct airq_struct *airq);
|
|
void unregister_adapter_interrupt(struct airq_struct *airq);
|
|
|
|
#endif /* _ASM_S390_AIRQ_H */
|