Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
serial_sci.h File Reference
#include <linux/serial_core.h>
#include <linux/sh_dma.h>

Go to the source code of this file.

Data Structures

struct  plat_sci_port_ops
 
struct  plat_sci_port
 

Macros

#define SCIx_NOT_SUPPORTED   (-1)
 
#define SCSCR_TIE   (1 << 7)
 
#define SCSCR_RIE   (1 << 6)
 
#define SCSCR_TE   (1 << 5)
 
#define SCSCR_RE   (1 << 4)
 
#define SCSCR_REIE   (1 << 3) /* not supported by all parts */
 
#define SCSCR_TOIE   (1 << 2) /* not supported by all parts */
 
#define SCSCR_CKE1   (1 << 1)
 
#define SCSCR_CKE0   (1 << 0)
 
#define SCI_TDRE   0x80
 
#define SCI_RDRF   0x40
 
#define SCI_ORER   0x20
 
#define SCI_FER   0x10
 
#define SCI_PER   0x08
 
#define SCI_TEND   0x04
 
#define SCI_DEFAULT_ERROR_MASK   (SCI_PER | SCI_FER)
 
#define SCIF_ER   0x0080
 
#define SCIF_TEND   0x0040
 
#define SCIF_TDFE   0x0020
 
#define SCIF_BRK   0x0010
 
#define SCIF_FER   0x0008
 
#define SCIF_PER   0x0004
 
#define SCIF_RDF   0x0002
 
#define SCIF_DR   0x0001
 
#define SCIF_DEFAULT_ERROR_MASK   (SCIF_PER | SCIF_FER | SCIF_ER | SCIF_BRK)
 
#define SCSPTR_RTSIO   (1 << 7)
 
#define SCSPTR_CTSIO   (1 << 5)
 
#define SCSPTR_SPB2IO   (1 << 1)
 
#define SCSPTR_SPB2DT   (1 << 0)
 
#define SCIx_IRQ_MUXED(irq)
 
#define SCIx_IRQ_IS_MUXED(port)
 
#define SCIx_HAVE_RTSCTS   (1 << 0)
 

Enumerations

enum  {
  SCBRR_ALGO_1, SCBRR_ALGO_2, SCBRR_ALGO_3, SCBRR_ALGO_4,
  SCBRR_ALGO_5
}
 
enum  {
  SCIx_ERI_IRQ, SCIx_RXI_IRQ, SCIx_TXI_IRQ, SCIx_BRI_IRQ,
  SCIx_NR_IRQS, SCIx_MUX_IRQ = SCIx_NR_IRQS
}
 
enum  {
  SCIx_SCK, SCIx_RXD, SCIx_TXD, SCIx_CTS,
  SCIx_RTS, SCIx_NR_FNS
}
 
enum  {
  SCIx_PROBE_REGTYPE, SCIx_SCI_REGTYPE, SCIx_IRDA_REGTYPE, SCIx_SCIFA_REGTYPE,
  SCIx_SCIFB_REGTYPE, SCIx_SH2_SCIF_FIFODATA_REGTYPE, SCIx_SH3_SCIF_REGTYPE, SCIx_SH4_SCIF_REGTYPE,
  SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE, SCIx_SH4_SCIF_FIFODATA_REGTYPE, SCIx_SH7705_SCIF_REGTYPE, SCIx_NR_REGTYPES
}
 
enum  {
  SCSMR, SCBRR, SCSCR, SCxSR,
  SCFCR, SCFDR, SCxTDR, SCxRDR,
  SCLSR, SCTFDR, SCRFDR, SCSPTR,
  SCIx_NR_REGS
}
 

Macro Definition Documentation

#define SCI_DEFAULT_ERROR_MASK   (SCI_PER | SCI_FER)

Definition at line 38 of file serial_sci.h.

#define SCI_FER   0x10

Definition at line 34 of file serial_sci.h.

#define SCI_ORER   0x20

Definition at line 33 of file serial_sci.h.

#define SCI_PER   0x08

Definition at line 35 of file serial_sci.h.

#define SCI_RDRF   0x40

Definition at line 32 of file serial_sci.h.

#define SCI_TDRE   0x80

Definition at line 31 of file serial_sci.h.

#define SCI_TEND   0x04

Definition at line 36 of file serial_sci.h.

#define SCIF_BRK   0x0010

Definition at line 44 of file serial_sci.h.

#define SCIF_DEFAULT_ERROR_MASK   (SCIF_PER | SCIF_FER | SCIF_ER | SCIF_BRK)

Definition at line 50 of file serial_sci.h.

#define SCIF_DR   0x0001

