]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/platform_data/sa11x0-serial.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / include / linux / platform_data / sa11x0-serial.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4 2/*
1da177e4
LT
3 * Author: Nicolas Pitre
4 *
4baa9922 5 * Moved and changed lots, Russell King
1da177e4
LT
6 *
7 * Low level machine dependent UART functions.
8 */
6920b5a7
RK
9#ifndef SA11X0_SERIAL_H
10#define SA11X0_SERIAL_H
1da177e4
LT
11
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
0607616d
AB
30static 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}
1da177e4 36#endif
6920b5a7
RK
37
38#endif