Blame view

include/linux/serial_sci.h 846 Bytes
96de1a8f0   Paul Mundt   serial: Move asm-...
1
2
  #ifndef __LINUX_SERIAL_SCI_H
  #define __LINUX_SERIAL_SCI_H
ecd956168   Paul Mundt   serial: Add SERIA...
3
4
  
  #include <linux/serial_core.h>
14baf9d7f   Paul Mundt   serial: sh-sci: f...
5
  #include <linux/sh_dma.h>
ecd956168   Paul Mundt   serial: Add SERIA...
6
7
  
  /*
96de1a8f0   Paul Mundt   serial: Move asm-...
8
   * Generic header for SuperH SCI(F) (used by sh/sh64/h8300 and related parts)
ecd956168   Paul Mundt   serial: Add SERIA...
9
10
11
12
13
14
15
16
17
18
   */
  
  /* Offsets into the sci_port->irqs array */
  enum {
  	SCIx_ERI_IRQ,
  	SCIx_RXI_IRQ,
  	SCIx_TXI_IRQ,
  	SCIx_BRI_IRQ,
  	SCIx_NR_IRQS,
  };
73a19e4c0   Guennadi Liakhovetski   serial: sh-sci: A...
19
  struct device;
ecd956168   Paul Mundt   serial: Add SERIA...
20
21
22
23
24
25
26
27
28
  /*
   * Platform device specific platform_data struct
   */
  struct plat_sci_port {
  	void __iomem	*membase;		/* io cookie */
  	unsigned long	mapbase;		/* resource base */
  	unsigned int	irqs[SCIx_NR_IRQS];	/* ERI, RXI, TXI, BRI */
  	unsigned int	type;			/* SCI / SCIF / IRDA */
  	upf_t		flags;			/* UPF_* flags */
501b825d0   Magnus Damm   sh-sci: improve c...
29
  	char		*clk;			/* clock string */
73a19e4c0   Guennadi Liakhovetski   serial: sh-sci: A...
30
  	struct device	*dma_dev;
04e82ffb0   Peter Huewe   serial: sh-sci: F...
31
  #ifdef CONFIG_SERIAL_SH_SCI_DMA
4bab9d426   Magnus Damm   dmaengine: shdma:...
32
33
  	unsigned int dma_slave_tx;
  	unsigned int dma_slave_rx;
04e82ffb0   Peter Huewe   serial: sh-sci: F...
34
  #endif
ecd956168   Paul Mundt   serial: Add SERIA...
35
  };
96de1a8f0   Paul Mundt   serial: Move asm-...
36
  #endif /* __LINUX_SERIAL_SCI_H */