Lines Matching refs:PSC

75 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase))  macro
135 return in_be16(&PSC(port)->mpc52xx_psc_status); in mpc52xx_psc_get_status()
140 return in_8(&PSC(port)->mpc52xx_psc_ipcr); in mpc52xx_psc_get_ipcr()
145 out_8(&PSC(port)->command, cmd); in mpc52xx_psc_command()
150 out_8(&PSC(port)->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc52xx_psc_set_mode()
151 out_8(&PSC(port)->mode, mr1); in mpc52xx_psc_set_mode()
152 out_8(&PSC(port)->mode, mr2); in mpc52xx_psc_set_mode()
158 out_8(&PSC(port)->op1, MPC52xx_PSC_OP_RTS); in mpc52xx_psc_set_rts()
160 out_8(&PSC(port)->op0, MPC52xx_PSC_OP_RTS); in mpc52xx_psc_set_rts()
165 struct mpc52xx_psc __iomem *psc = PSC(port); in mpc52xx_psc_enable_ms()
178 out_be32(&PSC(port)->sicr, val); in mpc52xx_psc_set_sicr()
183 out_be16(&PSC(port)->mpc52xx_psc_imr, val); in mpc52xx_psc_set_imr()
188 out_8(&PSC(port)->command, MPC52xx_PSC_SEL_MODE_REG_1); in mpc52xx_psc_get_mr1()
189 return in_8(&PSC(port)->mode); in mpc52xx_psc_get_mr1()
193 #define FIFO_52xx(port) ((struct mpc52xx_psc_fifo __iomem *)(PSC(port)+1))
196 struct mpc52xx_psc __iomem *psc = PSC(port); in mpc52xx_psc_fifo_init()
210 return in_be16(&PSC(port)->mpc52xx_psc_status) in mpc52xx_psc_raw_rx_rdy()
216 return in_be16(&PSC(port)->mpc52xx_psc_status) in mpc52xx_psc_raw_tx_rdy()
223 return in_be16(&PSC(port)->mpc52xx_psc_isr) in mpc52xx_psc_rx_rdy()
230 return in_be16(&PSC(port)->mpc52xx_psc_isr) in mpc52xx_psc_tx_rdy()
237 u16 sts = in_be16(&PSC(port)->mpc52xx_psc_status); in mpc52xx_psc_tx_empty()
245 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_start_tx()
251 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_stop_tx()
257 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_stop_rx()
270 out_8(&PSC(port)->mpc52xx_psc_buffer_8, c); in mpc52xx_psc_write_char()
275 return in_8(&PSC(port)->mpc52xx_psc_buffer_8); in mpc52xx_psc_read_char()
280 out_be16(&PSC(port)->mpc52xx_psc_imr, 0); in mpc52xx_psc_cw_disable_ints()
285 out_be16(&PSC(port)->mpc52xx_psc_imr, port->read_status_mask); in mpc52xx_psc_cw_restore_ints()
302 mpc52xx_set_divisor(PSC(port), 0xdd00, divisor); in mpc5200_psc_set_baudrate()
328 mpc52xx_set_divisor(PSC(port), prescaler, divisor); in mpc5200b_psc_set_baudrate()
407 #define FIFO_512x(port) ((struct mpc512x_psc_fifo __iomem *)(PSC(port)+1))
425 out_be16(&PSC(port)->mpc52xx_psc_clock_select, 0xdd00); in mpc512x_psc_fifo_init()
561 mpc52xx_set_divisor(PSC(port), 0xdd00, divisor); in mpc512x_psc_set_baudrate()