summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/mach/serial_at91.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2006-06-20 19:48:18 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2006-06-20 19:48:18 +0100
commit695a9d236a6fd5a60557a02eff612880c37fe731 (patch)
tree0ca809031f5f7139568914fe73ab5e244532aaf8 /include/asm-arm/mach/serial_at91.h
parentc322e24b40b83bbdfa7c269bc0105e76a39e627f (diff)
parent55c20c0af7fe7d5d09af4addfafcfe3bdc500f5d (diff)
downloadlinux-695a9d236a6fd5a60557a02eff612880c37fe731.tar.gz
linux-695a9d236a6fd5a60557a02eff612880c37fe731.tar.bz2
linux-695a9d236a6fd5a60557a02eff612880c37fe731.zip
Merge AT91 branch
Diffstat (limited to 'include/asm-arm/mach/serial_at91.h')
-rw-r--r--include/asm-arm/mach/serial_at91.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/asm-arm/mach/serial_at91.h b/include/asm-arm/mach/serial_at91.h
new file mode 100644
index 000000000000..18bc4e00e475
--- /dev/null
+++ b/include/asm-arm/mach/serial_at91.h
@@ -0,0 +1,34 @@
+/*
+ * linux/include/asm-arm/mach/serial_at91.h
+ *
+ * Based on serial_sa1100.h by Nicolas Pitre
+ *
+ * Copyright (C) 2002 ATMEL Rousset
+ *
+ * Low level machine dependent UART functions.
+ */
+#include <linux/config.h>
+
+struct uart_port;
+
+/*
+ * This is a temporary structure for registering these
+ * functions; it is intended to be discarded after boot.
+ */
+struct at91_port_fns {
+ void (*set_mctrl)(struct uart_port *, u_int);
+ u_int (*get_mctrl)(struct uart_port *);
+ void (*enable_ms)(struct uart_port *);
+ void (*pm)(struct uart_port *, u_int, u_int);
+ int (*set_wake)(struct uart_port *, u_int);
+ int (*open)(struct uart_port *);
+ void (*close)(struct uart_port *);
+};
+
+#if defined(CONFIG_SERIAL_AT91)
+void at91_register_uart_fns(struct at91_port_fns *fns);
+#else
+#define at91_register_uart_fns(fns) do { } while (0)
+#endif
+
+