File Index
Files and directories
Sign in
FILE

sa11x0-serial.h

File preview with syntax highlighting.

linux-6.19.14/include/linux/platform_data/sa11x0-serial.h C
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 3 *  Author: Nicolas Pitre
 4 *
 5 * Moved and changed lots, Russell King
 6 *
 7 * Low level machine dependent UART functions.
 8 */
 9#ifndef SA11X0_SERIAL_H
10#define SA11X0_SERIAL_H
11
12struct uart_port;
13
14/*
15 * This is a temporary structure for registering these
16 * functions; it is intended to be discarded after boot.
17 */
18struct sa1100_port_fns {
19	void	(*set_mctrl)(struct uart_port *, u_int);
20	u_int	(*get_mctrl)(struct uart_port *);
21	void	(*pm)(struct uart_port *, u_int, u_int);
22	int	(*set_wake)(struct uart_port *, u_int);
23};
24
25#ifdef CONFIG_SERIAL_SA1100
26void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
27void sa1100_register_uart(int idx, int port);
28#else
29static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns)
30{
31}
32static inline void sa1100_register_uart(int idx, int port)
33{
34}
35#endif
36
37#endif
~/ Read-only file preview.