summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2004-10-30 23:27:49 +0100
committerRussell King <rmk@flint.arm.linux.org.uk>2004-10-30 23:27:49 +0100
commit0fa7474a0c424989be1c92cbc2b90edf4d0e1172 (patch)
tree19afeb9b42de22eef713fe1170dcdff8810330a6 /include
parentfcc32e8d8dd95f0ff749ff277d66a99d35c72eef (diff)
[SERIAL] 8250: add probe and remove device driver methods.
This change allows platform devices named "serial8250" to provide lists of serial ports to the 8250 driver at runtime, in addition to the hard coded table in include/asm-*/serial.h. The next step is to deprecate the tables in serial.h.
Diffstat (limited to 'include')
-rw-r--r--include/linux/serial_8250.h28
-rw-r--r--include/linux/serial_core.h5
2 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/serial_8250.h b/include/linux/serial_8250.h
new file mode 100644
index 000000000000..823181af6ddf
--- /dev/null
+++ b/include/linux/serial_8250.h
@@ -0,0 +1,28 @@
+/*
+ * linux/include/linux/serial_8250.h
+ *
+ * Copyright (C) 2004 Russell King
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ */
+#ifndef _LINUX_SERIAL_8250_H
+#define _LINUX_SERIAL_8250_H
+
+#include <linux/serial_core.h>
+#include <linux/device.h>
+
+struct plat_serial8250_port {
+ unsigned long iobase; /* io base address */
+ void __iomem *membase; /* ioremap cookie or NULL */
+ unsigned long mapbase; /* resource base */
+ unsigned int irq; /* interrupt number */
+ unsigned int uartclk; /* UART clock rate */
+ unsigned char regshift; /* register shift */
+ unsigned char iotype; /* UPIO_* */
+ unsigned int flags; /* UPF_* flags */
+};
+
+#endif
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 94653c5a256d..a01972bb5c52 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -17,6 +17,8 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#ifndef LINUX_SERIAL_CORE_H
+#define LINUX_SERIAL_CORE_H
/*
* The type definitions. These are from Ted Ts'o's serial.h
@@ -96,6 +98,7 @@
#include <linux/circ_buf.h>
#include <linux/spinlock.h>
#include <linux/sched.h>
+#include <linux/tty.h>
struct uart_port;
struct uart_info;
@@ -455,3 +458,5 @@ uart_handle_cts_change(struct uart_port *port, unsigned int status)
!((cflag) & CLOCAL))
#endif
+
+#endif /* LINUX_SERIAL_CORE_H */