Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Author: Nicolas Pitre |
| 4 | * |
Russell King | 4baa992 | 2008-08-02 10:55:55 +0100 | [diff] [blame] | 5 | * Moved and changed lots, Russell King |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * |
| 7 | * Low level machine dependent UART functions. |
| 8 | */ |
Russell King | 6920b5a | 2012-09-21 10:18:58 +0100 | [diff] [blame] | 9 | #ifndef SA11X0_SERIAL_H |
| 10 | #define SA11X0_SERIAL_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
| 12 | struct uart_port; |
| 13 | struct uart_info; |
| 14 | |
| 15 | /* |
| 16 | * This is a temporary structure for registering these |
| 17 | * functions; it is intended to be discarded after boot. |
| 18 | */ |
| 19 | struct sa1100_port_fns { |
| 20 | void (*set_mctrl)(struct uart_port *, u_int); |
| 21 | u_int (*get_mctrl)(struct uart_port *); |
| 22 | void (*pm)(struct uart_port *, u_int, u_int); |
| 23 | int (*set_wake)(struct uart_port *, u_int); |
| 24 | }; |
| 25 | |
| 26 | #ifdef CONFIG_SERIAL_SA1100 |
| 27 | void sa1100_register_uart_fns(struct sa1100_port_fns *fns); |
| 28 | void sa1100_register_uart(int idx, int port); |
| 29 | #else |
Arnd Bergmann | 0607616 | 2016-02-25 15:33:46 +0100 | [diff] [blame] | 30 | static inline void sa1100_register_uart_fns(struct sa1100_port_fns *fns) |
| 31 | { |
| 32 | } |
| 33 | static inline void sa1100_register_uart(int idx, int port) |
| 34 | { |
| 35 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | #endif |
Russell King | 6920b5a | 2012-09-21 10:18:58 +0100 | [diff] [blame] | 37 | |
| 38 | #endif |