Lines Matching refs:port

28 # define SCSCR_INIT(port)          0x30 /* TIE=0,RIE=0,TE=1,RE=1 */  argument
41 # define SCSCR_INIT(port) (port->mapbase == SCIF2) ? 0xF3 : 0xF0 argument
49 # define SCSCR_INIT(port) 0x0030 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
57 # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
67 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument
75 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
81 # define SCSCR_INIT(port) 0x3B argument
87 # define SCSCR_INIT(port) 0x32 /* TIE=0,RIE=0,TE=1,RE=1,REIE=0,CKE=1 */ argument
95 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
100 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
109 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
112 # define SCSCR_INIT(port) ((port)->type == PORT_SCIFA ? \ argument
123 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
127 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
134 ((port->mapbase)+SCIF_PTR2_OFFS) /* 16 bit SCIF */
136 ((port->mapbase)+SCIF_LSR2_OFFS) /* 16 bit SCIF */
137 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0, TE=1,RE=1,REIE=1 */ argument
139 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
140 # define H8300_SCI_DR(ch) (*(volatile char *)(P1DR + h8300_sci_pins[ch].port))
142 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
143 # define H8300_SCI_DR(ch) (*(volatile char *)(P1DR + h8300_sci_pins[ch].port))
151 # define SCSCR_INIT(port) 0x38 argument
158 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
164 # define SCSCR_INIT(port) 0x3c /* TIE=0,RIE=0,TE=1,RE=1,REIE=1,cke=2 */ argument
172 # define SCSCR_INIT(port) 0x38 argument
175 # define SCSCR_INIT(port) 0x3a argument
187 # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
203 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
213 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
219 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
226 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
236 # define SCSCR_INIT(port) (port->clk_mode == EXT_CLK ? 0x32 : 0x30) argument
262 #define SCI_CTRL_FLAGS_REIE ((port)->type == PORT_SCIFA ? 0 : 8)
330 #define SCxSR_TEND(port)\ argument
331 (((port)->type == PORT_SCI) ? SCI_TEND : SCIF_TEND)
332 #define SCxSR_ERRORS(port)\ argument
333 (((port)->type == PORT_SCI) ? SCI_ERRORS : SCIF_ERRORS)
334 #define SCxSR_RDxF(port)\ argument
335 (((port)->type == PORT_SCI) ? SCI_RDRF : SCIF_RDF)
336 #define SCxSR_TDxE(port)\ argument
337 (((port)->type == PORT_SCI) ? SCI_TDRE : SCIF_TDFE)
338 #define SCxSR_FER(port)\ argument
339 (((port)->type == PORT_SCI) ? SCI_FER : SCIF_FER)
340 #define SCxSR_PER(port)\ argument
341 (((port)->type == PORT_SCI) ? SCI_PER : SCIF_PER)
342 #define SCxSR_BRK(port)\ argument
343 ((port)->type == PORT_SCI) ? 0x00 : SCIF_BRK)
344 #define SCxSR_ORER(port)\ argument
345 (((port)->type == PORT_SCI) ? SCI_ORER : SCIF_ORER)
355 # define SCxSR_RDxF_CLEAR(port) (sci_in(port, SCxSR) & 0xfffc) argument
356 # define SCxSR_ERROR_CLEAR(port) (sci_in(port, SCxSR) & 0xfd73) argument
357 # define SCxSR_TDxE_CLEAR(port) (sci_in(port, SCxSR) & 0xffdf) argument
358 # define SCxSR_BREAK_CLEAR(port) (sci_in(port, SCxSR) & 0xffe3) argument
360 # define SCxSR_RDxF_CLEAR(port) (((port)->type == PORT_SCI) ? 0xbc : 0x00fc) argument
361 # define SCxSR_ERROR_CLEAR(port) (((port)->type == PORT_SCI) ? 0xc4 : 0x0073) argument
362 # define SCxSR_TDxE_CLEAR(port) (((port)->type == PORT_SCI) ? 0x78 : 0x00df) argument
363 # define SCxSR_BREAK_CLEAR(port) (((port)->type == PORT_SCI) ? 0xc4 : 0x00e3) argument
388 return readb(port->membase + (offset));\
390 return readw(port->membase + (offset));\
394 writeb(value, port->membase + (offset));\
396 writew(value, port->membase + (offset));\
400 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
401 if (port->type == PORT_SCIF || port->type == PORT_SCIFB) {\
407 static inline void sci_##name##_out(struct uart_port *port,\
409 if (port->type == PORT_SCIF || port->type == PORT_SCIFB) {\
419 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
422 static inline void sci_##name##_out(struct uart_port *port,\
427 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
430 static inline void sci_##name##_out(struct uart_port *port,\
437 static inline unsigned int sci_##name##_in(struct uart_port *port) {\
440 static inline void sci_##name##_out(struct uart_port *port,\
628 #define sci_in(port, reg) sci_##reg##_in(port) argument
629 #define sci_out(port, reg, value) sci_##reg##_out(port, value) argument
634 int port; /* GPIO port no */ member
639 .port = H8300_GPIO_P9,
644 .port = H8300_GPIO_P9,
649 .port = H8300_GPIO_PB,
655 .port = H8300_GPIO_P3,
660 .port = H8300_GPIO_P3,
665 .port = H8300_GPIO_P5,
677 static inline int sci_rxd_in(struct uart_port *port) in sci_rxd_in() argument
679 if (port->mapbase == 0xfffffe80) in sci_rxd_in()
689 static inline int sci_rxd_in(struct uart_port *port) in sci_rxd_in() argument
691 if (port->mapbase == 0xffe00000) in sci_rxd_in()
696 static inline int sci_rxd_in(struct uart_port *port) in sci_rxd_in() argument
698 int ch = (port->mapbase - SMR0) >> 3; in sci_rxd_in()
702 static inline int sci_rxd_in(struct uart_port *port) in sci_rxd_in() argument
756 static inline int scbrr_calc(struct uart_port *port, int bps, int clk) in scbrr_calc() argument
758 if (port->type == PORT_SCIF) in scbrr_calc()
763 #define SCBRR_VALUE(bps, clk) scbrr_calc(port, bps, clk)