diff options
author | wpaul <wpaul@FreeBSD.org> | 1995-01-20 07:34:18 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1995-01-20 07:34:18 +0000 |
commit | 7a6a5253caf293944cabff9f7679f6bf2d51b9dd (patch) | |
tree | 8d194e8fb76406a9e2735b0ce7da1fb32fca653c /sys/dev/sio/sioreg.h | |
parent | 2f878e8fcdf37756a3a372e3574c611a3765ef09 (diff) | |
download | FreeBSD-src-7a6a5253caf293944cabff9f7679f6bf2d51b9dd.zip FreeBSD-src-7a6a5253caf293944cabff9f7679f6bf2d51b9dd.tar.gz |
Submitted by: Bill Paul (wpaul@ctr.columbia.edu)
Obtained from:
sio.c and sioreg.c changed to allow autodetecting the RB_SERIAL flag
passed by the boot blocks so that the kernel can switch to 'serial
console' mode automagically. 'options COMCONSOLE' can still be specified
to force the kernel to always use the serial port as a console.
CONUNIT and CONADDR can also be specified in the kernel config file
if the user wants to shift the console to a different port.
Diffstat (limited to 'sys/dev/sio/sioreg.h')
-rw-r--r-- | sys/dev/sio/sioreg.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/dev/sio/sioreg.h b/sys/dev/sio/sioreg.h index 4b0f1b6..d43bcdf 100644 --- a/sys/dev/sio/sioreg.h +++ b/sys/dev/sio/sioreg.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)comreg.h 7.2 (Berkeley) 5/9/91 - * $Id$ + * $Id: sioreg.h,v 1.2 1993/10/16 19:17:18 rgrimes Exp $ */ @@ -109,6 +109,13 @@ /* * WARNING: Serial console is assumed to be at COM1 address * and CONUNIT must be 0. + * + * Well, maybe not... */ -#define CONADDR (0x3f8) +#ifndef CONADDR +#define CONADDR (0x3F8) +#endif + +#ifndef CONUNIT #define CONUNIT (0) +#endif |