Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  *  Author: Nicolas Pitre
0004  *
0005  * Moved and changed lots, Russell King
0006  *
0007  * Low level machine dependent UART functions.
0008  */
0009 #ifndef SA11X0_SERIAL_H
0010 #define SA11X0_SERIAL_H
0011 
0012 struct uart_port;
0013 struct uart_info;
0014 
0015 /*
0016  * This is a temporary structure for registering these
0017  * functions; it is intended to be discarded after boot.
0018  */
0019 struct sa1100_port_fns {
0020     void    (*set_mctrl)(struct uart_port *, u_int);
0021     u_int   (*get_mctrl)(struct uart_port *);
0022     void    (*pm)(struct uart_port *, u_int, u_int);
0023     int (*set_wake)(struct uart_port *, u_int);
0024 };
0025 
0026 #ifdef CONFIG_SERIAL_SA1100
0027 void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
0028 void sa1100_register_uart(int idx, int port);
0029 #else
0030 static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns)
0031 {
0032 }
0033 static inline void sa1100_register_uart(int idx, int port)
0034 {
0035 }
0036 #endif
0037 
0038 #endif