aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Miletich <thomas.miletich@gmail.com>2009-05-21 10:50:48 +0200
committerMichael Brown <mcb30@etherboot.org>2009-05-21 10:04:12 +0100
commitf51d61371f415db249a4574046bc85b99b5f2b8f (patch)
treed9682dfcdf2e982aef31bef09fecd8a8efff9738 /src
parent1958974d0a59e0e374751d9d5c1405de0ffc8066 (diff)
downloadipxe-f51d61371f415db249a4574046bc85b99b5f2b8f.zip
ipxe-f51d61371f415db249a4574046bc85b99b5f2b8f.tar.gz
ipxe-f51d61371f415db249a4574046bc85b99b5f2b8f.tar.bz2
[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')
-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 1d7f51e..44272d1 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.