irq-davinci-aintc.h 674 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2019 Texas Instruments
  4. */
  5. #ifndef _LINUX_IRQ_DAVINCI_AINTC_
  6. #define _LINUX_IRQ_DAVINCI_AINTC_
  7. #include <linux/ioport.h>
  8. /**
  9. * struct davinci_aintc_config - configuration data for davinci-aintc driver.
  10. *
  11. * @reg: register range to map
  12. * @num_irqs: number of HW interrupts supported by the controller
  13. * @prios: an array of size num_irqs containing priority settings for
  14. * each interrupt
  15. */
  16. struct davinci_aintc_config {
  17. struct resource reg;
  18. unsigned int num_irqs;
  19. u8 *prios;
  20. };
  21. void davinci_aintc_init(const struct davinci_aintc_config *config);
  22. #endif /* _LINUX_IRQ_DAVINCI_AINTC_ */