3 * Declarations for functions in gsc.c
4 * Copyright (c) 2000-2002 Helge Deller, Matthew Wilcox
6 * Distributed under the terms of the GPL, version 2
9 #include <linux/interrupt.h>
10 #include <asm/hardware.h>
11 #include <asm/parisc-device.h>
13 #define OFFSET_IRR 0x0000 /* Interrupt request register */
14 #define OFFSET_IMR 0x0004 /* Interrupt mask register */
15 #define OFFSET_IPR 0x0008 /* Interrupt pending register */
16 #define OFFSET_ICR 0x000C /* Interrupt control register */
17 #define OFFSET_IAR 0x0010 /* Interrupt address register */
19 /* PA I/O Architected devices support at least 5 bits in the EIM register. */
20 #define GSC_EIM_WIDTH 5
23 unsigned long txn_addr
; /* IRQ "target" */
24 int txn_data
; /* HW "IRQ" */
25 int irq
; /* virtual IRQ */
29 struct parisc_device
*gsc
;
36 struct irq_region
*busdev_region
;
39 /* short cut to keep the compiler happy */
40 #define BUSDEV_DEV(x) ((struct busdevice *) (x))
42 int gsc_common_irqsetup(struct parisc_device
*parent
, struct busdevice
*busdev
);
43 extern int gsc_alloc_irq(struct gsc_irq
*dev
); /* dev needs an irq */
44 extern int gsc_claim_irq(struct gsc_irq
*dev
, int irq
); /* dev needs this irq */
46 irqreturn_t
busdev_barked(int busdev_irq
, void *dev
, struct pt_regs
*regs
);