serial_sci.h 987 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __LINUX_SERIAL_SCI_H
  2. #define __LINUX_SERIAL_SCI_H
  3. #include <linux/serial_core.h>
  4. /*
  5. * Generic header for SuperH SCI(F) (used by sh/sh64/h8300 and related parts)
  6. */
  7. #define SCSCR_TIE (1 << 7)
  8. #define SCSCR_RIE (1 << 6)
  9. #define SCSCR_TE (1 << 5)
  10. #define SCSCR_RE (1 << 4)
  11. #define SCSCR_REIE (1 << 3)
  12. #define SCSCR_TOIE (1 << 2) /* not supported by all parts */
  13. #define SCSCR_CKE1 (1 << 1)
  14. #define SCSCR_CKE0 (1 << 0)
  15. /* Offsets into the sci_port->irqs array */
  16. enum {
  17. SCIx_ERI_IRQ,
  18. SCIx_RXI_IRQ,
  19. SCIx_TXI_IRQ,
  20. SCIx_BRI_IRQ,
  21. SCIx_NR_IRQS,
  22. };
  23. /*
  24. * Platform device specific platform_data struct
  25. */
  26. struct plat_sci_port {
  27. void __iomem *membase; /* io cookie */
  28. unsigned long mapbase; /* resource base */
  29. unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */
  30. unsigned int type; /* SCI / SCIF / IRDA */
  31. upf_t flags; /* UPF_* flags */
  32. char *clk; /* clock string */
  33. unsigned int scscr; /* SCSCR initialization */
  34. };
  35. #endif /* __LINUX_SERIAL_SCI_H */