arm-gic-common.h 790 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * include/linux/irqchip/arm-gic-common.h
  3. *
  4. * Copyright (C) 2016 ARM Limited, All Rights Reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __LINUX_IRQCHIP_ARM_GIC_COMMON_H
  11. #define __LINUX_IRQCHIP_ARM_GIC_COMMON_H
  12. #include <linux/types.h>
  13. #include <linux/ioport.h>
  14. enum gic_type {
  15. GIC_V2,
  16. GIC_V3,
  17. };
  18. struct gic_kvm_info {
  19. /* GIC type */
  20. enum gic_type type;
  21. /* Virtual CPU interface */
  22. struct resource vcpu;
  23. /* Interrupt number */
  24. unsigned int maint_irq;
  25. /* Virtual control interface */
  26. struct resource vctrl;
  27. };
  28. const struct gic_kvm_info *gic_get_kvm_info(void);
  29. #endif /* __LINUX_IRQCHIP_ARM_GIC_COMMON_H */