ilsel.h 887 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef __ASM_SH_ILSEL_H
  2. #define __ASM_SH_ILSEL_H
  3. typedef enum {
  4. ILSEL_NONE,
  5. ILSEL_LAN,
  6. ILSEL_USBH_I,
  7. ILSEL_USBH_S,
  8. ILSEL_USBH_V,
  9. ILSEL_RTC,
  10. ILSEL_USBP_I,
  11. ILSEL_USBP_S,
  12. ILSEL_USBP_V,
  13. ILSEL_KEY,
  14. /*
  15. * ILSEL Aliases - corner cases for interleaved level tables.
  16. *
  17. * Someone thought this was a good idea and less hassle than
  18. * demuxing a shared vector, really.
  19. */
  20. /* ILSEL0 and 2 */
  21. ILSEL_FPGA0,
  22. ILSEL_FPGA1,
  23. ILSEL_EX1,
  24. ILSEL_EX2,
  25. ILSEL_EX3,
  26. ILSEL_EX4,
  27. /* ILSEL1 and 3 */
  28. ILSEL_FPGA2 = ILSEL_FPGA0,
  29. ILSEL_FPGA3 = ILSEL_FPGA1,
  30. ILSEL_EX5 = ILSEL_EX1,
  31. ILSEL_EX6 = ILSEL_EX2,
  32. ILSEL_EX7 = ILSEL_EX3,
  33. ILSEL_EX8 = ILSEL_EX4,
  34. } ilsel_source_t;
  35. /* arch/sh/boards/renesas/x3proto/ilsel.c */
  36. int ilsel_enable(ilsel_source_t set);
  37. int ilsel_enable_fixed(ilsel_source_t set, unsigned int level);
  38. void ilsel_disable(unsigned int irq);
  39. #endif /* __ASM_SH_ILSEL_H */