/* SPDX-License-Identifier: GPL-2.0 */ /* * Author: Nicolas Pitre * * Moved and changed lots, Russell King * * Low level machine dependent UART functions. */ #ifndef SA11X0_SERIAL_H #define SA11X0_SERIAL_H struct uart_port; enum { SA11X0_WAKE_CTS = BIT(0), SA11X0_WAKE_DCD = BIT(1), SA11X0_WAKE_DSR = BIT(2), SA11X0_WAKE_RI = BIT(3), }; /* * This is a temporary structure for registering these * functions; it is intended to be discarded after boot. */ struct sa1100_port_fns { void (*set_mctrl)(struct uart_port *, u_int); u_int (*get_mctrl)(struct uart_port *); void (*pm)(struct uart_port *, u_int, u_int); unsigned wake[3]; }; #ifdef CONFIG_SERIAL_SA1100 void sa1100_register_uart_fns(const struct sa1100_port_fns *fns); void sa1100_register_uart(int idx, int port); #else static inline void sa1100_register_uart_fns(const struct sa1100_port_fns *fns) { } static inline void sa1100_register_uart(int idx, int port) { } #endif #endif