Definition at line 48 of file serial_sci.h.

#define SCIF_ER   0x0080

Definition at line 41 of file serial_sci.h.

#define SCIF_FER   0x0008

Definition at line 45 of file serial_sci.h.

#define SCIF_PER   0x0004

Definition at line 46 of file serial_sci.h.

#define SCIF_RDF   0x0002

Definition at line 47 of file serial_sci.h.

#define SCIF_TDFE   0x0020

Definition at line 43 of file serial_sci.h.

#define SCIF_TEND   0x0040

Definition at line 42 of file serial_sci.h.

#define SCIx_HAVE_RTSCTS   (1 << 0)

Definition at line 131 of file serial_sci.h.

#define SCIx_IRQ_IS_MUXED (   port)
Value:
((port)->cfg->irqs[SCIx_ERI_IRQ] == \
(port)->cfg->irqs[SCIx_RXI_IRQ]) || \
((port)->cfg->irqs[SCIx_ERI_IRQ] && \
!(port)->cfg->irqs[SCIx_RXI_IRQ])

Definition at line 105 of file serial_sci.h.

#define SCIx_IRQ_MUXED (   irq)
Value:
{ \
[SCIx_ERI_IRQ] = (irq), \
[SCIx_RXI_IRQ] = (irq), \
[SCIx_TXI_IRQ] = (irq), \
[SCIx_BRI_IRQ] = (irq), \
}

Definition at line 97 of file serial_sci.h.

#define SCIx_NOT_SUPPORTED   (-1)

Definition at line 11 of file serial_sci.h.

#define SCSCR_CKE0   (1 << 0)

Definition at line 28 of file serial_sci.h.

#define SCSCR_CKE1   (1 << 1)

Definition at line 27 of file serial_sci.h.

#define SCSCR_RE   (1 << 4)

Definition at line 24 of file serial_sci.h.

#define SCSCR_REIE   (1 << 3) /* not supported by all parts */

Definition at line 25 of file serial_sci.h.

#define SCSCR_RIE   (1 << 6)

Definition at line 22 of file serial_sci.h.

#define SCSCR_TE   (1 << 5)

Definition at line 23 of file serial_sci.h.

#define SCSCR_TIE   (1 << 7)

Definition at line 21 of file serial_sci.h.

#define SCSCR_TOIE   (1 << 2) /* not supported by all parts */

Definition at line 26 of file serial_sci.h.

#define SCSPTR_CTSIO   (1 << 5)

Definition at line 54 of file serial_sci.h.

#define SCSPTR_RTSIO   (1 << 7)

Definition at line 53 of file serial_sci.h.

#define SCSPTR_SPB2DT   (1 << 0)

Definition at line 56 of file serial_sci.h.

#define SCSPTR_SPB2IO   (1 << 1)

Definition at line 55 of file serial_sci.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SCBRR_ALGO_1 
SCBRR_ALGO_2 
SCBRR_ALGO_3 
SCBRR_ALGO_4 
SCBRR_ALGO_5 

Definition at line 13 of file serial_sci.h.

anonymous enum
Enumerator:
SCIx_ERI_IRQ 
SCIx_RXI_IRQ 
SCIx_TXI_IRQ 
SCIx_BRI_IRQ 
SCIx_NR_IRQS 
SCIx_MUX_IRQ 

Definition at line 59 of file serial_sci.h.

anonymous enum
Enumerator:
SCIx_SCK 
SCIx_RXD 
SCIx_TXD 
SCIx_CTS 
SCIx_RTS 
SCIx_NR_FNS 

Definition at line 70 of file serial_sci.h.

anonymous enum
Enumerator:
SCIx_PROBE_REGTYPE 
SCIx_SCI_REGTYPE 
SCIx_IRDA_REGTYPE 
SCIx_SCIFA_REGTYPE 
SCIx_SCIFB_REGTYPE 
SCIx_SH2_SCIF_FIFODATA_REGTYPE 
SCIx_SH3_SCIF_REGTYPE 
SCIx_SH4_SCIF_REGTYPE 
SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE 
SCIx_SH4_SCIF_FIFODATA_REGTYPE 
SCIx_SH7705_SCIF_REGTYPE 
SCIx_NR_REGTYPES 

Definition at line 80 of file serial_sci.h.

anonymous enum
Enumerator:
SCSMR 
SCBRR 
SCSCR 
SCxSR 
SCFCR 
SCFDR 
SCxTDR 
SCxRDR 
SCLSR 
SCTFDR 
SCRFDR 
SCSPTR 
SCIx_NR_REGS 

Definition at line 114 of file serial_sci.h.