irq.h 760 B

123456789101112131415161718192021222324252627282930
  1. /* irq.h: FRV IRQ definitions
  2. *
  3. * Copyright (C) 2006 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_IRQ_H_
  12. #define _ASM_IRQ_H_
  13. #define NR_IRQS 48
  14. #define IRQ_BASE_CPU (0 * 16)
  15. #define IRQ_BASE_FPGA (1 * 16)
  16. #define IRQ_BASE_MB93493 (2 * 16)
  17. /* probe returns a 32-bit IRQ mask:-/ */
  18. #define MIN_PROBE_IRQ (NR_IRQS - 32)
  19. #ifndef __ASSEMBLY__
  20. static inline int irq_canonicalize(int irq)
  21. {
  22. return irq;
  23. }
  24. #endif
  25. #endif /* _ASM_IRQ_H_ */