irq_lsapic.c 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * LSAPIC Interrupt Controller
  4. *
  5. * This takes care of interrupts that are generated by the CPU's
  6. * internal Streamlined Advanced Programmable Interrupt Controller
  7. * (LSAPIC), such as the ITC and IPI interrupts.
  8. *
  9. * Copyright (C) 1999 VA Linux Systems
  10. * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
  11. * Copyright (C) 2000 Hewlett-Packard Co
  12. * Copyright (C) 2000 David Mosberger-Tang <davidm@hpl.hp.com>
  13. */
  14. #include <linux/sched.h>
  15. #include <linux/irq.h>
  16. static unsigned int
  17. lsapic_noop_startup (struct irq_data *data)
  18. {
  19. return 0;
  20. }
  21. static void
  22. lsapic_noop (struct irq_data *data)
  23. {
  24. /* nothing to do... */
  25. }
  26. static int lsapic_retrigger(struct irq_data *data)
  27. {
  28. ia64_resend_irq(data->irq);
  29. return 1;
  30. }
  31. struct irq_chip irq_type_ia64_lsapic = {
  32. .name = "LSAPIC",
  33. .irq_startup = lsapic_noop_startup,
  34. .irq_shutdown = lsapic_noop,
  35. .irq_enable = lsapic_noop,
  36. .irq_disable = lsapic_noop,
  37. .irq_ack = lsapic_noop,
  38. .irq_retrigger = lsapic_retrigger,
  39. };