1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
2006-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
* i386/i386at/iopl.c (iopl_port_list): Add timer controler port.
* i386/i386at/kd.c (vga_port_list): Renamed to ...
(kd_port_list): ... this. Add timer and speaker ports.
Index: i386/i386at/kd.c
===================================================================
--- i386/i386at/kd.c.orig 2006-11-14 03:58:57.000000000 +0200
+++ i386/i386at/kd.c 2006-11-14 04:16:08.000000000 +0200
@@ -336,7 +336,9 @@ short kd_io_reg = EGA_IO_REG;
/*
* IO port sets for different controllers.
*/
-io_reg_t vga_port_list[] = {
+static io_reg_t kd_port_list[] = {
+ 0x42, 0x43, /* Timer */
+ 0x61, /* Speaker */
0x3b4, 0x3b5, 0x3b8, 0x3b9, 0x3ba, /* MDA/EGA */
0x3d4, 0x3d5, 0x3d8, 0x3d9, 0x3da, /* CGA/EGA */
0x3c0, 0x3c1, 0x3c2, 0x3c3, 0x3c4, 0x3c5, 0x3c6, 0x3c7,
@@ -351,7 +353,7 @@ kd_io_map_open(device)
mach_device_t device;
{
kd_io_device = device;
- io_port_create(device, vga_port_list);
+ io_port_create(device, kd_port_list);
}
void
|