mb93493-irqs.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* mb93493-irqs.h: MB93493 companion chip IRQs
  2. *
  3. * Copyright (C) 2004 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_MB93493_IRQS_H
  12. #define _ASM_MB93493_IRQS_H
  13. #include <asm/irq.h>
  14. #ifndef __ASSEMBLY__
  15. /* IRQ IDs presented to drivers */
  16. enum {
  17. IRQ_MB93493_VDC = IRQ_BASE_MB93493 + 0,
  18. IRQ_MB93493_VCC = IRQ_BASE_MB93493 + 1,
  19. IRQ_MB93493_AUDIO_OUT = IRQ_BASE_MB93493 + 2,
  20. IRQ_MB93493_I2C_0 = IRQ_BASE_MB93493 + 3,
  21. IRQ_MB93493_I2C_1 = IRQ_BASE_MB93493 + 4,
  22. IRQ_MB93493_USB = IRQ_BASE_MB93493 + 5,
  23. IRQ_MB93493_LOCAL_BUS = IRQ_BASE_MB93493 + 7,
  24. IRQ_MB93493_PCMCIA = IRQ_BASE_MB93493 + 8,
  25. IRQ_MB93493_GPIO = IRQ_BASE_MB93493 + 9,
  26. IRQ_MB93493_AUDIO_IN = IRQ_BASE_MB93493 + 10,
  27. };
  28. /* IRQ multiplexor mappings */
  29. #define ROUTE_VIA_IRQ0 0 /* route IRQ by way of CPU external IRQ 0 */
  30. #define ROUTE_VIA_IRQ1 1 /* route IRQ by way of CPU external IRQ 1 */
  31. #define IRQ_MB93493_VDC_ROUTE ROUTE_VIA_IRQ0
  32. #define IRQ_MB93493_VCC_ROUTE ROUTE_VIA_IRQ1
  33. #define IRQ_MB93493_AUDIO_OUT_ROUTE ROUTE_VIA_IRQ1
  34. #define IRQ_MB93493_I2C_0_ROUTE ROUTE_VIA_IRQ1
  35. #define IRQ_MB93493_I2C_1_ROUTE ROUTE_VIA_IRQ1
  36. #define IRQ_MB93493_USB_ROUTE ROUTE_VIA_IRQ1
  37. #define IRQ_MB93493_LOCAL_BUS_ROUTE ROUTE_VIA_IRQ1
  38. #define IRQ_MB93493_PCMCIA_ROUTE ROUTE_VIA_IRQ1
  39. #define IRQ_MB93493_GPIO_ROUTE ROUTE_VIA_IRQ1
  40. #define IRQ_MB93493_AUDIO_IN_ROUTE ROUTE_VIA_IRQ1
  41. #endif /* !__ASSEMBLY__ */
  42. #endif /* _ASM_MB93493_IRQS_H */