irq.h 790 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* ASB2364 FPGA irq numbers
  2. *
  3. * Copyright (C) 2010 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 Licence
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the Licence, or (at your option) any later version.
  10. */
  11. #ifndef _UNIT_IRQ_H
  12. #define _UNIT_IRQ_H
  13. #ifndef __ASSEMBLY__
  14. #ifdef CONFIG_SMP
  15. #define NR_CPU_IRQS GxICR_NUM_EXT_IRQS
  16. #else
  17. #define NR_CPU_IRQS GxICR_NUM_IRQS
  18. #endif
  19. enum {
  20. FPGA_LAN_IRQ = NR_CPU_IRQS,
  21. FPGA_UART_IRQ,
  22. FPGA_I2C_IRQ,
  23. FPGA_USB_IRQ,
  24. FPGA_RESERVED_IRQ,
  25. FPGA_FPGA_IRQ,
  26. NR_IRQS
  27. };
  28. extern void __init irq_fpga_init(void);
  29. #endif /* !__ASSEMBLY__ */
  30. #endif /* _UNIT_IRQ_H */