irq-atmel-aic-common.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Atmel AT91 common AIC (Advanced Interrupt Controller) header file
  3. *
  4. * Copyright (C) 2004 SAN People
  5. * Copyright (C) 2004 ATMEL
  6. * Copyright (C) Rick Bronson
  7. * Copyright (C) 2014 Free Electrons
  8. *
  9. * Author: Boris BREZILLON <boris.brezillon@free-electrons.com>
  10. *
  11. * This file is licensed under the terms of the GNU General Public
  12. * License version 2. This program is licensed "as is" without any
  13. * warranty of any kind, whether express or implied.
  14. */
  15. #ifndef __IRQ_ATMEL_AIC_COMMON_H
  16. #define __IRQ_ATMEL_AIC_COMMON_H
  17. int aic_common_set_type(struct irq_data *d, unsigned type, unsigned *val);
  18. int aic_common_set_priority(int priority, unsigned *val);
  19. int aic_common_irq_domain_xlate(struct irq_domain *d,
  20. struct device_node *ctrlr,
  21. const u32 *intspec,
  22. unsigned int intsize,
  23. irq_hw_number_t *out_hwirq,
  24. unsigned int *out_type);
  25. struct irq_domain *__init aic_common_of_init(struct device_node *node,
  26. const struct irq_domain_ops *ops,
  27. const char *name, int nirqs);
  28. void __init aic_common_rtc_irq_fixup(struct device_node *root);
  29. void __init aic_common_rtt_irq_fixup(struct device_node *root);
  30. void __init aic_common_irq_fixup(const struct of_device_id *matches);
  31. #endif /* __IRQ_ATMEL_AIC_COMMON_H */