Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / include / linux / platform_data / sa11x0-serial.h
blob8b79ab08af45e95c43e42d7c84dab2805dad5a62
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Author: Nicolas Pitre
5 * Moved and changed lots, Russell King
7 * Low level machine dependent UART functions.
8 */
9 #ifndef SA11X0_SERIAL_H
10 #define SA11X0_SERIAL_H
12 struct uart_port;
13 struct uart_info;
16 * This is a temporary structure for registering these
17 * functions; it is intended to be discarded after boot.
19 struct sa1100_port_fns {
20 void (*set_mctrl)(struct uart_port *, u_int);
21 u_int (*get_mctrl)(struct uart_port *);
22 void (*pm)(struct uart_port *, u_int, u_int);
23 int (*set_wake)(struct uart_port *, u_int);
26 #ifdef CONFIG_SERIAL_SA1100
27 void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
28 void sa1100_register_uart(int idx, int port);
29 #else
30 static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns)
33 static inline void sa1100_register_uart(int idx, int port)
36 #endif
38 #endif