summaryrefslogtreecommitdiffstats
path: root/sys/mips/nlm/interrupt.h
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2015-02-27 00:57:09 +0000
committerjchandra <jchandra@FreeBSD.org>2015-02-27 00:57:09 +0000
commit1f4069c7a5164399ea48b6f7df2a96c411a9b920 (patch)
treeac508f56c48d9a690ce329ca9a5cfb7408208a80 /sys/mips/nlm/interrupt.h
parent2c469d5dc197be18d184b76127cc02ae2ba5e8fd (diff)
downloadFreeBSD-src-1f4069c7a5164399ea48b6f7df2a96c411a9b920.zip
FreeBSD-src-1f4069c7a5164399ea48b6f7df2a96c411a9b920.tar.gz
Improve additional interrupt ACK for Broadcom XLP
Handling some interrupts in XLP (like PCIe and SATA) involves writing to vendor specific registers as part of interrupt acknowledgement. This was earlier done with xlp_establish_intr(), but a better solution is to provide a function xlp_set_bus_ack() that can be used with cpu_establish_hardintr(). This will allow platform initialization code to setup these ACKs without changing the standrard drivers.
Diffstat (limited to 'sys/mips/nlm/interrupt.h')
-rw-r--r--sys/mips/nlm/interrupt.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/mips/nlm/interrupt.h b/sys/mips/nlm/interrupt.h
index e2aeb69..f50d682 100644
--- a/sys/mips/nlm/interrupt.h
+++ b/sys/mips/nlm/interrupt.h
@@ -68,9 +68,7 @@
* XLR needs custom pre and post handlers for PCI/PCI-e interrupts
* XXX: maybe follow i386 intsrc model
*/
-void xlp_establish_intr(const char *name, driver_filter_t filt,
- driver_intr_t handler, void *arg, int irq, int flags,
- void **cookiep, void (*busack)(int));
void xlp_enable_irq(int irq);
+void xlp_set_bus_ack(int irq, void (*ack)(int, void *), void *arg);
#endif /* _RMI_INTERRUPT_H_ */
OpenPOWER on IntegriCloud