0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef SA11X0_SERIAL_H
0010 #define SA11X0_SERIAL_H
0011
0012 struct uart_port;
0013 struct uart_info;
0014
0015
0016
0017
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