metag-ext.h 822 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (C) 2012 Imagination Technologies
  3. */
  4. #ifndef _LINUX_IRQCHIP_METAG_EXT_H_
  5. #define _LINUX_IRQCHIP_METAG_EXT_H_
  6. struct irq_data;
  7. struct platform_device;
  8. /* called from core irq code at init */
  9. int init_external_IRQ(void);
  10. /*
  11. * called from SoC init_irq() callback to dynamically indicate the lack of
  12. * HWMASKEXT registers.
  13. */
  14. void meta_intc_no_mask(void);
  15. /*
  16. * These allow SoCs to specialise the interrupt controller from their init_irq
  17. * callbacks.
  18. */
  19. extern struct irq_chip meta_intc_edge_chip;
  20. extern struct irq_chip meta_intc_level_chip;
  21. /* this should be called in the mask callback */
  22. void meta_intc_mask_irq_simple(struct irq_data *data);
  23. /* this should be called in the unmask callback */
  24. void meta_intc_unmask_irq_simple(struct irq_data *data);
  25. #endif /* _LINUX_IRQCHIP_METAG_EXT_H_ */