irq_lsapic.c 989 B

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