More meth updates.
[linux-2.6/linux-mips.git] / drivers / serial / 8250.h
blobcc206f9476acf723ab95257e8a7c4aed2e2e1bbb
1 /*
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 struct serial8250_probe {
21 struct module *owner;
22 int (*pci_init_one)(struct pci_dev *dev);
23 void (*pci_remove_one)(struct pci_dev *dev);
24 void (*pnp_init)(void);
27 int serial8250_register_probe(struct serial8250_probe *probe);
28 void serial8250_unregister_probe(struct serial8250_probe *probe);
29 void serial8250_get_irq_map(unsigned int *map);
30 void serial8250_suspend_port(int line, u32 level);
31 void serial8250_resume_port(int line, u32 level);
33 struct old_serial_port {
34 unsigned int uart;
35 unsigned int baud_base;
36 unsigned int port;
37 unsigned int irq;
38 unsigned int flags;
39 unsigned char hub6;
40 unsigned char io_type;
41 unsigned char *iomem_base;
42 unsigned short iomem_reg_shift;
45 #undef SERIAL_DEBUG_PCI
47 #if defined(__i386__) && (defined(CONFIG_M386) || defined(CONFIG_M486))
48 #define SERIAL_INLINE
49 #endif
51 #ifdef SERIAL_INLINE
52 #define _INLINE_ inline
53 #else
54 #define _INLINE_
55 #endif
57 #define PROBE_RSA (1 << 0)
58 #define PROBE_ANY (~0)
60 #define HIGH_BITS_OFFSET ((sizeof(long)-sizeof(int))*8)
62 #ifdef CONFIG_SERIAL_8250_SHARE_IRQ
63 #define SERIAL8250_SHARE_IRQS 1
64 #else
65 #define SERIAL8250_SHARE_IRQS 0
66 #endif