irq.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* MN2WS0050 on-board interrupt controller registers
  2. *
  3. * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * Modified by Matsushita Electric Industrial Co., Ltd.
  7. * Modifications:
  8. * 13-Nov-2006 MEI Define extended IRQ number for SMP support.
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version
  13. * 2 of the License, or (at your option) any later version.
  14. */
  15. #ifndef _PROC_IRQ_H
  16. #define _PROC_IRQ_H
  17. #ifdef __KERNEL__
  18. #define GxICR_NUM_IRQS 163
  19. #ifdef CONFIG_SMP
  20. #define GxICR_NUM_EXT_IRQS 197
  21. #endif /* CONFIG_SMP */
  22. #define GxICR_NUM_XIRQS 16
  23. #define XIRQ0 34
  24. #define XIRQ1 35
  25. #define XIRQ2 36
  26. #define XIRQ3 37
  27. #define XIRQ4 38
  28. #define XIRQ5 39
  29. #define XIRQ6 40
  30. #define XIRQ7 41
  31. #define XIRQ8 42
  32. #define XIRQ9 43
  33. #define XIRQ10 44
  34. #define XIRQ11 45
  35. #define XIRQ12 46
  36. #define XIRQ13 47
  37. #define XIRQ14 48
  38. #define XIRQ15 49
  39. #define XIRQ2IRQ(num) (XIRQ0 + num)
  40. #endif /* __KERNEL__ */
  41. #endif /* _PROC_IRQ_H */