diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-03 14:44:19 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-08-03 14:44:19 +0000 |
commit | 98506e40b1474d3e99f2757a6130fc9a19045b7d (patch) | |
tree | 7b77308153851a2edddcad6e8e0ee088d9083f99 /xen/include/xen/serial.h | |
parent | 2ca1179da8e17f151e515960b9814c7b77c4230e (diff) | |
download | xen-98506e40b1474d3e99f2757a6130fc9a19045b7d.tar.gz xen-98506e40b1474d3e99f2757a6130fc9a19045b7d.tar.bz2 xen-98506e40b1474d3e99f2757a6130fc9a19045b7d.zip |
On x86, Xen does not claim any serial port unless the user
explicitly specifies a 'com1=' or 'com2=' configuration
string. This prevents users from being surprised when Xen
stops domain0 from accessing serial port registers.
On ia64 we still allow serial ports to get automatically
configured and locked down even if no 'com1' is specified
on the command line. This maintains the default preferred
by the IA64 developers.
Also, the method for specifying 'use existing baud rate'
has changed. Instead of specifying com1=0, you must now
specify e.g., com1=auto
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/serial.h')
-rw-r--r-- | xen/include/xen/serial.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xen/include/xen/serial.h b/xen/include/xen/serial.h index e36e087cef..28f11f4677 100644 --- a/xen/include/xen/serial.h +++ b/xen/include/xen/serial.h @@ -113,8 +113,9 @@ void serial_tx_interrupt(struct serial_port *port, struct cpu_user_regs *regs); /* * Initialisers for individual uart drivers. */ +/* NB. Any default value can be 0 if it is unknown and must be specified. */ struct ns16550_defaults { - int baud; /* default baud rate; 0 == pre-configured */ + int baud; /* default baud rate; BAUD_AUTO == 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) */ @@ -123,6 +124,9 @@ struct ns16550_defaults { }; void ns16550_init(int index, struct ns16550_defaults *defaults); +/* Baud rate was pre-configured before invoking the UART driver. */ +#define BAUD_AUTO (-1) + #endif /* __XEN_SERIAL_H__ */ /* |