]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools, serial: Register 0x2e8 ioport
authorPekka Enberg <penberg@kernel.org>
Sat, 21 May 2011 12:04:10 +0000 (15:04 +0300)
committerPekka Enberg <penberg@kernel.org>
Sat, 21 May 2011 12:28:50 +0000 (15:28 +0300)
We already register ioports for 0x2f8 and 0x3e8 and mark them as inactive so
mark 0x2e8 ioport as such as well.  This is a preparational step to dropping
serial port dummy registrations from ioport__setup_legacy().

Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/hw/serial.c

index 03cc4454a344b6aa1ce274252fc0ea8e6b8381d3..beebbba5d960b720c3fd3a5bdd2fd6996256c8c1 100644 (file)
@@ -60,6 +60,15 @@ static struct serial8250_device devices[] = {
                .iobase                 = 0x3e8,
                .irq                    = 4,
 
+               .iir                    = UART_IIR_NO_INT,
+       },
+       /* ttyS3 */
+       [3]     = {
+               .mutex                  = PTHREAD_MUTEX_INITIALIZER,
+
+               .iobase                 = 0x2e8,
+               .irq                    = 3,
+
                .iir                    = UART_IIR_NO_INT,
        },
 };