st-asc.c (db985cbd67c45f875ef43cb5febfaa8cbd203c27) st-asc.c (daea65a7be76953bb80d13d0ac43e7441fd42cdf)
1/*
2 * st-asc.c: ST Asynchronous serial controller (ASC) driver
3 *
4 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 137 unchanged lines hidden (view full) ---

146
147static inline struct asc_port *to_asc_port(struct uart_port *port)
148{
149 return container_of(port, struct asc_port, port);
150}
151
152static inline u32 asc_in(struct uart_port *port, u32 offset)
153{
1/*
2 * st-asc.c: ST Asynchronous serial controller (ASC) driver
3 *
4 * Copyright (C) 2003-2013 STMicroelectronics (R&D) Limited
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 137 unchanged lines hidden (view full) ---

146
147static inline struct asc_port *to_asc_port(struct uart_port *port)
148{
149 return container_of(port, struct asc_port, port);
150}
151
152static inline u32 asc_in(struct uart_port *port, u32 offset)
153{
154#ifdef readl_relaxed
155 return readl_relaxed(port->membase + offset);
156#else
154 return readl(port->membase + offset);
157 return readl(port->membase + offset);
158#endif
155}
156
157static inline void asc_out(struct uart_port *port, u32 offset, u32 value)
158{
159}
160
161static inline void asc_out(struct uart_port *port, u32 offset, u32 value)
162{
163#ifdef writel_relaxed
164 writel_relaxed(value, port->membase + offset);
165#else
159 writel(value, port->membase + offset);
166 writel(value, port->membase + offset);
167#endif
160}
161
162/*
163 * Some simple utility functions to enable and disable interrupts.
164 * Note that these need to be called with interrupts disabled.
165 */
166static inline void asc_disable_tx_interrupts(struct uart_port *port)
167{

--- 759 unchanged lines hidden ---
168}
169
170/*
171 * Some simple utility functions to enable and disable interrupts.
172 * Note that these need to be called with interrupts disabled.
173 */
174static inline void asc_disable_tx_interrupts(struct uart_port *port)
175{

--- 759 unchanged lines hidden ---