blob: 8b79ab08af45e95c43e42d7c84dab2805dad5a62 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * Author: Nicolas Pitre
4 *
Russell King4baa9922008-08-02 10:55:55 +01005 * Moved and changed lots, Russell King
Linus Torvalds1da177e2005-04-16 15:20:36 -07006 *
7 * Low level machine dependent UART functions.
8 */
Russell King6920b5a2012-09-21 10:18:58 +01009#ifndef SA11X0_SERIAL_H
10#define SA11X0_SERIAL_H
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
12struct uart_port;
13struct uart_info;
14
15/*
16 * This is a temporary structure for registering these
17 * functions; it is intended to be discarded after boot.
18 */
19struct 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);
24};
25
26#ifdef CONFIG_SERIAL_SA1100
27void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
28void sa1100_register_uart(int idx, int port);
29#else
Arnd Bergmann06076162016-02-25 15:33:46 +010030static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns)
31{
32}
33static inline void sa1100_register_uart(int idx, int port)
34{
35}
Linus Torvalds1da177e2005-04-16 15:20:36 -070036#endif
Russell King6920b5a2012-09-21 10:18:58 +010037
38#endif