From a0e11afc7ef9920f5492e2f07cabb2de9518ee01 Mon Sep 17 00:00:00 2001 From: Russell King Date: Sun, 29 Aug 2004 02:29:43 +0100 Subject: [PATCH] [SERIAL] 8250: Add serial8250_config structure definition. This structure replaces serial_uart_config to allow the 8250 driver to extend it without breaking all the other users. --- drivers/serial/8250.c | 4 ++-- drivers/serial/8250.h | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 75e9bfe3eb72c..a6b266aed5cfa 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c @@ -156,7 +156,7 @@ static struct irq_info irq_lists[NR_IRQS]; /* * Here we define the default xmit fifo size used for each type of UART. */ -static const struct serial_uart_config uart_config[PORT_MAX_8250+1] = { +static const struct serial8250_config uart_config[PORT_MAX_8250+1] = { { "unknown", 1, 0 }, { "8250", 1, 0 }, { "16450", 1, 0 }, @@ -710,7 +710,7 @@ static void autoconfig(struct uart_8250_port *up, unsigned int probeflags) #endif serial_outp(up, UART_LCR, save_lcr); - up->port.fifosize = uart_config[up->port.type].dfl_xmit_fifo_size; + up->port.fifosize = uart_config[up->port.type].fifo_size; up->capabilities = uart_config[up->port.type].flags; if (up->port.type == PORT_UNKNOWN) diff --git a/drivers/serial/8250.h b/drivers/serial/8250.h index da0ad9b3d4d30..46bd2cd174053 100644 --- a/drivers/serial/8250.h +++ b/drivers/serial/8250.h @@ -33,6 +33,15 @@ struct old_serial_port { unsigned short iomem_reg_shift; }; +/* + * This replaces serial_uart_config in include/linux/serial.h + */ +struct serial8250_config { + const char *name; + unsigned int fifo_size; + unsigned int flags; +}; + #undef SERIAL_DEBUG_PCI #if defined(__i386__) && (defined(CONFIG_M386) || defined(CONFIG_M486)) -- 2.53.0