compat.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Compat layer for transition period
  3. */
  4. #ifndef CONFIG_GENERIC_HARDIRQS_NO_COMPAT
  5. static inline void irq_compat_set_progress(struct irq_desc *desc)
  6. {
  7. desc->status |= IRQ_INPROGRESS;
  8. }
  9. static inline void irq_compat_clr_progress(struct irq_desc *desc)
  10. {
  11. desc->status &= ~IRQ_INPROGRESS;
  12. }
  13. static inline void irq_compat_set_disabled(struct irq_desc *desc)
  14. {
  15. desc->status |= IRQ_DISABLED;
  16. }
  17. static inline void irq_compat_clr_disabled(struct irq_desc *desc)
  18. {
  19. desc->status &= ~IRQ_DISABLED;
  20. }
  21. static inline void irq_compat_set_pending(struct irq_desc *desc)
  22. {
  23. desc->status |= IRQ_PENDING;
  24. }
  25. static inline void irq_compat_clr_pending(struct irq_desc *desc)
  26. {
  27. desc->status &= ~IRQ_PENDING;
  28. }
  29. static inline void irq_compat_set_masked(struct irq_desc *desc)
  30. {
  31. desc->status |= IRQ_MASKED;
  32. }
  33. static inline void irq_compat_clr_masked(struct irq_desc *desc)
  34. {
  35. desc->status &= ~IRQ_MASKED;
  36. }
  37. #else
  38. static inline void irq_compat_set_progress(struct irq_desc *desc) { }
  39. static inline void irq_compat_clr_progress(struct irq_desc *desc) { }
  40. static inline void irq_compat_set_disabled(struct irq_desc *desc) { }
  41. static inline void irq_compat_clr_disabled(struct irq_desc *desc) { }
  42. static inline void irq_compat_set_pending(struct irq_desc *desc) { }
  43. static inline void irq_compat_clr_pending(struct irq_desc *desc) { }
  44. static inline void irq_compat_set_masked(struct irq_desc *desc) { }
  45. static inline void irq_compat_clr_masked(struct irq_desc *desc) { }
  46. #endif