Przeglądaj źródła

[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 lat temu
rodzic
commit
f51d61371f
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6
    1
      src/config/serial.h

+ 6
- 1
src/config/serial.h Wyświetl plik

13
 
13
 
14
 FILE_LICENCE ( GPL2_OR_LATER );
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
 /* Keep settings from a previous user of the serial port (e.g. lilo or
23
 /* Keep settings from a previous user of the serial port (e.g. lilo or
19
  * LinuxBIOS), ignoring COMSPEED, COMDATA, COMPARITY and COMSTOP.
24
  * LinuxBIOS), ignoring COMSPEED, COMDATA, COMPARITY and COMSTOP.

Ładowanie…
Anuluj
Zapisz