2 * linux/drivers/char/8250.h
4 * Driver for 8250/16550-type serial ports
6 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
8 * Copyright (C) 2001 Russell King.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * $Id: 8250.h,v 1.8 2002/07/21 21:32:30 rmk Exp $
18 #include <linux/config.h>
20 void serial8250_get_irq_map(unsigned int *map);
21 void serial8250_suspend_port(int line);
22 void serial8250_resume_port(int line);
24 struct old_serial_port {
26 unsigned int baud_base;
31 unsigned char io_type;
32 unsigned char *iomem_base;
33 unsigned short iomem_reg_shift;
37 * This replaces serial_uart_config in include/linux/serial.h
39 struct serial8250_config {
41 unsigned int fifo_size;
42 unsigned int tx_loadsz;
46 #define UART_CAP_FIFO (1 << 8) /* UART has FIFO */
47 #define UART_CAP_EFR (1 << 9) /* UART has EFR */
48 #define UART_CAP_SLEEP (1 << 10) /* UART has IER sleep */
50 #undef SERIAL_DEBUG_PCI
52 #if defined(__i386__) && (defined(CONFIG_M386) || defined(CONFIG_M486))
57 #define _INLINE_ inline
62 #define PROBE_RSA (1 << 0)
63 #define PROBE_ANY (~0)
65 #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8)
67 #ifdef CONFIG_SERIAL_8250_SHARE_IRQ
68 #define SERIAL8250_SHARE_IRQS 1
70 #define SERIAL8250_SHARE_IRQS 0