1
2
3
4
5
6
7
8 #include <linux/interrupt.h>
9 #include <asm/hardware.h>
10 #include <asm/parisc-device.h>
11
12 #define OFFSET_IRR 0x0000
13 #define OFFSET_IMR 0x0004
14 #define OFFSET_IPR 0x0008
15 #define OFFSET_ICR 0x000C
16 #define OFFSET_IAR 0x0010
17
18
19 #define GSC_EIM_WIDTH 5
20
21 struct gsc_irq {
22 unsigned long txn_addr;
23 int txn_data;
24 int irq;
25 };
26
27 struct gsc_asic {
28 struct parisc_device *gsc;
29 unsigned long hpa;
30 char *name;
31 int version;
32 int type;
33 int eim;
34 int global_irq[32];
35 };
36
37 int gsc_common_setup(struct parisc_device *parent, struct gsc_asic *gsc_asic);
38 int gsc_alloc_irq(struct gsc_irq *dev);
39 int gsc_claim_irq(struct gsc_irq *dev, int irq);
40 int gsc_assign_irq(struct irq_chip *type, void *data);
41 int gsc_find_local_irq(unsigned int irq, int *global_irq, int limit);
42 void gsc_fixup_irqs(struct parisc_device *parent, void *ctrl,
43 void (*choose)(struct parisc_device *child, void *ctrl));
44 void gsc_asic_assign_irq(struct gsc_asic *asic, int local_irq, int *irqp);
45
46 irqreturn_t gsc_asic_intr(int irq, void *dev);