ehv_pic.h 963 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * EHV_PIC private definitions and structure.
  3. *
  4. * Copyright 2008-2010 Freescale Semiconductor, Inc.
  5. *
  6. * This file is licensed under the terms of the GNU General Public License
  7. * version 2. This program is licensed "as is" without any warranty of any
  8. * kind, whether express or implied.
  9. */
  10. #ifndef __EHV_PIC_H__
  11. #define __EHV_PIC_H__
  12. #include <linux/irq.h>
  13. #define NR_EHV_PIC_INTS 1024
  14. #define EHV_PIC_INFO(name) EHV_PIC_##name
  15. #define EHV_PIC_VECPRI_POLARITY_NEGATIVE 0
  16. #define EHV_PIC_VECPRI_POLARITY_POSITIVE 1
  17. #define EHV_PIC_VECPRI_SENSE_EDGE 0
  18. #define EHV_PIC_VECPRI_SENSE_LEVEL 0x2
  19. #define EHV_PIC_VECPRI_POLARITY_MASK 0x1
  20. #define EHV_PIC_VECPRI_SENSE_MASK 0x2
  21. struct ehv_pic {
  22. /* The remapper for this EHV_PIC */
  23. struct irq_domain *irqhost;
  24. /* The "linux" controller struct */
  25. struct irq_chip hc_irq;
  26. /* core int flag */
  27. int coreint_flag;
  28. };
  29. void ehv_pic_init(void);
  30. unsigned int ehv_pic_get_irq(void);
  31. #endif /* __EHV_PIC_H__ */