| .. | .. |
|---|
| 11 | 11 | #define _ASM_S390_AIRQ_H |
|---|
| 12 | 12 | |
|---|
| 13 | 13 | #include <linux/bit_spinlock.h> |
|---|
| 14 | +#include <linux/dma-mapping.h> |
|---|
| 14 | 15 | |
|---|
| 15 | 16 | struct airq_struct { |
|---|
| 16 | 17 | struct hlist_node list; /* Handler queueing. */ |
|---|
| 17 | | - void (*handler)(struct airq_struct *); /* Thin-interrupt handler */ |
|---|
| 18 | + void (*handler)(struct airq_struct *airq, bool floating); |
|---|
| 18 | 19 | u8 *lsi_ptr; /* Local-Summary-Indicator pointer */ |
|---|
| 19 | 20 | u8 lsi_mask; /* Local-Summary-Indicator mask */ |
|---|
| 20 | 21 | u8 isc; /* Interrupt-subclass */ |
|---|
| .. | .. |
|---|
| 29 | 30 | /* Adapter interrupt bit vector */ |
|---|
| 30 | 31 | struct airq_iv { |
|---|
| 31 | 32 | unsigned long *vector; /* Adapter interrupt bit vector */ |
|---|
| 33 | + dma_addr_t vector_dma; /* Adapter interrupt bit vector dma */ |
|---|
| 32 | 34 | unsigned long *avail; /* Allocation bit mask for the bit vector */ |
|---|
| 33 | 35 | unsigned long *bitlock; /* Lock bit mask for the bit vector */ |
|---|
| 34 | 36 | unsigned long *ptr; /* Pointer associated with each bit */ |
|---|
| 35 | 37 | unsigned int *data; /* 32 bit value associated with each bit */ |
|---|
| 36 | 38 | unsigned long bits; /* Number of bits in the vector */ |
|---|
| 37 | 39 | unsigned long end; /* Number of highest allocated bit + 1 */ |
|---|
| 40 | + unsigned long flags; /* Allocation flags */ |
|---|
| 38 | 41 | spinlock_t lock; /* Lock to protect alloc & free */ |
|---|
| 39 | 42 | }; |
|---|
| 40 | 43 | |
|---|
| 41 | | -#define AIRQ_IV_ALLOC 1 /* Use an allocation bit mask */ |
|---|
| 42 | | -#define AIRQ_IV_BITLOCK 2 /* Allocate the lock bit mask */ |
|---|
| 43 | | -#define AIRQ_IV_PTR 4 /* Allocate the ptr array */ |
|---|
| 44 | | -#define AIRQ_IV_DATA 8 /* Allocate the data array */ |
|---|
| 44 | +#define AIRQ_IV_ALLOC 1 /* Use an allocation bit mask */ |
|---|
| 45 | +#define AIRQ_IV_BITLOCK 2 /* Allocate the lock bit mask */ |
|---|
| 46 | +#define AIRQ_IV_PTR 4 /* Allocate the ptr array */ |
|---|
| 47 | +#define AIRQ_IV_DATA 8 /* Allocate the data array */ |
|---|
| 48 | +#define AIRQ_IV_CACHELINE 16 /* Cacheline alignment for the vector */ |
|---|
| 45 | 49 | |
|---|
| 46 | 50 | struct airq_iv *airq_iv_create(unsigned long bits, unsigned long flags); |
|---|
| 47 | 51 | void airq_iv_release(struct airq_iv *iv); |
|---|