]>
Commit | Line | Data |
---|---|---|
1da177e4 | 1 | /* |
1da177e4 LT |
2 | * Author: Nicolas Pitre |
3 | * | |
4baa9922 | 4 | * Moved and changed lots, Russell King |
1da177e4 LT |
5 | * |
6 | * Low level machine dependent UART functions. | |
7 | */ | |
6920b5a7 RK |
8 | #ifndef SA11X0_SERIAL_H |
9 | #define SA11X0_SERIAL_H | |
1da177e4 LT |
10 | |
11 | struct uart_port; | |
12 | struct uart_info; | |
13 | ||
14 | /* | |
15 | * This is a temporary structure for registering these | |
16 | * functions; it is intended to be discarded after boot. | |
17 | */ | |
18 | struct 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 | |
26 | void sa1100_register_uart_fns(struct sa1100_port_fns *fns); | |
27 | void sa1100_register_uart(int idx, int port); | |
28 | #else | |
0607616d AB |
29 | static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns) |
30 | { | |
31 | } | |
32 | static inline void sa1100_register_uart(int idx, int port) | |
33 | { | |
34 | } | |
1da177e4 | 35 | #endif |
6920b5a7 RK |
36 | |
37 | #endif |