summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/sa11x0-serial.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-09-21 13:18:58 +0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-11-16 15:35:29 +0400
commit6920b5a791bbb54810159fbf6acf2c6ae14cdd22 (patch)
treebd3a7b590abf7de56d9bef3478627df7be4c1d29 /include/linux/platform_data/sa11x0-serial.h
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (diff)
downloadlinux-6920b5a791bbb54810159fbf6acf2c6ae14cdd22.tar.xz
ARM: move serial_sa1100.h header file to linux/platform_data
This is really driver platform data, so move it to the appropriate directory. Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux/platform_data/sa11x0-serial.h')
-rw-r--r--include/linux/platform_data/sa11x0-serial.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/platform_data/sa11x0-serial.h b/include/linux/platform_data/sa11x0-serial.h
new file mode 100644
index 000000000000..4504d5d592f0
--- /dev/null
+++ b/include/linux/platform_data/sa11x0-serial.h
@@ -0,0 +1,33 @@
+/*
+ * Author: Nicolas Pitre
+ *
+ * Moved and changed lots, Russell King
+ *
+ * Low level machine dependent UART functions.
+ */
+#ifndef SA11X0_SERIAL_H
+#define SA11X0_SERIAL_H
+
+struct uart_port;
+struct uart_info;
+
+/*
+ * This is a temporary structure for registering these
+ * functions; it is intended to be discarded after boot.
+ */
+struct sa1100_port_fns {
+ void (*set_mctrl)(struct uart_port *, u_int);
+ u_int (*get_mctrl)(struct uart_port *);
+ void (*pm)(struct uart_port *, u_int, u_int);
+ int (*set_wake)(struct uart_port *, u_int);
+};
+
+#ifdef CONFIG_SERIAL_SA1100
+void sa1100_register_uart_fns(struct sa1100_port_fns *fns);
+void sa1100_register_uart(int idx, int port);
+#else
+#define sa1100_register_uart_fns(fns) do { } while (0)
+#define sa1100_register_uart(idx,port) do { } while (0)
+#endif
+
+#endif