瀏覽代碼

[serial] Define constants for serial port I/O addresses

Tested with COM1 and COM2.

Signed-off-by: Michael Brown <mcb30@etherboot.org>
tags/v0.9.8
Thomas Miletich 15 年之前
父節點
當前提交
f51d61371f
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6
    1
      src/config/serial.h

+ 6
- 1
src/config/serial.h 查看文件

@@ -13,7 +13,12 @@
13 13
 
14 14
 FILE_LICENCE ( GPL2_OR_LATER );
15 15
 
16
-#define	COMCONSOLE	0x3f8		/* I/O port address */
16
+#define	COM1		0x3f8
17
+#define	COM2		0x2f8
18
+#define	COM3		0x3e8
19
+#define	COM4		0x2e8
20
+
21
+#define	COMCONSOLE	COM1		/* I/O port address */
17 22
 
18 23
 /* Keep settings from a previous user of the serial port (e.g. lilo or
19 24
  * LinuxBIOS), ignoring COMSPEED, COMDATA, COMPARITY and COMSTOP.

Loading…
取消
儲存