aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/serial.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-14 09:05:22 +0000
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2005-07-14 09:05:22 +0000
commit25de1f6920591b8240649028fc3fd755140f29f6 (patch)
tree0fdd24859a375978e13cea700d1daa090bda4107 /xen/include/xen/serial.h
parent9c03922da5cd4c50e60412172e90ebb80f5574ea (diff)
downloadxen-25de1f6920591b8240649028fc3fd755140f29f6.tar.gz
xen-25de1f6920591b8240649028fc3fd755140f29f6.tar.bz2
xen-25de1f6920591b8240649028fc3fd755140f29f6.zip
Allow arch-specific defaults to be specified for ns16550
uart configuration. Based on a patch from Hollis Blanchard at IBM. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/serial.h')
-rw-r--r--xen/include/xen/serial.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/xen/include/xen/serial.h b/xen/include/xen/serial.h
index 8d5f246ab2..e36e087cef 100644
--- a/xen/include/xen/serial.h
+++ b/xen/include/xen/serial.h
@@ -113,7 +113,15 @@ void serial_tx_interrupt(struct serial_port *port, struct cpu_user_regs *regs);
/*
* Initialisers for individual uart drivers.
*/
-void ns16550_init(void);
+struct ns16550_defaults {
+ int baud; /* default baud rate; 0 == pre-configured */
+ int data_bits; /* default data bits (5, 6, 7 or 8) */
+ int parity; /* default parity (n, o, e, m or s) */
+ int stop_bits; /* default stop bits (1 or 2) */
+ int irq; /* default irq */
+ unsigned long io_base; /* default io_base address */
+};
+void ns16550_init(int index, struct ns16550_defaults *defaults);
#endif /* __XEN_SERIAL_H__ */