]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/mips/include/asm/i8259.h
irqchip: i8259: Remove unused i8259A_irq_pending
[karo-tx-linux.git] / arch / mips / include / asm / i8259.h
index a7fbcd6ed13c4fb41d19609102ea5813feba17c2..32229c77906a1efb8b151bd3f491a452ef2c24d7 100644 (file)
 
 extern raw_spinlock_t i8259A_lock;
 
-extern int i8259A_irq_pending(unsigned int irq);
 extern void make_8259A_irq(unsigned int irq);
 
 extern void init_i8259_irqs(void);
 extern int i8259_of_init(struct device_node *node, struct device_node *parent);
 
+/**
+ * i8159_set_poll() - Override the i8259 polling function
+ * @poll: pointer to platform-specific polling function
+ *
+ * Call this to override the generic i8259 polling function, which directly
+ * accesses i8259 registers, with a platform specific one which may be faster
+ * in cases where hardware provides a more optimal means of polling for an
+ * interrupt.
+ */
+extern void i8259_set_poll(int (*poll)(void));
+
 /*
  * Do the traditional i8259 interrupt polling thing.  This is for the few
  * cases where no better interrupt acknowledge method is available and we