sci.h 717 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef __ASM_SH_SCI_H
  2. #define __ASM_SH_SCI_H
  3. #include <linux/serial_core.h>
  4. /*
  5. * Generic header for SuperH SCI(F)
  6. *
  7. * Do not place SH-specific parts in here, sh64 and h8300 depend on this too.
  8. */
  9. /* Offsets into the sci_port->irqs array */
  10. enum {
  11. SCIx_ERI_IRQ,
  12. SCIx_RXI_IRQ,
  13. SCIx_TXI_IRQ,
  14. SCIx_BRI_IRQ,
  15. SCIx_NR_IRQS,
  16. };
  17. /*
  18. * Platform device specific platform_data struct
  19. */
  20. struct plat_sci_port {
  21. void __iomem *membase; /* io cookie */
  22. unsigned long mapbase; /* resource base */
  23. unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */
  24. unsigned int type; /* SCI / SCIF / IRDA */
  25. upf_t flags; /* UPF_* flags */
  26. };
  27. int early_sci_setup(struct uart_port *port);
  28. #endif /* __ASM_SH_SCI_H */