From e62c18de5421cfeb5838da9c792340a5cd553835 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Mon, 10 Jan 2011 21:21:06 +0200 Subject: [PATCH] kvm,8250: Make ttyS1 and ttyS2 disabled This patch fixes the 8250 serial emulation to not have undefined ioports but rather make them explicitly disabled. Signed-off-by: Pekka Enberg --- 8250-serial.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/8250-serial.c b/8250-serial.c index f5e66a6..6056ed6 100644 --- a/8250-serial.c +++ b/8250-serial.c @@ -25,7 +25,7 @@ struct serial8250_device { uint8_t scr; }; -static struct serial8250_device devices[1] = { +static struct serial8250_device devices[] = { /* ttyS0 */ [0] = { .iobase = 0x3f8, @@ -33,6 +33,16 @@ static struct serial8250_device devices[1] = { .lsr = UART_LSR_TEMT | UART_LSR_THRE, }, + /* ttyS1 */ + [1] = { + .iobase = 0x2f8, + .irq = 3, + }, + /* ttyS2 */ + [2] = { + .iobase = 0x3e8, + .irq = 4, + }, }; static int read_char(int fd)