ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / serial / 8250.h
1 /*
2  *  linux/drivers/char/8250.h
3  *
4  *  Driver for 8250/16550-type serial ports
5  *
6  *  Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
7  *
8  *  Copyright (C) 2001 Russell King.
9  *
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.
14  *
15  *  $Id: 8250.h,v 1.8 2002/07/21 21:32:30 rmk Exp $
16  */
17
18 #include <linux/config.h>
19
20 void serial8250_get_irq_map(unsigned int *map);
21 void serial8250_suspend_port(int line);
22 void serial8250_resume_port(int line);
23
24 struct old_serial_port {
25         unsigned int uart;
26         unsigned int baud_base;
27         unsigned int port;
28         unsigned int irq;
29         unsigned int flags;
30         unsigned char hub6;
31         unsigned char io_type;
32         unsigned char *iomem_base;
33         unsigned short iomem_reg_shift;
34 };
35
36 #undef SERIAL_DEBUG_PCI
37
38 #if defined(__i386__) && (defined(CONFIG_M386) || defined(CONFIG_M486))
39 #define SERIAL_INLINE
40 #endif
41   
42 #ifdef SERIAL_INLINE
43 #define _INLINE_ inline
44 #else
45 #define _INLINE_
46 #endif
47
48 #define PROBE_RSA       (1 << 0)
49 #define PROBE_ANY       (~0)
50
51 #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8)
52
53 #ifdef CONFIG_SERIAL_8250_SHARE_IRQ
54 #define SERIAL8250_SHARE_IRQS 1
55 #else
56 #define SERIAL8250_SHARE_IRQS 0
57 #endif