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;
36 #undef SERIAL_DEBUG_PCI
38 #if defined(__i386__) && (defined(CONFIG_M386) || defined(CONFIG_M486))
43 #define _INLINE_ inline
48 #define PROBE_RSA (1 << 0)
49 #define PROBE_ANY (~0)
51 #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8)
53 #ifdef CONFIG_SERIAL_8250_SHARE_IRQ
54 #define SERIAL8250_SHARE_IRQS 1
56 #define SERIAL8250_SHARE_IRQS 0