serial_sci.h 696 B

1234567891011121314151617181920212223242526272829303132
  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. /* Offsets into the sci_port->irqs array */
  8. enum {
  9. SCIx_ERI_IRQ,
  10. SCIx_RXI_IRQ,
  11. SCIx_TXI_IRQ,
  12. SCIx_BRI_IRQ,
  13. SCIx_NR_IRQS,
  14. };
  15. /*
  16. * Platform device specific platform_data struct
  17. */
  18. struct plat_sci_port {
  19. void __iomem *membase; /* io cookie */
  20. unsigned long mapbase; /* resource base */
  21. unsigned int irqs[SCIx_NR_IRQS]; /* ERI, RXI, TXI, BRI */
  22. unsigned int type; /* SCI / SCIF / IRDA */
  23. upf_t flags; /* UPF_* flags */
  24. };
  25. int early_sci_setup(struct uart_port *port);
  26. #endif /* __LINUX_SERIAL_SCI_H */