blob: 4504d5d592f05010fc09378db3a572ad81e17a14 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 * Author: Nicolas Pitre
3 *
Russell King4baa9922008-08-02 10:55:55 +01004 * Moved and changed lots, Russell King
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 *
6 * Low level machine dependent UART functions.
7 */
Russell King6920b5a2012-09-21 10:18:58 +01008#ifndef SA11X0_SERIAL_H
9#define SA11X0_SERIAL_H
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11struct uart_port;
12struct uart_info;
13
14/*
15 * This is a temporary structure for registering these
16 * functions; it is intended to be discarded after boot.
17 */
18struct 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
26void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
27void sa1100_register_uart(int idx, int port);
28#else
29#define sa1100_register_uart_fns(fns) do { } while (0)
30#define sa1100_register_uart(idx,port) do { } while (0)
31#endif
Russell King6920b5a2012-09-21 10:18:58 +010032
33#endif