From: Thomas Miletich Date: Thu, 21 May 2009 08:50:48 +0000 (+0200) Subject: [serial] Define constants for serial port I/O addresses X-Git-Tag: v0.9.8~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f51d61371f415db249a4574046bc85b99b5f2b8f;p=thirdparty%2Fipxe.git [serial] Define constants for serial port I/O addresses Tested with COM1 and COM2. Signed-off-by: Michael Brown --- diff --git a/src/config/serial.h b/src/config/serial.h index 1d7f51ef5..44272d1fa 100644 --- a/src/config/serial.h +++ b/src/config/serial.h @@ -13,7 +13,12 @@ FILE_LICENCE ( GPL2_OR_LATER ); -#define COMCONSOLE 0x3f8 /* I/O port address */ +#define COM1 0x3f8 +#define COM2 0x2f8 +#define COM3 0x3e8 +#define COM4 0x2e8 + +#define COMCONSOLE COM1 /* I/O port address */ /* Keep settings from a previous user of the serial port (e.g. lilo or * LinuxBIOS), ignoring COMSPEED, COMDATA, COMPARITY and COMSTOP.