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
{
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
{
35 unsigned int baud_base
;
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))
52 #define _INLINE_ inline
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
65 #define SERIAL8250_SHARE_IRQS 0