summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorThomas Miletich2009-05-21 10:50:48 +0200
committerMichael Brown2009-05-21 11:04:12 +0200
commitf51d61371f415db249a4574046bc85b99b5f2b8f (patch)
treed9682dfcdf2e982aef31bef09fecd8a8efff9738 /src/config
parent[tftp] Process OACKs even if malformed (diff)
downloadipxe-f51d61371f415db249a4574046bc85b99b5f2b8f.tar.gz
ipxe-f51d61371f415db249a4574046bc85b99b5f2b8f.tar.xz
ipxe-f51d61371f415db249a4574046bc85b99b5f2b8f.zip
[serial] Define constants for serial port I/O addresses
Tested with COM1 and COM2. Signed-off-by: Michael Brown <mcb30@etherboot.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/serial.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/config/serial.h b/src/config/serial.h
index 1d7f51ef..44272d1f 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.