2 * linux/drivers/char/8250_pci.c
4 * Probe module for 8250/16550-type PCI serial ports.
6 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
8 * Copyright (C) 2001 Russell King, All Rights Reserved.
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.
14 #include <linux/module.h>
15 #include <linux/init.h>
16 #include <linux/pci.h>
17 #include <linux/string.h>
18 #include <linux/kernel.h>
19 #include <linux/slab.h>
20 #include <linux/delay.h>
21 #include <linux/tty.h>
22 #include <linux/serial_core.h>
23 #include <linux/8250_pci.h>
24 #include <linux/bitops.h>
26 #include <asm/byteorder.h>
31 #undef SERIAL_DEBUG_PCI
34 * init function returns:
35 * > 0 - number of ports
36 * = 0 - use board->num_ports
39 struct pci_serial_quirk {
44 int (*init)(struct pci_dev *dev);
45 int (*setup)(struct serial_private *,
46 const struct pciserial_board *,
47 struct uart_port *, int);
48 void (*exit)(struct pci_dev *dev);
51 #define PCI_NUM_BAR_RESOURCES 6
53 struct serial_private {
56 void __iomem *remapped_bar[PCI_NUM_BAR_RESOURCES];
57 struct pci_serial_quirk *quirk;
61 static void moan_device(const char *str, struct pci_dev *dev)
63 printk(KERN_WARNING "%s: %s\n"
64 KERN_WARNING "Please send the output of lspci -vv, this\n"
65 KERN_WARNING "message (0x%04x,0x%04x,0x%04x,0x%04x), the\n"
66 KERN_WARNING "manufacturer and name of serial board or\n"
67 KERN_WARNING "modem board to rmk+serial@arm.linux.org.uk.\n",
68 pci_name(dev), str, dev->vendor, dev->device,
69 dev->subsystem_vendor, dev->subsystem_device);
73 setup_port(struct serial_private *priv, struct uart_port *port,
74 int bar, int offset, int regshift)
76 struct pci_dev *dev = priv->dev;
77 unsigned long base, len;
79 if (bar >= PCI_NUM_BAR_RESOURCES)
82 base = pci_resource_start(dev, bar);
84 if (pci_resource_flags(dev, bar) & IORESOURCE_MEM) {
85 len = pci_resource_len(dev, bar);
87 if (!priv->remapped_bar[bar])
88 priv->remapped_bar[bar] = ioremap_nocache(base, len);
89 if (!priv->remapped_bar[bar])
92 port->iotype = UPIO_MEM;
94 port->mapbase = base + offset;
95 port->membase = priv->remapped_bar[bar] + offset;
96 port->regshift = regshift;
98 port->iotype = UPIO_PORT;
99 port->iobase = base + offset;
101 port->membase = NULL;
108 * ADDI-DATA GmbH communication cards <info@addi-data.com>
110 static int addidata_apci7800_setup(struct serial_private *priv,
111 const struct pciserial_board *board,
112 struct uart_port *port, int idx)
114 unsigned int bar = 0, offset = board->first_offset;
115 bar = FL_GET_BASE(board->flags);
118 offset += idx * board->uart_offset;
119 } else if ((idx >= 2) && (idx < 4)) {
121 offset += ((idx - 2) * board->uart_offset);
122 } else if ((idx >= 4) && (idx < 6)) {
124 offset += ((idx - 4) * board->uart_offset);
125 } else if (idx >= 6) {
127 offset += ((idx - 6) * board->uart_offset);
130 return setup_port(priv, port, bar, offset, board->reg_shift);
134 * AFAVLAB uses a different mixture of BARs and offsets
135 * Not that ugly ;) -- HW
138 afavlab_setup(struct serial_private *priv, const struct pciserial_board *board,
139 struct uart_port *port, int idx)
141 unsigned int bar, offset = board->first_offset;
143 bar = FL_GET_BASE(board->flags);
148 offset += (idx - 4) * board->uart_offset;
151 return setup_port(priv, port, bar, offset, board->reg_shift);
155 * HP's Remote Management Console. The Diva chip came in several
156 * different versions. N-class, L2000 and A500 have two Diva chips, each
157 * with 3 UARTs (the third UART on the second chip is unused). Superdome
158 * and Keystone have one Diva chip with 3 UARTs. Some later machines have
159 * one Diva chip, but it has been expanded to 5 UARTs.
161 static int pci_hp_diva_init(struct pci_dev *dev)
165 switch (dev->subsystem_device) {
166 case PCI_DEVICE_ID_HP_DIVA_TOSCA1:
167 case PCI_DEVICE_ID_HP_DIVA_HALFDOME:
168 case PCI_DEVICE_ID_HP_DIVA_KEYSTONE:
169 case PCI_DEVICE_ID_HP_DIVA_EVEREST:
172 case PCI_DEVICE_ID_HP_DIVA_TOSCA2:
175 case PCI_DEVICE_ID_HP_DIVA_MAESTRO:
178 case PCI_DEVICE_ID_HP_DIVA_POWERBAR:
179 case PCI_DEVICE_ID_HP_DIVA_HURRICANE:
188 * HP's Diva chip puts the 4th/5th serial port further out, and
189 * some serial ports are supposed to be hidden on certain models.
192 pci_hp_diva_setup(struct serial_private *priv,
193 const struct pciserial_board *board,
194 struct uart_port *port, int idx)
196 unsigned int offset = board->first_offset;
197 unsigned int bar = FL_GET_BASE(board->flags);
199 switch (priv->dev->subsystem_device) {
200 case PCI_DEVICE_ID_HP_DIVA_MAESTRO:
204 case PCI_DEVICE_ID_HP_DIVA_EVEREST:
214 offset += idx * board->uart_offset;
216 return setup_port(priv, port, bar, offset, board->reg_shift);
220 * Added for EKF Intel i960 serial boards
222 static int pci_inteli960ni_init(struct pci_dev *dev)
224 unsigned long oldval;
226 if (!(dev->subsystem_device & 0x1000))
229 /* is firmware started? */
230 pci_read_config_dword(dev, 0x44, (void *)&oldval);
231 if (oldval == 0x00001000L) { /* RESET value */
232 printk(KERN_DEBUG "Local i960 firmware missing");
239 * Some PCI serial cards using the PLX 9050 PCI interface chip require
240 * that the card interrupt be explicitly enabled or disabled. This
241 * seems to be mainly needed on card using the PLX which also use I/O
244 static int pci_plx9050_init(struct pci_dev *dev)
249 if ((pci_resource_flags(dev, 0) & IORESOURCE_MEM) == 0) {
250 moan_device("no memory in bar 0", dev);
255 if (dev->vendor == PCI_VENDOR_ID_PANACOM ||
256 dev->subsystem_vendor == PCI_SUBVENDOR_ID_EXSYS)
259 if ((dev->vendor == PCI_VENDOR_ID_PLX) &&
260 (dev->device == PCI_DEVICE_ID_PLX_ROMULUS))
262 * As the megawolf cards have the int pins active
263 * high, and have 2 UART chips, both ints must be
264 * enabled on the 9050. Also, the UARTS are set in
265 * 16450 mode by default, so we have to enable the
266 * 16C950 'enhanced' mode so that we can use the
271 * enable/disable interrupts
273 p = ioremap_nocache(pci_resource_start(dev, 0), 0x80);
276 writel(irq_config, p + 0x4c);
279 * Read the register back to ensure that it took effect.
287 static void __devexit pci_plx9050_exit(struct pci_dev *dev)
291 if ((pci_resource_flags(dev, 0) & IORESOURCE_MEM) == 0)
297 p = ioremap_nocache(pci_resource_start(dev, 0), 0x80);
302 * Read the register back to ensure that it took effect.
309 #define NI8420_INT_ENABLE_REG 0x38
310 #define NI8420_INT_ENABLE_BIT 0x2000
312 static void __devexit pci_ni8420_exit(struct pci_dev *dev)
315 unsigned long base, len;
316 unsigned int bar = 0;
318 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
319 moan_device("no memory in bar", dev);
323 base = pci_resource_start(dev, bar);
324 len = pci_resource_len(dev, bar);
325 p = ioremap_nocache(base, len);
329 /* Disable the CPU Interrupt */
330 writel(readl(p + NI8420_INT_ENABLE_REG) & ~(NI8420_INT_ENABLE_BIT),
331 p + NI8420_INT_ENABLE_REG);
337 #define MITE_IOWBSR1 0xc4
338 #define MITE_IOWCR1 0xf4
339 #define MITE_LCIMR1 0x08
340 #define MITE_LCIMR2 0x10
342 #define MITE_LCIMR2_CLR_CPU_IE (1 << 30)
344 static void __devexit pci_ni8430_exit(struct pci_dev *dev)
347 unsigned long base, len;
348 unsigned int bar = 0;
350 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
351 moan_device("no memory in bar", dev);
355 base = pci_resource_start(dev, bar);
356 len = pci_resource_len(dev, bar);
357 p = ioremap_nocache(base, len);
361 /* Disable the CPU Interrupt */
362 writel(MITE_LCIMR2_CLR_CPU_IE, p + MITE_LCIMR2);
366 /* SBS Technologies Inc. PMC-OCTPRO and P-OCTAL cards */
368 sbs_setup(struct serial_private *priv, const struct pciserial_board *board,
369 struct uart_port *port, int idx)
371 unsigned int bar, offset = board->first_offset;
376 /* first four channels map to 0, 0x100, 0x200, 0x300 */
377 offset += idx * board->uart_offset;
378 } else if (idx < 8) {
379 /* last four channels map to 0x1000, 0x1100, 0x1200, 0x1300 */
380 offset += idx * board->uart_offset + 0xC00;
381 } else /* we have only 8 ports on PMC-OCTALPRO */
384 return setup_port(priv, port, bar, offset, board->reg_shift);
388 * This does initialization for PMC OCTALPRO cards:
389 * maps the device memory, resets the UARTs (needed, bc
390 * if the module is removed and inserted again, the card
391 * is in the sleep mode) and enables global interrupt.
394 /* global control register offset for SBS PMC-OctalPro */
395 #define OCT_REG_CR_OFF 0x500
397 static int sbs_init(struct pci_dev *dev)
401 p = ioremap_nocache(pci_resource_start(dev, 0),
402 pci_resource_len(dev, 0));
406 /* Set bit-4 Control Register (UART RESET) in to reset the uarts */
407 writeb(0x10, p + OCT_REG_CR_OFF);
409 writeb(0x0, p + OCT_REG_CR_OFF);
411 /* Set bit-2 (INTENABLE) of Control Register */
412 writeb(0x4, p + OCT_REG_CR_OFF);
419 * Disables the global interrupt of PMC-OctalPro
422 static void __devexit sbs_exit(struct pci_dev *dev)
426 p = ioremap_nocache(pci_resource_start(dev, 0),
427 pci_resource_len(dev, 0));
428 /* FIXME: What if resource_len < OCT_REG_CR_OFF */
430 writeb(0, p + OCT_REG_CR_OFF);
435 * SIIG serial cards have an PCI interface chip which also controls
436 * the UART clocking frequency. Each UART can be clocked independently
437 * (except cards equiped with 4 UARTs) and initial clocking settings
438 * are stored in the EEPROM chip. It can cause problems because this
439 * version of serial driver doesn't support differently clocked UART's
440 * on single PCI card. To prevent this, initialization functions set
441 * high frequency clocking for all UART's on given card. It is safe (I
442 * hope) because it doesn't touch EEPROM settings to prevent conflicts
443 * with other OSes (like M$ DOS).
445 * SIIG support added by Andrey Panin <pazke@donpac.ru>, 10/1999
447 * There is two family of SIIG serial cards with different PCI
448 * interface chip and different configuration methods:
449 * - 10x cards have control registers in IO and/or memory space;
450 * - 20x cards have control registers in standard PCI configuration space.
452 * Note: all 10x cards have PCI device ids 0x10..
453 * all 20x cards have PCI device ids 0x20..
455 * There are also Quartet Serial cards which use Oxford Semiconductor
456 * 16954 quad UART PCI chip clocked by 18.432 MHz quartz.
458 * Note: some SIIG cards are probed by the parport_serial object.
461 #define PCI_DEVICE_ID_SIIG_1S_10x (PCI_DEVICE_ID_SIIG_1S_10x_550 & 0xfffc)
462 #define PCI_DEVICE_ID_SIIG_2S_10x (PCI_DEVICE_ID_SIIG_2S_10x_550 & 0xfff8)
464 static int pci_siig10x_init(struct pci_dev *dev)
469 switch (dev->device & 0xfff8) {
470 case PCI_DEVICE_ID_SIIG_1S_10x: /* 1S */
473 case PCI_DEVICE_ID_SIIG_2S_10x: /* 2S, 2S1P */
476 default: /* 1S1P, 4S */
481 p = ioremap_nocache(pci_resource_start(dev, 0), 0x80);
485 writew(readw(p + 0x28) & data, p + 0x28);
491 #define PCI_DEVICE_ID_SIIG_2S_20x (PCI_DEVICE_ID_SIIG_2S_20x_550 & 0xfffc)
492 #define PCI_DEVICE_ID_SIIG_2S1P_20x (PCI_DEVICE_ID_SIIG_2S1P_20x_550 & 0xfffc)
494 static int pci_siig20x_init(struct pci_dev *dev)
498 /* Change clock frequency for the first UART. */
499 pci_read_config_byte(dev, 0x6f, &data);
500 pci_write_config_byte(dev, 0x6f, data & 0xef);
502 /* If this card has 2 UART, we have to do the same with second UART. */
503 if (((dev->device & 0xfffc) == PCI_DEVICE_ID_SIIG_2S_20x) ||
504 ((dev->device & 0xfffc) == PCI_DEVICE_ID_SIIG_2S1P_20x)) {
505 pci_read_config_byte(dev, 0x73, &data);
506 pci_write_config_byte(dev, 0x73, data & 0xef);
511 static int pci_siig_init(struct pci_dev *dev)
513 unsigned int type = dev->device & 0xff00;
516 return pci_siig10x_init(dev);
517 else if (type == 0x2000)
518 return pci_siig20x_init(dev);
520 moan_device("Unknown SIIG card", dev);
524 static int pci_siig_setup(struct serial_private *priv,
525 const struct pciserial_board *board,
526 struct uart_port *port, int idx)
528 unsigned int bar = FL_GET_BASE(board->flags) + idx, offset = 0;
532 offset = (idx - 4) * 8;
535 return setup_port(priv, port, bar, offset, 0);
539 * Timedia has an explosion of boards, and to avoid the PCI table from
540 * growing *huge*, we use this function to collapse some 70 entries
541 * in the PCI table into one, for sanity's and compactness's sake.
543 static const unsigned short timedia_single_port[] = {
544 0x4025, 0x4027, 0x4028, 0x5025, 0x5027, 0
547 static const unsigned short timedia_dual_port[] = {
548 0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085,
549 0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079,
550 0x7079, 0x8079, 0x8137, 0x8138, 0x8237, 0x8238, 0x9079,
551 0x9137, 0x9138, 0x9237, 0x9238, 0xA079, 0xB079, 0xC079,
555 static const unsigned short timedia_quad_port[] = {
556 0x4055, 0x4056, 0x4095, 0x4096, 0x5056, 0x8156, 0x8157,
557 0x8256, 0x8257, 0x9056, 0x9156, 0x9157, 0x9158, 0x9159,
558 0x9256, 0x9257, 0xA056, 0xA157, 0xA158, 0xA159, 0xB056,
562 static const unsigned short timedia_eight_port[] = {
563 0x4065, 0x4066, 0x5065, 0x5066, 0x8166, 0x9066, 0x9166,
564 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0
567 static const struct timedia_struct {
569 const unsigned short *ids;
571 { 1, timedia_single_port },
572 { 2, timedia_dual_port },
573 { 4, timedia_quad_port },
574 { 8, timedia_eight_port }
577 static int pci_timedia_init(struct pci_dev *dev)
579 const unsigned short *ids;
582 for (i = 0; i < ARRAY_SIZE(timedia_data); i++) {
583 ids = timedia_data[i].ids;
584 for (j = 0; ids[j]; j++)
585 if (dev->subsystem_device == ids[j])
586 return timedia_data[i].num;
592 * Timedia/SUNIX uses a mixture of BARs and offsets
593 * Ugh, this is ugly as all hell --- TYT
596 pci_timedia_setup(struct serial_private *priv,
597 const struct pciserial_board *board,
598 struct uart_port *port, int idx)
600 unsigned int bar = 0, offset = board->first_offset;
607 offset = board->uart_offset;
614 offset = board->uart_offset;
623 return setup_port(priv, port, bar, offset, board->reg_shift);
627 * Some Titan cards are also a little weird
630 titan_400l_800l_setup(struct serial_private *priv,
631 const struct pciserial_board *board,
632 struct uart_port *port, int idx)
634 unsigned int bar, offset = board->first_offset;
645 offset = (idx - 2) * board->uart_offset;
648 return setup_port(priv, port, bar, offset, board->reg_shift);
651 static int pci_xircom_init(struct pci_dev *dev)
657 static int pci_ni8420_init(struct pci_dev *dev)
660 unsigned long base, len;
661 unsigned int bar = 0;
663 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
664 moan_device("no memory in bar", dev);
668 base = pci_resource_start(dev, bar);
669 len = pci_resource_len(dev, bar);
670 p = ioremap_nocache(base, len);
674 /* Enable CPU Interrupt */
675 writel(readl(p + NI8420_INT_ENABLE_REG) | NI8420_INT_ENABLE_BIT,
676 p + NI8420_INT_ENABLE_REG);
682 #define MITE_IOWBSR1_WSIZE 0xa
683 #define MITE_IOWBSR1_WIN_OFFSET 0x800
684 #define MITE_IOWBSR1_WENAB (1 << 7)
685 #define MITE_LCIMR1_IO_IE_0 (1 << 24)
686 #define MITE_LCIMR2_SET_CPU_IE (1 << 31)
687 #define MITE_IOWCR1_RAMSEL_MASK 0xfffffffe
689 static int pci_ni8430_init(struct pci_dev *dev)
692 unsigned long base, len;
694 unsigned int bar = 0;
696 if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
697 moan_device("no memory in bar", dev);
701 base = pci_resource_start(dev, bar);
702 len = pci_resource_len(dev, bar);
703 p = ioremap_nocache(base, len);
707 /* Set device window address and size in BAR0 */
708 device_window = ((base + MITE_IOWBSR1_WIN_OFFSET) & 0xffffff00)
709 | MITE_IOWBSR1_WENAB | MITE_IOWBSR1_WSIZE;
710 writel(device_window, p + MITE_IOWBSR1);
712 /* Set window access to go to RAMSEL IO address space */
713 writel((readl(p + MITE_IOWCR1) & MITE_IOWCR1_RAMSEL_MASK),
716 /* Enable IO Bus Interrupt 0 */
717 writel(MITE_LCIMR1_IO_IE_0, p + MITE_LCIMR1);
719 /* Enable CPU Interrupt */
720 writel(MITE_LCIMR2_SET_CPU_IE, p + MITE_LCIMR2);
726 /* UART Port Control Register */
727 #define NI8430_PORTCON 0x0f
728 #define NI8430_PORTCON_TXVR_ENABLE (1 << 3)
731 pci_ni8430_setup(struct serial_private *priv,
732 const struct pciserial_board *board,
733 struct uart_port *port, int idx)
736 unsigned long base, len;
737 unsigned int bar, offset = board->first_offset;
739 if (idx >= board->num_ports)
742 bar = FL_GET_BASE(board->flags);
743 offset += idx * board->uart_offset;
745 base = pci_resource_start(priv->dev, bar);
746 len = pci_resource_len(priv->dev, bar);
747 p = ioremap_nocache(base, len);
749 /* enable the transciever */
750 writeb(readb(p + offset + NI8430_PORTCON) | NI8430_PORTCON_TXVR_ENABLE,
751 p + offset + NI8430_PORTCON);
755 return setup_port(priv, port, bar, offset, board->reg_shift);
759 static int pci_netmos_init(struct pci_dev *dev)
761 /* subdevice 0x00PS means <P> parallel, <S> serial */
762 unsigned int num_serial = dev->subsystem_device & 0xf;
764 if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
765 dev->subsystem_device == 0x0299)
774 * These chips are available with optionally one parallel port and up to
775 * two serial ports. Unfortunately they all have the same product id.
777 * Basic configuration is done over a region of 32 I/O ports. The base
778 * ioport is called INTA or INTC, depending on docs/other drivers.
780 * The region of the 32 I/O ports is configured in POSIO0R...
784 #define ITE_887x_MISCR 0x9c
785 #define ITE_887x_INTCBAR 0x78
786 #define ITE_887x_UARTBAR 0x7c
787 #define ITE_887x_PS0BAR 0x10
788 #define ITE_887x_POSIO0 0x60
791 #define ITE_887x_IOSIZE 32
792 /* I/O space size (bits 26-24; 8 bytes = 011b) */
793 #define ITE_887x_POSIO_IOSIZE_8 (3 << 24)
794 /* I/O space size (bits 26-24; 32 bytes = 101b) */
795 #define ITE_887x_POSIO_IOSIZE_32 (5 << 24)
796 /* Decoding speed (1 = slow, 2 = medium, 3 = fast) */
797 #define ITE_887x_POSIO_SPEED (3 << 29)
798 /* enable IO_Space bit */
799 #define ITE_887x_POSIO_ENABLE (1 << 31)
801 static int pci_ite887x_init(struct pci_dev *dev)
803 /* inta_addr are the configuration addresses of the ITE */
804 static const short inta_addr[] = { 0x2a0, 0x2c0, 0x220, 0x240, 0x1e0,
807 struct resource *iobase = NULL;
808 u32 miscr, uartbar, ioport;
810 /* search for the base-ioport */
812 while (inta_addr[i] && iobase == NULL) {
813 iobase = request_region(inta_addr[i], ITE_887x_IOSIZE,
815 if (iobase != NULL) {
816 /* write POSIO0R - speed | size | ioport */
817 pci_write_config_dword(dev, ITE_887x_POSIO0,
818 ITE_887x_POSIO_ENABLE | ITE_887x_POSIO_SPEED |
819 ITE_887x_POSIO_IOSIZE_32 | inta_addr[i]);
820 /* write INTCBAR - ioport */
821 pci_write_config_dword(dev, ITE_887x_INTCBAR,
823 ret = inb(inta_addr[i]);
825 /* ioport connected */
828 release_region(iobase->start, ITE_887x_IOSIZE);
835 printk(KERN_ERR "ite887x: could not find iobase\n");
839 /* start of undocumented type checking (see parport_pc.c) */
840 type = inb(iobase->start + 0x18) & 0x0f;
843 case 0x2: /* ITE8871 (1P) */
844 case 0xa: /* ITE8875 (1P) */
847 case 0xe: /* ITE8872 (2S1P) */
850 case 0x6: /* ITE8873 (1S) */
853 case 0x8: /* ITE8874 (2S) */
857 moan_device("Unknown ITE887x", dev);
861 /* configure all serial ports */
862 for (i = 0; i < ret; i++) {
863 /* read the I/O port from the device */
864 pci_read_config_dword(dev, ITE_887x_PS0BAR + (0x4 * (i + 1)),
866 ioport &= 0x0000FF00; /* the actual base address */
867 pci_write_config_dword(dev, ITE_887x_POSIO0 + (0x4 * (i + 1)),
868 ITE_887x_POSIO_ENABLE | ITE_887x_POSIO_SPEED |
869 ITE_887x_POSIO_IOSIZE_8 | ioport);
871 /* write the ioport to the UARTBAR */
872 pci_read_config_dword(dev, ITE_887x_UARTBAR, &uartbar);
873 uartbar &= ~(0xffff << (16 * i)); /* clear half the reg */
874 uartbar |= (ioport << (16 * i)); /* set the ioport */
875 pci_write_config_dword(dev, ITE_887x_UARTBAR, uartbar);
877 /* get current config */
878 pci_read_config_dword(dev, ITE_887x_MISCR, &miscr);
879 /* disable interrupts (UARTx_Routing[3:0]) */
880 miscr &= ~(0xf << (12 - 4 * i));
881 /* activate the UART (UARTx_En) */
882 miscr |= 1 << (23 - i);
883 /* write new config with activated UART */
884 pci_write_config_dword(dev, ITE_887x_MISCR, miscr);
888 /* the device has no UARTs if we get here */
889 release_region(iobase->start, ITE_887x_IOSIZE);
895 static void __devexit pci_ite887x_exit(struct pci_dev *dev)
898 /* the ioport is bit 0-15 in POSIO0R */
899 pci_read_config_dword(dev, ITE_887x_POSIO0, &ioport);
901 release_region(ioport, ITE_887x_IOSIZE);
905 * Oxford Semiconductor Inc.
906 * Check that device is part of the Tornado range of devices, then determine
907 * the number of ports available on the device.
909 static int pci_oxsemi_tornado_init(struct pci_dev *dev)
912 unsigned long deviceID;
913 unsigned int number_uarts = 0;
915 /* OxSemi Tornado devices are all 0xCxxx */
916 if (dev->vendor == PCI_VENDOR_ID_OXSEMI &&
917 (dev->device & 0xF000) != 0xC000)
920 p = pci_iomap(dev, 0, 5);
924 deviceID = ioread32(p);
926 if (deviceID == 0x07000200) {
927 number_uarts = ioread8(p + 4);
929 "%d ports detected on Oxford PCI Express device\n",
937 pci_default_setup(struct serial_private *priv,
938 const struct pciserial_board *board,
939 struct uart_port *port, int idx)
941 unsigned int bar, offset = board->first_offset, maxnr;
943 bar = FL_GET_BASE(board->flags);
944 if (board->flags & FL_BASE_BARS)
947 offset += idx * board->uart_offset;
949 maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
950 (board->reg_shift + 3);
952 if (board->flags & FL_REGION_SZ_CAP && idx >= maxnr)
955 return setup_port(priv, port, bar, offset, board->reg_shift);
958 static int skip_tx_en_setup(struct serial_private *priv,
959 const struct pciserial_board *board,
960 struct uart_port *port, int idx)
962 port->flags |= UPF_NO_TXEN_TEST;
963 printk(KERN_DEBUG "serial8250: skipping TxEn test for device "
964 "[%04x:%04x] subsystem [%04x:%04x]\n",
967 priv->dev->subsystem_vendor,
968 priv->dev->subsystem_device);
970 return pci_default_setup(priv, board, port, idx);
973 /* This should be in linux/pci_ids.h */
974 #define PCI_VENDOR_ID_SBSMODULARIO 0x124B
975 #define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B
976 #define PCI_DEVICE_ID_OCTPRO 0x0001
977 #define PCI_SUBDEVICE_ID_OCTPRO232 0x0108
978 #define PCI_SUBDEVICE_ID_OCTPRO422 0x0208
979 #define PCI_SUBDEVICE_ID_POCTAL232 0x0308
980 #define PCI_SUBDEVICE_ID_POCTAL422 0x0408
981 #define PCI_VENDOR_ID_ADVANTECH 0x13fe
982 #define PCI_DEVICE_ID_ADVANTECH_PCI3620 0x3620
984 /* Unknown vendors/cards - this should not be in linux/pci_ids.h */
985 #define PCI_SUBDEVICE_ID_UNKNOWN_0x1584 0x1584
988 * Master list of serial port init/setup/exit quirks.
989 * This does not describe the general nature of the port.
990 * (ie, baud base, number and location of ports, etc)
992 * This list is ordered alphabetically by vendor then device.
993 * Specific entries must come before more generic entries.
995 static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
997 * ADDI-DATA GmbH communication cards <info@addi-data.com>
1000 .vendor = PCI_VENDOR_ID_ADDIDATA_OLD,
1001 .device = PCI_DEVICE_ID_ADDIDATA_APCI7800,
1002 .subvendor = PCI_ANY_ID,
1003 .subdevice = PCI_ANY_ID,
1004 .setup = addidata_apci7800_setup,
1007 * AFAVLAB cards - these may be called via parport_serial
1008 * It is not clear whether this applies to all products.
1011 .vendor = PCI_VENDOR_ID_AFAVLAB,
1012 .device = PCI_ANY_ID,
1013 .subvendor = PCI_ANY_ID,
1014 .subdevice = PCI_ANY_ID,
1015 .setup = afavlab_setup,
1021 .vendor = PCI_VENDOR_ID_HP,
1022 .device = PCI_DEVICE_ID_HP_DIVA,
1023 .subvendor = PCI_ANY_ID,
1024 .subdevice = PCI_ANY_ID,
1025 .init = pci_hp_diva_init,
1026 .setup = pci_hp_diva_setup,
1032 .vendor = PCI_VENDOR_ID_INTEL,
1033 .device = PCI_DEVICE_ID_INTEL_80960_RP,
1034 .subvendor = 0xe4bf,
1035 .subdevice = PCI_ANY_ID,
1036 .init = pci_inteli960ni_init,
1037 .setup = pci_default_setup,
1040 .vendor = PCI_VENDOR_ID_INTEL,
1041 .device = PCI_DEVICE_ID_INTEL_8257X_SOL,
1042 .subvendor = PCI_ANY_ID,
1043 .subdevice = PCI_ANY_ID,
1044 .setup = skip_tx_en_setup,
1047 .vendor = PCI_VENDOR_ID_INTEL,
1048 .device = PCI_DEVICE_ID_INTEL_82573L_SOL,
1049 .subvendor = PCI_ANY_ID,
1050 .subdevice = PCI_ANY_ID,
1051 .setup = skip_tx_en_setup,
1054 .vendor = PCI_VENDOR_ID_INTEL,
1055 .device = PCI_DEVICE_ID_INTEL_82573E_SOL,
1056 .subvendor = PCI_ANY_ID,
1057 .subdevice = PCI_ANY_ID,
1058 .setup = skip_tx_en_setup,
1064 .vendor = PCI_VENDOR_ID_ITE,
1065 .device = PCI_DEVICE_ID_ITE_8872,
1066 .subvendor = PCI_ANY_ID,
1067 .subdevice = PCI_ANY_ID,
1068 .init = pci_ite887x_init,
1069 .setup = pci_default_setup,
1070 .exit = __devexit_p(pci_ite887x_exit),
1073 * National Instruments
1076 .vendor = PCI_VENDOR_ID_NI,
1077 .device = PCI_DEVICE_ID_NI_PCI23216,
1078 .subvendor = PCI_ANY_ID,
1079 .subdevice = PCI_ANY_ID,
1080 .init = pci_ni8420_init,
1081 .setup = pci_default_setup,
1082 .exit = __devexit_p(pci_ni8420_exit),
1085 .vendor = PCI_VENDOR_ID_NI,
1086 .device = PCI_DEVICE_ID_NI_PCI2328,
1087 .subvendor = PCI_ANY_ID,
1088 .subdevice = PCI_ANY_ID,
1089 .init = pci_ni8420_init,
1090 .setup = pci_default_setup,
1091 .exit = __devexit_p(pci_ni8420_exit),
1094 .vendor = PCI_VENDOR_ID_NI,
1095 .device = PCI_DEVICE_ID_NI_PCI2324,
1096 .subvendor = PCI_ANY_ID,
1097 .subdevice = PCI_ANY_ID,
1098 .init = pci_ni8420_init,
1099 .setup = pci_default_setup,
1100 .exit = __devexit_p(pci_ni8420_exit),
1103 .vendor = PCI_VENDOR_ID_NI,
1104 .device = PCI_DEVICE_ID_NI_PCI2322,
1105 .subvendor = PCI_ANY_ID,
1106 .subdevice = PCI_ANY_ID,
1107 .init = pci_ni8420_init,
1108 .setup = pci_default_setup,
1109 .exit = __devexit_p(pci_ni8420_exit),
1112 .vendor = PCI_VENDOR_ID_NI,
1113 .device = PCI_DEVICE_ID_NI_PCI2324I,
1114 .subvendor = PCI_ANY_ID,
1115 .subdevice = PCI_ANY_ID,
1116 .init = pci_ni8420_init,
1117 .setup = pci_default_setup,
1118 .exit = __devexit_p(pci_ni8420_exit),
1121 .vendor = PCI_VENDOR_ID_NI,
1122 .device = PCI_DEVICE_ID_NI_PCI2322I,
1123 .subvendor = PCI_ANY_ID,
1124 .subdevice = PCI_ANY_ID,
1125 .init = pci_ni8420_init,
1126 .setup = pci_default_setup,
1127 .exit = __devexit_p(pci_ni8420_exit),
1130 .vendor = PCI_VENDOR_ID_NI,
1131 .device = PCI_DEVICE_ID_NI_PXI8420_23216,
1132 .subvendor = PCI_ANY_ID,
1133 .subdevice = PCI_ANY_ID,
1134 .init = pci_ni8420_init,
1135 .setup = pci_default_setup,
1136 .exit = __devexit_p(pci_ni8420_exit),
1139 .vendor = PCI_VENDOR_ID_NI,
1140 .device = PCI_DEVICE_ID_NI_PXI8420_2328,
1141 .subvendor = PCI_ANY_ID,
1142 .subdevice = PCI_ANY_ID,
1143 .init = pci_ni8420_init,
1144 .setup = pci_default_setup,
1145 .exit = __devexit_p(pci_ni8420_exit),
1148 .vendor = PCI_VENDOR_ID_NI,
1149 .device = PCI_DEVICE_ID_NI_PXI8420_2324,
1150 .subvendor = PCI_ANY_ID,
1151 .subdevice = PCI_ANY_ID,
1152 .init = pci_ni8420_init,
1153 .setup = pci_default_setup,
1154 .exit = __devexit_p(pci_ni8420_exit),
1157 .vendor = PCI_VENDOR_ID_NI,
1158 .device = PCI_DEVICE_ID_NI_PXI8420_2322,
1159 .subvendor = PCI_ANY_ID,
1160 .subdevice = PCI_ANY_ID,
1161 .init = pci_ni8420_init,
1162 .setup = pci_default_setup,
1163 .exit = __devexit_p(pci_ni8420_exit),
1166 .vendor = PCI_VENDOR_ID_NI,
1167 .device = PCI_DEVICE_ID_NI_PXI8422_2324,
1168 .subvendor = PCI_ANY_ID,
1169 .subdevice = PCI_ANY_ID,
1170 .init = pci_ni8420_init,
1171 .setup = pci_default_setup,
1172 .exit = __devexit_p(pci_ni8420_exit),
1175 .vendor = PCI_VENDOR_ID_NI,
1176 .device = PCI_DEVICE_ID_NI_PXI8422_2322,
1177 .subvendor = PCI_ANY_ID,
1178 .subdevice = PCI_ANY_ID,
1179 .init = pci_ni8420_init,
1180 .setup = pci_default_setup,
1181 .exit = __devexit_p(pci_ni8420_exit),
1184 .vendor = PCI_VENDOR_ID_NI,
1185 .device = PCI_ANY_ID,
1186 .subvendor = PCI_ANY_ID,
1187 .subdevice = PCI_ANY_ID,
1188 .init = pci_ni8430_init,
1189 .setup = pci_ni8430_setup,
1190 .exit = __devexit_p(pci_ni8430_exit),
1196 .vendor = PCI_VENDOR_ID_PANACOM,
1197 .device = PCI_DEVICE_ID_PANACOM_QUADMODEM,
1198 .subvendor = PCI_ANY_ID,
1199 .subdevice = PCI_ANY_ID,
1200 .init = pci_plx9050_init,
1201 .setup = pci_default_setup,
1202 .exit = __devexit_p(pci_plx9050_exit),
1205 .vendor = PCI_VENDOR_ID_PANACOM,
1206 .device = PCI_DEVICE_ID_PANACOM_DUALMODEM,
1207 .subvendor = PCI_ANY_ID,
1208 .subdevice = PCI_ANY_ID,
1209 .init = pci_plx9050_init,
1210 .setup = pci_default_setup,
1211 .exit = __devexit_p(pci_plx9050_exit),
1217 .vendor = PCI_VENDOR_ID_PLX,
1218 .device = PCI_DEVICE_ID_PLX_9030,
1219 .subvendor = PCI_SUBVENDOR_ID_PERLE,
1220 .subdevice = PCI_ANY_ID,
1221 .setup = pci_default_setup,
1224 .vendor = PCI_VENDOR_ID_PLX,
1225 .device = PCI_DEVICE_ID_PLX_9050,
1226 .subvendor = PCI_SUBVENDOR_ID_EXSYS,
1227 .subdevice = PCI_SUBDEVICE_ID_EXSYS_4055,
1228 .init = pci_plx9050_init,
1229 .setup = pci_default_setup,
1230 .exit = __devexit_p(pci_plx9050_exit),
1233 .vendor = PCI_VENDOR_ID_PLX,
1234 .device = PCI_DEVICE_ID_PLX_9050,
1235 .subvendor = PCI_SUBVENDOR_ID_KEYSPAN,
1236 .subdevice = PCI_SUBDEVICE_ID_KEYSPAN_SX2,
1237 .init = pci_plx9050_init,
1238 .setup = pci_default_setup,
1239 .exit = __devexit_p(pci_plx9050_exit),
1242 .vendor = PCI_VENDOR_ID_PLX,
1243 .device = PCI_DEVICE_ID_PLX_9050,
1244 .subvendor = PCI_VENDOR_ID_PLX,
1245 .subdevice = PCI_SUBDEVICE_ID_UNKNOWN_0x1584,
1246 .init = pci_plx9050_init,
1247 .setup = pci_default_setup,
1248 .exit = __devexit_p(pci_plx9050_exit),
1251 .vendor = PCI_VENDOR_ID_PLX,
1252 .device = PCI_DEVICE_ID_PLX_ROMULUS,
1253 .subvendor = PCI_VENDOR_ID_PLX,
1254 .subdevice = PCI_DEVICE_ID_PLX_ROMULUS,
1255 .init = pci_plx9050_init,
1256 .setup = pci_default_setup,
1257 .exit = __devexit_p(pci_plx9050_exit),
1260 * SBS Technologies, Inc., PMC-OCTALPRO 232
1263 .vendor = PCI_VENDOR_ID_SBSMODULARIO,
1264 .device = PCI_DEVICE_ID_OCTPRO,
1265 .subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
1266 .subdevice = PCI_SUBDEVICE_ID_OCTPRO232,
1269 .exit = __devexit_p(sbs_exit),
1272 * SBS Technologies, Inc., PMC-OCTALPRO 422
1275 .vendor = PCI_VENDOR_ID_SBSMODULARIO,
1276 .device = PCI_DEVICE_ID_OCTPRO,
1277 .subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
1278 .subdevice = PCI_SUBDEVICE_ID_OCTPRO422,
1281 .exit = __devexit_p(sbs_exit),
1284 * SBS Technologies, Inc., P-Octal 232
1287 .vendor = PCI_VENDOR_ID_SBSMODULARIO,
1288 .device = PCI_DEVICE_ID_OCTPRO,
1289 .subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
1290 .subdevice = PCI_SUBDEVICE_ID_POCTAL232,
1293 .exit = __devexit_p(sbs_exit),
1296 * SBS Technologies, Inc., P-Octal 422
1299 .vendor = PCI_VENDOR_ID_SBSMODULARIO,
1300 .device = PCI_DEVICE_ID_OCTPRO,
1301 .subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
1302 .subdevice = PCI_SUBDEVICE_ID_POCTAL422,
1305 .exit = __devexit_p(sbs_exit),
1308 * SIIG cards - these may be called via parport_serial
1311 .vendor = PCI_VENDOR_ID_SIIG,
1312 .device = PCI_ANY_ID,
1313 .subvendor = PCI_ANY_ID,
1314 .subdevice = PCI_ANY_ID,
1315 .init = pci_siig_init,
1316 .setup = pci_siig_setup,
1322 .vendor = PCI_VENDOR_ID_TITAN,
1323 .device = PCI_DEVICE_ID_TITAN_400L,
1324 .subvendor = PCI_ANY_ID,
1325 .subdevice = PCI_ANY_ID,
1326 .setup = titan_400l_800l_setup,
1329 .vendor = PCI_VENDOR_ID_TITAN,
1330 .device = PCI_DEVICE_ID_TITAN_800L,
1331 .subvendor = PCI_ANY_ID,
1332 .subdevice = PCI_ANY_ID,
1333 .setup = titan_400l_800l_setup,
1339 .vendor = PCI_VENDOR_ID_TIMEDIA,
1340 .device = PCI_DEVICE_ID_TIMEDIA_1889,
1341 .subvendor = PCI_VENDOR_ID_TIMEDIA,
1342 .subdevice = PCI_ANY_ID,
1343 .init = pci_timedia_init,
1344 .setup = pci_timedia_setup,
1347 .vendor = PCI_VENDOR_ID_TIMEDIA,
1348 .device = PCI_ANY_ID,
1349 .subvendor = PCI_ANY_ID,
1350 .subdevice = PCI_ANY_ID,
1351 .setup = pci_timedia_setup,
1357 .vendor = PCI_VENDOR_ID_XIRCOM,
1358 .device = PCI_DEVICE_ID_XIRCOM_X3201_MDM,
1359 .subvendor = PCI_ANY_ID,
1360 .subdevice = PCI_ANY_ID,
1361 .init = pci_xircom_init,
1362 .setup = pci_default_setup,
1365 * Netmos cards - these may be called via parport_serial
1368 .vendor = PCI_VENDOR_ID_NETMOS,
1369 .device = PCI_ANY_ID,
1370 .subvendor = PCI_ANY_ID,
1371 .subdevice = PCI_ANY_ID,
1372 .init = pci_netmos_init,
1373 .setup = pci_default_setup,
1376 * For Oxford Semiconductor and Mainpine
1379 .vendor = PCI_VENDOR_ID_OXSEMI,
1380 .device = PCI_ANY_ID,
1381 .subvendor = PCI_ANY_ID,
1382 .subdevice = PCI_ANY_ID,
1383 .init = pci_oxsemi_tornado_init,
1384 .setup = pci_default_setup,
1387 .vendor = PCI_VENDOR_ID_MAINPINE,
1388 .device = PCI_ANY_ID,
1389 .subvendor = PCI_ANY_ID,
1390 .subdevice = PCI_ANY_ID,
1391 .init = pci_oxsemi_tornado_init,
1392 .setup = pci_default_setup,
1395 * Default "match everything" terminator entry
1398 .vendor = PCI_ANY_ID,
1399 .device = PCI_ANY_ID,
1400 .subvendor = PCI_ANY_ID,
1401 .subdevice = PCI_ANY_ID,
1402 .setup = pci_default_setup,
1406 static inline int quirk_id_matches(u32 quirk_id, u32 dev_id)
1408 return quirk_id == PCI_ANY_ID || quirk_id == dev_id;
1411 static struct pci_serial_quirk *find_quirk(struct pci_dev *dev)
1413 struct pci_serial_quirk *quirk;
1415 for (quirk = pci_serial_quirks; ; quirk++)
1416 if (quirk_id_matches(quirk->vendor, dev->vendor) &&
1417 quirk_id_matches(quirk->device, dev->device) &&
1418 quirk_id_matches(quirk->subvendor, dev->subsystem_vendor) &&
1419 quirk_id_matches(quirk->subdevice, dev->subsystem_device))
1424 static inline int get_pci_irq(struct pci_dev *dev,
1425 const struct pciserial_board *board)
1427 if (board->flags & FL_NOIRQ)
1434 * This is the configuration table for all of the PCI serial boards
1435 * which we support. It is directly indexed by the pci_board_num_t enum
1436 * value, which is encoded in the pci_device_id PCI probe table's
1437 * driver_data member.
1439 * The makeup of these names are:
1440 * pbn_bn{_bt}_n_baud{_offsetinhex}
1442 * bn = PCI BAR number
1443 * bt = Index using PCI BARs
1444 * n = number of serial ports
1446 * offsetinhex = offset for each sequential port (in hex)
1448 * This table is sorted by (in order): bn, bt, baud, offsetindex, n.
1450 * Please note: in theory if n = 1, _bt infix should make no difference.
1451 * ie, pbn_b0_1_115200 is the same as pbn_b0_bt_1_115200
1453 enum pci_board_num_t {
1473 pbn_b0_2_1843200_200,
1474 pbn_b0_4_1843200_200,
1475 pbn_b0_8_1843200_200,
1542 * Board-specific versions.
1550 pbn_oxsemi_1_4000000,
1551 pbn_oxsemi_2_4000000,
1552 pbn_oxsemi_4_4000000,
1553 pbn_oxsemi_8_4000000,
1571 * uart_offset - the space between channels
1572 * reg_shift - describes how the UART registers are mapped
1573 * to PCI memory by the card.
1574 * For example IER register on SBS, Inc. PMC-OctPro is located at
1575 * offset 0x10 from the UART base, while UART_IER is defined as 1
1576 * in include/linux/serial_reg.h,
1577 * see first lines of serial_in() and serial_out() in 8250.c
1580 static struct pciserial_board pci_boards[] __devinitdata = {
1584 .base_baud = 115200,
1587 [pbn_b0_1_115200] = {
1590 .base_baud = 115200,
1593 [pbn_b0_2_115200] = {
1596 .base_baud = 115200,
1599 [pbn_b0_4_115200] = {
1602 .base_baud = 115200,
1605 [pbn_b0_5_115200] = {
1608 .base_baud = 115200,
1611 [pbn_b0_8_115200] = {
1614 .base_baud = 115200,
1617 [pbn_b0_1_921600] = {
1620 .base_baud = 921600,
1623 [pbn_b0_2_921600] = {
1626 .base_baud = 921600,
1629 [pbn_b0_4_921600] = {
1632 .base_baud = 921600,
1636 [pbn_b0_2_1130000] = {
1639 .base_baud = 1130000,
1643 [pbn_b0_4_1152000] = {
1646 .base_baud = 1152000,
1650 [pbn_b0_2_1843200] = {
1653 .base_baud = 1843200,
1656 [pbn_b0_4_1843200] = {
1659 .base_baud = 1843200,
1663 [pbn_b0_2_1843200_200] = {
1666 .base_baud = 1843200,
1667 .uart_offset = 0x200,
1669 [pbn_b0_4_1843200_200] = {
1672 .base_baud = 1843200,
1673 .uart_offset = 0x200,
1675 [pbn_b0_8_1843200_200] = {
1678 .base_baud = 1843200,
1679 .uart_offset = 0x200,
1681 [pbn_b0_1_4000000] = {
1684 .base_baud = 4000000,
1688 [pbn_b0_bt_1_115200] = {
1689 .flags = FL_BASE0|FL_BASE_BARS,
1691 .base_baud = 115200,
1694 [pbn_b0_bt_2_115200] = {
1695 .flags = FL_BASE0|FL_BASE_BARS,
1697 .base_baud = 115200,
1700 [pbn_b0_bt_8_115200] = {
1701 .flags = FL_BASE0|FL_BASE_BARS,
1703 .base_baud = 115200,
1707 [pbn_b0_bt_1_460800] = {
1708 .flags = FL_BASE0|FL_BASE_BARS,
1710 .base_baud = 460800,
1713 [pbn_b0_bt_2_460800] = {
1714 .flags = FL_BASE0|FL_BASE_BARS,
1716 .base_baud = 460800,
1719 [pbn_b0_bt_4_460800] = {
1720 .flags = FL_BASE0|FL_BASE_BARS,
1722 .base_baud = 460800,
1726 [pbn_b0_bt_1_921600] = {
1727 .flags = FL_BASE0|FL_BASE_BARS,
1729 .base_baud = 921600,
1732 [pbn_b0_bt_2_921600] = {
1733 .flags = FL_BASE0|FL_BASE_BARS,
1735 .base_baud = 921600,
1738 [pbn_b0_bt_4_921600] = {
1739 .flags = FL_BASE0|FL_BASE_BARS,
1741 .base_baud = 921600,
1744 [pbn_b0_bt_8_921600] = {
1745 .flags = FL_BASE0|FL_BASE_BARS,
1747 .base_baud = 921600,
1751 [pbn_b1_1_115200] = {
1754 .base_baud = 115200,
1757 [pbn_b1_2_115200] = {
1760 .base_baud = 115200,
1763 [pbn_b1_4_115200] = {
1766 .base_baud = 115200,
1769 [pbn_b1_8_115200] = {
1772 .base_baud = 115200,
1775 [pbn_b1_16_115200] = {
1778 .base_baud = 115200,
1782 [pbn_b1_1_921600] = {
1785 .base_baud = 921600,
1788 [pbn_b1_2_921600] = {
1791 .base_baud = 921600,
1794 [pbn_b1_4_921600] = {
1797 .base_baud = 921600,
1800 [pbn_b1_8_921600] = {
1803 .base_baud = 921600,
1806 [pbn_b1_2_1250000] = {
1809 .base_baud = 1250000,
1813 [pbn_b1_bt_1_115200] = {
1814 .flags = FL_BASE1|FL_BASE_BARS,
1816 .base_baud = 115200,
1819 [pbn_b1_bt_2_115200] = {
1820 .flags = FL_BASE1|FL_BASE_BARS,
1822 .base_baud = 115200,
1825 [pbn_b1_bt_4_115200] = {
1826 .flags = FL_BASE1|FL_BASE_BARS,
1828 .base_baud = 115200,
1832 [pbn_b1_bt_2_921600] = {
1833 .flags = FL_BASE1|FL_BASE_BARS,
1835 .base_baud = 921600,
1839 [pbn_b1_1_1382400] = {
1842 .base_baud = 1382400,
1845 [pbn_b1_2_1382400] = {
1848 .base_baud = 1382400,
1851 [pbn_b1_4_1382400] = {
1854 .base_baud = 1382400,
1857 [pbn_b1_8_1382400] = {
1860 .base_baud = 1382400,
1864 [pbn_b2_1_115200] = {
1867 .base_baud = 115200,
1870 [pbn_b2_2_115200] = {
1873 .base_baud = 115200,
1876 [pbn_b2_4_115200] = {
1879 .base_baud = 115200,
1882 [pbn_b2_8_115200] = {
1885 .base_baud = 115200,
1889 [pbn_b2_1_460800] = {
1892 .base_baud = 460800,
1895 [pbn_b2_4_460800] = {
1898 .base_baud = 460800,
1901 [pbn_b2_8_460800] = {
1904 .base_baud = 460800,
1907 [pbn_b2_16_460800] = {
1910 .base_baud = 460800,
1914 [pbn_b2_1_921600] = {
1917 .base_baud = 921600,
1920 [pbn_b2_4_921600] = {
1923 .base_baud = 921600,
1926 [pbn_b2_8_921600] = {
1929 .base_baud = 921600,
1933 [pbn_b2_bt_1_115200] = {
1934 .flags = FL_BASE2|FL_BASE_BARS,
1936 .base_baud = 115200,
1939 [pbn_b2_bt_2_115200] = {
1940 .flags = FL_BASE2|FL_BASE_BARS,
1942 .base_baud = 115200,
1945 [pbn_b2_bt_4_115200] = {
1946 .flags = FL_BASE2|FL_BASE_BARS,
1948 .base_baud = 115200,
1952 [pbn_b2_bt_2_921600] = {
1953 .flags = FL_BASE2|FL_BASE_BARS,
1955 .base_baud = 921600,
1958 [pbn_b2_bt_4_921600] = {
1959 .flags = FL_BASE2|FL_BASE_BARS,
1961 .base_baud = 921600,
1965 [pbn_b3_2_115200] = {
1968 .base_baud = 115200,
1971 [pbn_b3_4_115200] = {
1974 .base_baud = 115200,
1977 [pbn_b3_8_115200] = {
1980 .base_baud = 115200,
1985 * Entries following this are board-specific.
1994 .base_baud = 921600,
1995 .uart_offset = 0x400,
1999 .flags = FL_BASE2|FL_BASE_BARS,
2001 .base_baud = 921600,
2002 .uart_offset = 0x400,
2006 .flags = FL_BASE2|FL_BASE_BARS,
2008 .base_baud = 921600,
2009 .uart_offset = 0x400,
2013 [pbn_exsys_4055] = {
2016 .base_baud = 115200,
2020 /* I think this entry is broken - the first_offset looks wrong --rmk */
2021 [pbn_plx_romulus] = {
2024 .base_baud = 921600,
2025 .uart_offset = 8 << 2,
2027 .first_offset = 0x03,
2031 * This board uses the size of PCI Base region 0 to
2032 * signal now many ports are available
2035 .flags = FL_BASE0|FL_REGION_SZ_CAP,
2037 .base_baud = 115200,
2040 [pbn_oxsemi_1_4000000] = {
2043 .base_baud = 4000000,
2044 .uart_offset = 0x200,
2045 .first_offset = 0x1000,
2047 [pbn_oxsemi_2_4000000] = {
2050 .base_baud = 4000000,
2051 .uart_offset = 0x200,
2052 .first_offset = 0x1000,
2054 [pbn_oxsemi_4_4000000] = {
2057 .base_baud = 4000000,
2058 .uart_offset = 0x200,
2059 .first_offset = 0x1000,
2061 [pbn_oxsemi_8_4000000] = {
2064 .base_baud = 4000000,
2065 .uart_offset = 0x200,
2066 .first_offset = 0x1000,
2071 * EKF addition for i960 Boards form EKF with serial port.
2074 [pbn_intel_i960] = {
2077 .base_baud = 921600,
2078 .uart_offset = 8 << 2,
2080 .first_offset = 0x10000,
2083 .flags = FL_BASE0|FL_NOIRQ,
2085 .base_baud = 458333,
2088 .first_offset = 0x20178,
2092 * Computone - uses IOMEM.
2094 [pbn_computone_4] = {
2097 .base_baud = 921600,
2098 .uart_offset = 0x40,
2100 .first_offset = 0x200,
2102 [pbn_computone_6] = {
2105 .base_baud = 921600,
2106 .uart_offset = 0x40,
2108 .first_offset = 0x200,
2110 [pbn_computone_8] = {
2113 .base_baud = 921600,
2114 .uart_offset = 0x40,
2116 .first_offset = 0x200,
2121 .base_baud = 460800,
2126 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
2127 * Only basic 16550A support.
2128 * XR17C15[24] are not tested, but they should work.
2130 [pbn_exar_XR17C152] = {
2133 .base_baud = 921600,
2134 .uart_offset = 0x200,
2136 [pbn_exar_XR17C154] = {
2139 .base_baud = 921600,
2140 .uart_offset = 0x200,
2142 [pbn_exar_XR17C158] = {
2145 .base_baud = 921600,
2146 .uart_offset = 0x200,
2149 * PA Semi PWRficient PA6T-1682M on-chip UART
2151 [pbn_pasemi_1682M] = {
2154 .base_baud = 8333333,
2157 * National Instruments 843x
2162 .base_baud = 3686400,
2163 .uart_offset = 0x10,
2164 .first_offset = 0x800,
2169 .base_baud = 3686400,
2170 .uart_offset = 0x10,
2171 .first_offset = 0x800,
2176 .base_baud = 3686400,
2177 .uart_offset = 0x10,
2178 .first_offset = 0x800,
2183 .base_baud = 3686400,
2184 .uart_offset = 0x10,
2185 .first_offset = 0x800,
2189 static const struct pci_device_id softmodem_blacklist[] = {
2190 { PCI_VDEVICE(AL, 0x5457), }, /* ALi Corporation M5457 AC'97 Modem */
2194 * Given a complete unknown PCI device, try to use some heuristics to
2195 * guess what the configuration might be, based on the pitiful PCI
2196 * serial specs. Returns 0 on success, 1 on failure.
2198 static int __devinit
2199 serial_pci_guess_board(struct pci_dev *dev, struct pciserial_board *board)
2201 const struct pci_device_id *blacklist;
2202 int num_iomem, num_port, first_port = -1, i;
2205 * If it is not a communications device or the programming
2206 * interface is greater than 6, give up.
2208 * (Should we try to make guesses for multiport serial devices
2211 if ((((dev->class >> 8) != PCI_CLASS_COMMUNICATION_SERIAL) &&
2212 ((dev->class >> 8) != PCI_CLASS_COMMUNICATION_MODEM)) ||
2213 (dev->class & 0xff) > 6)
2217 * Do not access blacklisted devices that are known not to
2218 * feature serial ports.
2220 for (blacklist = softmodem_blacklist;
2221 blacklist < softmodem_blacklist + ARRAY_SIZE(softmodem_blacklist);
2223 if (dev->vendor == blacklist->vendor &&
2224 dev->device == blacklist->device)
2228 num_iomem = num_port = 0;
2229 for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
2230 if (pci_resource_flags(dev, i) & IORESOURCE_IO) {
2232 if (first_port == -1)
2235 if (pci_resource_flags(dev, i) & IORESOURCE_MEM)
2240 * If there is 1 or 0 iomem regions, and exactly one port,
2241 * use it. We guess the number of ports based on the IO
2244 if (num_iomem <= 1 && num_port == 1) {
2245 board->flags = first_port;
2246 board->num_ports = pci_resource_len(dev, first_port) / 8;
2251 * Now guess if we've got a board which indexes by BARs.
2252 * Each IO BAR should be 8 bytes, and they should follow
2257 for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
2258 if (pci_resource_flags(dev, i) & IORESOURCE_IO &&
2259 pci_resource_len(dev, i) == 8 &&
2260 (first_port == -1 || (first_port + num_port) == i)) {
2262 if (first_port == -1)
2268 board->flags = first_port | FL_BASE_BARS;
2269 board->num_ports = num_port;
2277 serial_pci_matches(const struct pciserial_board *board,
2278 const struct pciserial_board *guessed)
2281 board->num_ports == guessed->num_ports &&
2282 board->base_baud == guessed->base_baud &&
2283 board->uart_offset == guessed->uart_offset &&
2284 board->reg_shift == guessed->reg_shift &&
2285 board->first_offset == guessed->first_offset;
2288 struct serial_private *
2289 pciserial_init_ports(struct pci_dev *dev, const struct pciserial_board *board)
2291 struct uart_port serial_port;
2292 struct serial_private *priv;
2293 struct pci_serial_quirk *quirk;
2294 int rc, nr_ports, i;
2296 nr_ports = board->num_ports;
2299 * Find an init and setup quirks.
2301 quirk = find_quirk(dev);
2304 * Run the new-style initialization function.
2305 * The initialization function returns:
2307 * 0 - use board->num_ports
2308 * >0 - number of ports
2311 rc = quirk->init(dev);
2320 priv = kzalloc(sizeof(struct serial_private) +
2321 sizeof(unsigned int) * nr_ports,
2324 priv = ERR_PTR(-ENOMEM);
2329 priv->quirk = quirk;
2331 memset(&serial_port, 0, sizeof(struct uart_port));
2332 serial_port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ;
2333 serial_port.uartclk = board->base_baud * 16;
2334 serial_port.irq = get_pci_irq(dev, board);
2335 serial_port.dev = &dev->dev;
2337 for (i = 0; i < nr_ports; i++) {
2338 if (quirk->setup(priv, board, &serial_port, i))
2341 #ifdef SERIAL_DEBUG_PCI
2342 printk(KERN_DEBUG "Setup PCI port: port %x, irq %d, type %d\n",
2343 serial_port.iobase, serial_port.irq, serial_port.iotype);
2346 priv->line[i] = serial8250_register_port(&serial_port);
2347 if (priv->line[i] < 0) {
2348 printk(KERN_WARNING "Couldn't register serial port %s: %d\n", pci_name(dev), priv->line[i]);
2361 EXPORT_SYMBOL_GPL(pciserial_init_ports);
2363 void pciserial_remove_ports(struct serial_private *priv)
2365 struct pci_serial_quirk *quirk;
2368 for (i = 0; i < priv->nr; i++)
2369 serial8250_unregister_port(priv->line[i]);
2371 for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
2372 if (priv->remapped_bar[i])
2373 iounmap(priv->remapped_bar[i]);
2374 priv->remapped_bar[i] = NULL;
2378 * Find the exit quirks.
2380 quirk = find_quirk(priv->dev);
2382 quirk->exit(priv->dev);
2386 EXPORT_SYMBOL_GPL(pciserial_remove_ports);
2388 void pciserial_suspend_ports(struct serial_private *priv)
2392 for (i = 0; i < priv->nr; i++)
2393 if (priv->line[i] >= 0)
2394 serial8250_suspend_port(priv->line[i]);
2396 EXPORT_SYMBOL_GPL(pciserial_suspend_ports);
2398 void pciserial_resume_ports(struct serial_private *priv)
2403 * Ensure that the board is correctly configured.
2405 if (priv->quirk->init)
2406 priv->quirk->init(priv->dev);
2408 for (i = 0; i < priv->nr; i++)
2409 if (priv->line[i] >= 0)
2410 serial8250_resume_port(priv->line[i]);
2412 EXPORT_SYMBOL_GPL(pciserial_resume_ports);
2415 * Probe one serial board. Unfortunately, there is no rhyme nor reason
2416 * to the arrangement of serial ports on a PCI card.
2418 static int __devinit
2419 pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent)
2421 struct serial_private *priv;
2422 const struct pciserial_board *board;
2423 struct pciserial_board tmp;
2426 if (ent->driver_data >= ARRAY_SIZE(pci_boards)) {
2427 printk(KERN_ERR "pci_init_one: invalid driver_data: %ld\n",
2432 board = &pci_boards[ent->driver_data];
2434 rc = pci_enable_device(dev);
2438 if (ent->driver_data == pbn_default) {
2440 * Use a copy of the pci_board entry for this;
2441 * avoid changing entries in the table.
2443 memcpy(&tmp, board, sizeof(struct pciserial_board));
2447 * We matched one of our class entries. Try to
2448 * determine the parameters of this board.
2450 rc = serial_pci_guess_board(dev, &tmp);
2455 * We matched an explicit entry. If we are able to
2456 * detect this boards settings with our heuristic,
2457 * then we no longer need this entry.
2459 memcpy(&tmp, &pci_boards[pbn_default],
2460 sizeof(struct pciserial_board));
2461 rc = serial_pci_guess_board(dev, &tmp);
2462 if (rc == 0 && serial_pci_matches(board, &tmp))
2463 moan_device("Redundant entry in serial pci_table.",
2467 priv = pciserial_init_ports(dev, board);
2468 if (!IS_ERR(priv)) {
2469 pci_set_drvdata(dev, priv);
2476 pci_disable_device(dev);
2480 static void __devexit pciserial_remove_one(struct pci_dev *dev)
2482 struct serial_private *priv = pci_get_drvdata(dev);
2484 pci_set_drvdata(dev, NULL);
2486 pciserial_remove_ports(priv);
2488 pci_disable_device(dev);
2492 static int pciserial_suspend_one(struct pci_dev *dev, pm_message_t state)
2494 struct serial_private *priv = pci_get_drvdata(dev);
2497 pciserial_suspend_ports(priv);
2499 pci_save_state(dev);
2500 pci_set_power_state(dev, pci_choose_state(dev, state));
2504 static int pciserial_resume_one(struct pci_dev *dev)
2507 struct serial_private *priv = pci_get_drvdata(dev);
2509 pci_set_power_state(dev, PCI_D0);
2510 pci_restore_state(dev);
2514 * The device may have been disabled. Re-enable it.
2516 err = pci_enable_device(dev);
2517 /* FIXME: We cannot simply error out here */
2519 printk(KERN_ERR "pciserial: Unable to re-enable ports, trying to continue.\n");
2520 pciserial_resume_ports(priv);
2526 static struct pci_device_id serial_pci_tbl[] = {
2527 /* Advantech use PCI_DEVICE_ID_ADVANTECH_PCI3620 (0x3620) as 'PCI_SUBVENDOR_ID' */
2528 { PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI3620,
2529 PCI_DEVICE_ID_ADVANTECH_PCI3620, 0x0001, 0, 0,
2531 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
2532 PCI_SUBVENDOR_ID_CONNECT_TECH,
2533 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232, 0, 0,
2535 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
2536 PCI_SUBVENDOR_ID_CONNECT_TECH,
2537 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232, 0, 0,
2539 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
2540 PCI_SUBVENDOR_ID_CONNECT_TECH,
2541 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232, 0, 0,
2543 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2544 PCI_SUBVENDOR_ID_CONNECT_TECH,
2545 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232, 0, 0,
2547 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2548 PCI_SUBVENDOR_ID_CONNECT_TECH,
2549 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232, 0, 0,
2551 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2552 PCI_SUBVENDOR_ID_CONNECT_TECH,
2553 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232, 0, 0,
2555 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2556 PCI_SUBVENDOR_ID_CONNECT_TECH,
2557 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485, 0, 0,
2559 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2560 PCI_SUBVENDOR_ID_CONNECT_TECH,
2561 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_4_4, 0, 0,
2563 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2564 PCI_SUBVENDOR_ID_CONNECT_TECH,
2565 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485, 0, 0,
2567 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2568 PCI_SUBVENDOR_ID_CONNECT_TECH,
2569 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485_2_2, 0, 0,
2571 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2572 PCI_SUBVENDOR_ID_CONNECT_TECH,
2573 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_485, 0, 0,
2575 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2576 PCI_SUBVENDOR_ID_CONNECT_TECH,
2577 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_2_6, 0, 0,
2579 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2580 PCI_SUBVENDOR_ID_CONNECT_TECH,
2581 PCI_SUBDEVICE_ID_CONNECT_TECH_BH081101V1, 0, 0,
2583 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2584 PCI_SUBVENDOR_ID_CONNECT_TECH,
2585 PCI_SUBDEVICE_ID_CONNECT_TECH_BH041101V1, 0, 0,
2587 { PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
2588 PCI_SUBVENDOR_ID_CONNECT_TECH,
2589 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_20MHZ, 0, 0,
2591 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
2592 PCI_SUBVENDOR_ID_CONNECT_TECH,
2593 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_2, 0, 0,
2595 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
2596 PCI_SUBVENDOR_ID_CONNECT_TECH,
2597 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_4, 0, 0,
2599 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
2600 PCI_VENDOR_ID_AFAVLAB,
2601 PCI_SUBDEVICE_ID_AFAVLAB_P061, 0, 0,
2603 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152,
2604 PCI_SUBVENDOR_ID_CONNECT_TECH,
2605 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_232, 0, 0,
2606 pbn_b0_2_1843200_200 },
2607 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C154,
2608 PCI_SUBVENDOR_ID_CONNECT_TECH,
2609 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_232, 0, 0,
2610 pbn_b0_4_1843200_200 },
2611 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C158,
2612 PCI_SUBVENDOR_ID_CONNECT_TECH,
2613 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_232, 0, 0,
2614 pbn_b0_8_1843200_200 },
2615 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152,
2616 PCI_SUBVENDOR_ID_CONNECT_TECH,
2617 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_1_1, 0, 0,
2618 pbn_b0_2_1843200_200 },
2619 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C154,
2620 PCI_SUBVENDOR_ID_CONNECT_TECH,
2621 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_2, 0, 0,
2622 pbn_b0_4_1843200_200 },
2623 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C158,
2624 PCI_SUBVENDOR_ID_CONNECT_TECH,
2625 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_4, 0, 0,
2626 pbn_b0_8_1843200_200 },
2627 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152,
2628 PCI_SUBVENDOR_ID_CONNECT_TECH,
2629 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2, 0, 0,
2630 pbn_b0_2_1843200_200 },
2631 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C154,
2632 PCI_SUBVENDOR_ID_CONNECT_TECH,
2633 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4, 0, 0,
2634 pbn_b0_4_1843200_200 },
2635 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C158,
2636 PCI_SUBVENDOR_ID_CONNECT_TECH,
2637 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8, 0, 0,
2638 pbn_b0_8_1843200_200 },
2639 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152,
2640 PCI_SUBVENDOR_ID_CONNECT_TECH,
2641 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_485, 0, 0,
2642 pbn_b0_2_1843200_200 },
2643 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C154,
2644 PCI_SUBVENDOR_ID_CONNECT_TECH,
2645 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_485, 0, 0,
2646 pbn_b0_4_1843200_200 },
2647 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C158,
2648 PCI_SUBVENDOR_ID_CONNECT_TECH,
2649 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_485, 0, 0,
2650 pbn_b0_8_1843200_200 },
2652 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_U530,
2653 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2654 pbn_b2_bt_1_115200 },
2655 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM2,
2656 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2657 pbn_b2_bt_2_115200 },
2658 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM422,
2659 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2660 pbn_b2_bt_4_115200 },
2661 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM232,
2662 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2663 pbn_b2_bt_2_115200 },
2664 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_COMM4,
2665 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2666 pbn_b2_bt_4_115200 },
2667 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_COMM8,
2668 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2670 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_7803,
2671 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2673 { PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM8,
2674 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2677 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_GTEK_SERIAL2,
2678 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2679 pbn_b2_bt_2_115200 },
2680 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_SPCOM200,
2681 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2682 pbn_b2_bt_2_921600 },
2684 * VScom SPCOM800, from sl@s.pl
2686 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_SPCOM800,
2687 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2689 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_1077,
2690 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2692 /* Unknown card - subdevice 0x1584 */
2693 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2695 PCI_SUBDEVICE_ID_UNKNOWN_0x1584, 0, 0,
2697 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2698 PCI_SUBVENDOR_ID_KEYSPAN,
2699 PCI_SUBDEVICE_ID_KEYSPAN_SX2, 0, 0,
2701 { PCI_VENDOR_ID_PANACOM, PCI_DEVICE_ID_PANACOM_QUADMODEM,
2702 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2704 { PCI_VENDOR_ID_PANACOM, PCI_DEVICE_ID_PANACOM_DUALMODEM,
2705 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2707 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
2708 PCI_VENDOR_ID_ESDGMBH,
2709 PCI_DEVICE_ID_ESDGMBH_CPCIASIO4, 0, 0,
2711 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2712 PCI_SUBVENDOR_ID_CHASE_PCIFAST,
2713 PCI_SUBDEVICE_ID_CHASE_PCIFAST4, 0, 0,
2715 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2716 PCI_SUBVENDOR_ID_CHASE_PCIFAST,
2717 PCI_SUBDEVICE_ID_CHASE_PCIFAST8, 0, 0,
2719 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2720 PCI_SUBVENDOR_ID_CHASE_PCIFAST,
2721 PCI_SUBDEVICE_ID_CHASE_PCIFAST16, 0, 0,
2723 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2724 PCI_SUBVENDOR_ID_CHASE_PCIFAST,
2725 PCI_SUBDEVICE_ID_CHASE_PCIFAST16FMC, 0, 0,
2727 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2728 PCI_SUBVENDOR_ID_CHASE_PCIRAS,
2729 PCI_SUBDEVICE_ID_CHASE_PCIRAS4, 0, 0,
2731 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2732 PCI_SUBVENDOR_ID_CHASE_PCIRAS,
2733 PCI_SUBDEVICE_ID_CHASE_PCIRAS8, 0, 0,
2735 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
2736 PCI_SUBVENDOR_ID_EXSYS,
2737 PCI_SUBDEVICE_ID_EXSYS_4055, 0, 0,
2740 * Megawolf Romulus PCI Serial Card, from Mike Hudson
2743 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_ROMULUS,
2744 0x10b5, 0x106a, 0, 0,
2746 { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSC100,
2747 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2749 { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSC100,
2750 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2752 { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_ESC100D,
2753 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2755 { PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_ESC100M,
2756 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2758 { PCI_VENDOR_ID_SPECIALIX, PCI_DEVICE_ID_OXSEMI_16PCI954,
2759 PCI_VENDOR_ID_SPECIALIX, PCI_SUBDEVICE_ID_SPECIALIX_SPEED4,
2762 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
2763 PCI_SUBVENDOR_ID_SIIG, PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL,
2768 * The below card is a little controversial since it is the
2769 * subject of a PCI vendor/device ID clash. (See
2770 * www.ussg.iu.edu/hypermail/linux/kernel/0303.1/0516.html).
2771 * For now just used the hex ID 0x950a.
2773 { PCI_VENDOR_ID_OXSEMI, 0x950a,
2774 PCI_SUBVENDOR_ID_SIIG, PCI_SUBDEVICE_ID_SIIG_DUAL_SERIAL, 0, 0,
2776 { PCI_VENDOR_ID_OXSEMI, 0x950a,
2777 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2779 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
2780 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2782 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI952,
2783 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2784 pbn_b0_bt_2_921600 },
2787 * Oxford Semiconductor Inc. Tornado PCI express device range.
2789 { PCI_VENDOR_ID_OXSEMI, 0xc101, /* OXPCIe952 1 Legacy UART */
2790 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2792 { PCI_VENDOR_ID_OXSEMI, 0xc105, /* OXPCIe952 1 Legacy UART */
2793 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2795 { PCI_VENDOR_ID_OXSEMI, 0xc11b, /* OXPCIe952 1 Native UART */
2796 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2797 pbn_oxsemi_1_4000000 },
2798 { PCI_VENDOR_ID_OXSEMI, 0xc11f, /* OXPCIe952 1 Native UART */
2799 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2800 pbn_oxsemi_1_4000000 },
2801 { PCI_VENDOR_ID_OXSEMI, 0xc120, /* OXPCIe952 1 Legacy UART */
2802 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2804 { PCI_VENDOR_ID_OXSEMI, 0xc124, /* OXPCIe952 1 Legacy UART */
2805 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2807 { PCI_VENDOR_ID_OXSEMI, 0xc138, /* OXPCIe952 1 Native UART */
2808 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2809 pbn_oxsemi_1_4000000 },
2810 { PCI_VENDOR_ID_OXSEMI, 0xc13d, /* OXPCIe952 1 Native UART */
2811 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2812 pbn_oxsemi_1_4000000 },
2813 { PCI_VENDOR_ID_OXSEMI, 0xc140, /* OXPCIe952 1 Legacy UART */
2814 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2816 { PCI_VENDOR_ID_OXSEMI, 0xc141, /* OXPCIe952 1 Legacy UART */
2817 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2819 { PCI_VENDOR_ID_OXSEMI, 0xc144, /* OXPCIe952 1 Legacy UART */
2820 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2822 { PCI_VENDOR_ID_OXSEMI, 0xc145, /* OXPCIe952 1 Legacy UART */
2823 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2825 { PCI_VENDOR_ID_OXSEMI, 0xc158, /* OXPCIe952 2 Native UART */
2826 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2827 pbn_oxsemi_2_4000000 },
2828 { PCI_VENDOR_ID_OXSEMI, 0xc15d, /* OXPCIe952 2 Native UART */
2829 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2830 pbn_oxsemi_2_4000000 },
2831 { PCI_VENDOR_ID_OXSEMI, 0xc208, /* OXPCIe954 4 Native UART */
2832 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2833 pbn_oxsemi_4_4000000 },
2834 { PCI_VENDOR_ID_OXSEMI, 0xc20d, /* OXPCIe954 4 Native UART */
2835 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2836 pbn_oxsemi_4_4000000 },
2837 { PCI_VENDOR_ID_OXSEMI, 0xc308, /* OXPCIe958 8 Native UART */
2838 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2839 pbn_oxsemi_8_4000000 },
2840 { PCI_VENDOR_ID_OXSEMI, 0xc30d, /* OXPCIe958 8 Native UART */
2841 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2842 pbn_oxsemi_8_4000000 },
2843 { PCI_VENDOR_ID_OXSEMI, 0xc40b, /* OXPCIe200 1 Native UART */
2844 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2845 pbn_oxsemi_1_4000000 },
2846 { PCI_VENDOR_ID_OXSEMI, 0xc40f, /* OXPCIe200 1 Native UART */
2847 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2848 pbn_oxsemi_1_4000000 },
2849 { PCI_VENDOR_ID_OXSEMI, 0xc41b, /* OXPCIe200 1 Native UART */
2850 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2851 pbn_oxsemi_1_4000000 },
2852 { PCI_VENDOR_ID_OXSEMI, 0xc41f, /* OXPCIe200 1 Native UART */
2853 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2854 pbn_oxsemi_1_4000000 },
2855 { PCI_VENDOR_ID_OXSEMI, 0xc42b, /* OXPCIe200 1 Native UART */
2856 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2857 pbn_oxsemi_1_4000000 },
2858 { PCI_VENDOR_ID_OXSEMI, 0xc42f, /* OXPCIe200 1 Native UART */
2859 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2860 pbn_oxsemi_1_4000000 },
2861 { PCI_VENDOR_ID_OXSEMI, 0xc43b, /* OXPCIe200 1 Native UART */
2862 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2863 pbn_oxsemi_1_4000000 },
2864 { PCI_VENDOR_ID_OXSEMI, 0xc43f, /* OXPCIe200 1 Native UART */
2865 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2866 pbn_oxsemi_1_4000000 },
2867 { PCI_VENDOR_ID_OXSEMI, 0xc44b, /* OXPCIe200 1 Native UART */
2868 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2869 pbn_oxsemi_1_4000000 },
2870 { PCI_VENDOR_ID_OXSEMI, 0xc44f, /* OXPCIe200 1 Native UART */
2871 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2872 pbn_oxsemi_1_4000000 },
2873 { PCI_VENDOR_ID_OXSEMI, 0xc45b, /* OXPCIe200 1 Native UART */
2874 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2875 pbn_oxsemi_1_4000000 },
2876 { PCI_VENDOR_ID_OXSEMI, 0xc45f, /* OXPCIe200 1 Native UART */
2877 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2878 pbn_oxsemi_1_4000000 },
2879 { PCI_VENDOR_ID_OXSEMI, 0xc46b, /* OXPCIe200 1 Native UART */
2880 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2881 pbn_oxsemi_1_4000000 },
2882 { PCI_VENDOR_ID_OXSEMI, 0xc46f, /* OXPCIe200 1 Native UART */
2883 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2884 pbn_oxsemi_1_4000000 },
2885 { PCI_VENDOR_ID_OXSEMI, 0xc47b, /* OXPCIe200 1 Native UART */
2886 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2887 pbn_oxsemi_1_4000000 },
2888 { PCI_VENDOR_ID_OXSEMI, 0xc47f, /* OXPCIe200 1 Native UART */
2889 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2890 pbn_oxsemi_1_4000000 },
2891 { PCI_VENDOR_ID_OXSEMI, 0xc48b, /* OXPCIe200 1 Native UART */
2892 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2893 pbn_oxsemi_1_4000000 },
2894 { PCI_VENDOR_ID_OXSEMI, 0xc48f, /* OXPCIe200 1 Native UART */
2895 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2896 pbn_oxsemi_1_4000000 },
2897 { PCI_VENDOR_ID_OXSEMI, 0xc49b, /* OXPCIe200 1 Native UART */
2898 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2899 pbn_oxsemi_1_4000000 },
2900 { PCI_VENDOR_ID_OXSEMI, 0xc49f, /* OXPCIe200 1 Native UART */
2901 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2902 pbn_oxsemi_1_4000000 },
2903 { PCI_VENDOR_ID_OXSEMI, 0xc4ab, /* OXPCIe200 1 Native UART */
2904 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2905 pbn_oxsemi_1_4000000 },
2906 { PCI_VENDOR_ID_OXSEMI, 0xc4af, /* OXPCIe200 1 Native UART */
2907 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2908 pbn_oxsemi_1_4000000 },
2909 { PCI_VENDOR_ID_OXSEMI, 0xc4bb, /* OXPCIe200 1 Native UART */
2910 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2911 pbn_oxsemi_1_4000000 },
2912 { PCI_VENDOR_ID_OXSEMI, 0xc4bf, /* OXPCIe200 1 Native UART */
2913 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2914 pbn_oxsemi_1_4000000 },
2915 { PCI_VENDOR_ID_OXSEMI, 0xc4cb, /* OXPCIe200 1 Native UART */
2916 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2917 pbn_oxsemi_1_4000000 },
2918 { PCI_VENDOR_ID_OXSEMI, 0xc4cf, /* OXPCIe200 1 Native UART */
2919 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2920 pbn_oxsemi_1_4000000 },
2922 * Mainpine Inc. IQ Express "Rev3" utilizing OxSemi Tornado
2924 { PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 1 Port V.34 Super-G3 Fax */
2925 PCI_VENDOR_ID_MAINPINE, 0x4001, 0, 0,
2926 pbn_oxsemi_1_4000000 },
2927 { PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 2 Port V.34 Super-G3 Fax */
2928 PCI_VENDOR_ID_MAINPINE, 0x4002, 0, 0,
2929 pbn_oxsemi_2_4000000 },
2930 { PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 4 Port V.34 Super-G3 Fax */
2931 PCI_VENDOR_ID_MAINPINE, 0x4004, 0, 0,
2932 pbn_oxsemi_4_4000000 },
2933 { PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 8 Port V.34 Super-G3 Fax */
2934 PCI_VENDOR_ID_MAINPINE, 0x4008, 0, 0,
2935 pbn_oxsemi_8_4000000 },
2937 * SBS Technologies, Inc. P-Octal and PMC-OCTPRO cards,
2938 * from skokodyn@yahoo.com
2940 { PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
2941 PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_OCTPRO232, 0, 0,
2943 { PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
2944 PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_OCTPRO422, 0, 0,
2946 { PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
2947 PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_POCTAL232, 0, 0,
2949 { PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
2950 PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_POCTAL422, 0, 0,
2954 * Digitan DS560-558, from jimd@esoft.com
2956 { PCI_VENDOR_ID_ATT, PCI_DEVICE_ID_ATT_VENUS_MODEM,
2957 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2961 * Titan Electronic cards
2962 * The 400L and 800L have a custom setup quirk.
2964 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_100,
2965 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2967 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200,
2968 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2970 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400,
2971 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2973 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800B,
2974 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2976 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_100L,
2977 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2979 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200L,
2980 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2981 pbn_b1_bt_2_921600 },
2982 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400L,
2983 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2984 pbn_b0_bt_4_921600 },
2985 { PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800L,
2986 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2987 pbn_b0_bt_8_921600 },
2989 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_10x_550,
2990 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2992 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_10x_650,
2993 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2995 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_10x_850,
2996 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
2998 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_550,
2999 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3000 pbn_b2_bt_2_921600 },
3001 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_650,
3002 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3003 pbn_b2_bt_2_921600 },
3004 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_850,
3005 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3006 pbn_b2_bt_2_921600 },
3007 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_550,
3008 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3009 pbn_b2_bt_4_921600 },
3010 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_650,
3011 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3012 pbn_b2_bt_4_921600 },
3013 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_850,
3014 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3015 pbn_b2_bt_4_921600 },
3016 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_20x_550,
3017 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3019 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_20x_650,
3020 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3022 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_20x_850,
3023 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3025 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_550,
3026 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3027 pbn_b0_bt_2_921600 },
3028 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_650,
3029 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3030 pbn_b0_bt_2_921600 },
3031 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_850,
3032 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3033 pbn_b0_bt_2_921600 },
3034 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_550,
3035 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3036 pbn_b0_bt_4_921600 },
3037 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_650,
3038 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3039 pbn_b0_bt_4_921600 },
3040 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_850,
3041 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3042 pbn_b0_bt_4_921600 },
3043 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_8S_20x_550,
3044 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3045 pbn_b0_bt_8_921600 },
3046 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_8S_20x_650,
3047 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3048 pbn_b0_bt_8_921600 },
3049 { PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_8S_20x_850,
3050 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3051 pbn_b0_bt_8_921600 },
3054 * Computone devices submitted by Doug McNash dmcnash@computone.com
3056 { PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_PG,
3057 PCI_SUBVENDOR_ID_COMPUTONE, PCI_SUBDEVICE_ID_COMPUTONE_PG4,
3058 0, 0, pbn_computone_4 },
3059 { PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_PG,
3060 PCI_SUBVENDOR_ID_COMPUTONE, PCI_SUBDEVICE_ID_COMPUTONE_PG8,
3061 0, 0, pbn_computone_8 },
3062 { PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_PG,
3063 PCI_SUBVENDOR_ID_COMPUTONE, PCI_SUBDEVICE_ID_COMPUTONE_PG6,
3064 0, 0, pbn_computone_6 },
3066 { PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI95N,
3067 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3069 { PCI_VENDOR_ID_TIMEDIA, PCI_DEVICE_ID_TIMEDIA_1889,
3070 PCI_VENDOR_ID_TIMEDIA, PCI_ANY_ID, 0, 0,
3071 pbn_b0_bt_1_921600 },
3074 * AFAVLAB serial card, from Harald Welte <laforge@gnumonks.org>
3076 { PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_P028,
3077 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3078 pbn_b0_bt_8_115200 },
3079 { PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_P030,
3080 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3081 pbn_b0_bt_8_115200 },
3083 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_DSERIAL,
3084 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3085 pbn_b0_bt_2_115200 },
3086 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUATRO_A,
3087 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3088 pbn_b0_bt_2_115200 },
3089 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUATRO_B,
3090 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3091 pbn_b0_bt_2_115200 },
3092 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_OCTO_A,
3093 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3094 pbn_b0_bt_4_460800 },
3095 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_OCTO_B,
3096 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3097 pbn_b0_bt_4_460800 },
3098 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_PORT_PLUS,
3099 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3100 pbn_b0_bt_2_460800 },
3101 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUAD_A,
3102 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3103 pbn_b0_bt_2_460800 },
3104 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUAD_B,
3105 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3106 pbn_b0_bt_2_460800 },
3107 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_SSERIAL,
3108 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3109 pbn_b0_bt_1_115200 },
3110 { PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_PORT_650,
3111 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3112 pbn_b0_bt_1_460800 },
3115 * Korenix Jetcard F0/F1 cards (JC1204, JC1208, JC1404, JC1408).
3116 * Cards are identified by their subsystem vendor IDs, which
3117 * (in hex) match the model number.
3119 * Note that JC140x are RS422/485 cards which require ox950
3120 * ACR = 0x10, and as such are not currently fully supported.
3122 { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
3123 0x1204, 0x0004, 0, 0,
3125 { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
3126 0x1208, 0x0004, 0, 0,
3128 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
3129 0x1402, 0x0002, 0, 0,
3130 pbn_b0_2_921600 }, */
3131 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
3132 0x1404, 0x0004, 0, 0,
3133 pbn_b0_4_921600 }, */
3134 { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF1,
3135 0x1208, 0x0004, 0, 0,
3139 * Dell Remote Access Card 4 - Tim_T_Murphy@Dell.com
3141 { PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_DELL_RAC4,
3142 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3146 * Dell Remote Access Card III - Tim_T_Murphy@Dell.com
3148 { PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_DELL_RACIII,
3149 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3153 * RAStel 2 port modem, gerg@moreton.com.au
3155 { PCI_VENDOR_ID_MORETON, PCI_DEVICE_ID_RASTEL_2PORT,
3156 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3157 pbn_b2_bt_2_115200 },
3160 * EKF addition for i960 Boards form EKF with serial port
3162 { PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80960_RP,
3163 0xE4BF, PCI_ANY_ID, 0, 0,
3167 * Xircom Cardbus/Ethernet combos
3169 { PCI_VENDOR_ID_XIRCOM, PCI_DEVICE_ID_XIRCOM_X3201_MDM,
3170 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3173 * Xircom RBM56G cardbus modem - Dirk Arnold (temp entry)
3175 { PCI_VENDOR_ID_XIRCOM, PCI_DEVICE_ID_XIRCOM_RBM56G,
3176 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3180 * Untested PCI modems, sent in from various folks...
3184 * Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de>
3186 { PCI_VENDOR_ID_ROCKWELL, 0x1004,
3187 0x1048, 0x1500, 0, 0,
3190 { PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3,
3197 { PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA,
3198 PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_RMP3, 0, 0,
3200 { PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA,
3201 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3203 { PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX,
3204 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3207 { PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM2,
3208 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3210 { PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM4,
3211 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3213 { PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM8,
3214 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3218 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
3220 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C152,
3221 PCI_ANY_ID, PCI_ANY_ID,
3223 0, pbn_exar_XR17C152 },
3224 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C154,
3225 PCI_ANY_ID, PCI_ANY_ID,
3227 0, pbn_exar_XR17C154 },
3228 { PCI_VENDOR_ID_EXAR, PCI_DEVICE_ID_EXAR_XR17C158,
3229 PCI_ANY_ID, PCI_ANY_ID,
3231 0, pbn_exar_XR17C158 },
3234 * Topic TP560 Data/Fax/Voice 56k modem (reported by Evan Clarke)
3236 { PCI_VENDOR_ID_TOPIC, PCI_DEVICE_ID_TOPIC_TP560,
3237 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3242 { PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8872,
3243 PCI_ANY_ID, PCI_ANY_ID,
3245 pbn_b1_bt_1_115200 },
3250 { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_IS200,
3251 PCI_ANY_ID, PCI_ANY_ID, 0, 0, /* 135a.0811 */
3256 { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_IS400,
3257 PCI_ANY_ID, PCI_ANY_ID, 0, 0, /* 135a.0dc0 */
3260 * Perle PCI-RAS cards
3262 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
3263 PCI_SUBVENDOR_ID_PERLE, PCI_SUBDEVICE_ID_PCI_RAS4,
3264 0, 0, pbn_b2_4_921600 },
3265 { PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
3266 PCI_SUBVENDOR_ID_PERLE, PCI_SUBDEVICE_ID_PCI_RAS8,
3267 0, 0, pbn_b2_8_921600 },
3270 * Mainpine series cards: Fairly standard layout but fools
3271 * parts of the autodetect in some cases and uses otherwise
3272 * unmatched communications subclasses in the PCI Express case
3275 { /* RockForceDUO */
3276 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3277 PCI_VENDOR_ID_MAINPINE, 0x0200,
3278 0, 0, pbn_b0_2_115200 },
3279 { /* RockForceQUATRO */
3280 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3281 PCI_VENDOR_ID_MAINPINE, 0x0300,
3282 0, 0, pbn_b0_4_115200 },
3283 { /* RockForceDUO+ */
3284 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3285 PCI_VENDOR_ID_MAINPINE, 0x0400,
3286 0, 0, pbn_b0_2_115200 },
3287 { /* RockForceQUATRO+ */
3288 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3289 PCI_VENDOR_ID_MAINPINE, 0x0500,
3290 0, 0, pbn_b0_4_115200 },
3292 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3293 PCI_VENDOR_ID_MAINPINE, 0x0600,
3294 0, 0, pbn_b0_2_115200 },
3296 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3297 PCI_VENDOR_ID_MAINPINE, 0x0700,
3298 0, 0, pbn_b0_4_115200 },
3299 { /* RockForceOCTO+ */
3300 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3301 PCI_VENDOR_ID_MAINPINE, 0x0800,
3302 0, 0, pbn_b0_8_115200 },
3303 { /* RockForceDUO+ */
3304 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3305 PCI_VENDOR_ID_MAINPINE, 0x0C00,
3306 0, 0, pbn_b0_2_115200 },
3307 { /* RockForceQUARTRO+ */
3308 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3309 PCI_VENDOR_ID_MAINPINE, 0x0D00,
3310 0, 0, pbn_b0_4_115200 },
3311 { /* RockForceOCTO+ */
3312 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3313 PCI_VENDOR_ID_MAINPINE, 0x1D00,
3314 0, 0, pbn_b0_8_115200 },
3316 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3317 PCI_VENDOR_ID_MAINPINE, 0x2000,
3318 0, 0, pbn_b0_1_115200 },
3320 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3321 PCI_VENDOR_ID_MAINPINE, 0x2100,
3322 0, 0, pbn_b0_1_115200 },
3324 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3325 PCI_VENDOR_ID_MAINPINE, 0x2200,
3326 0, 0, pbn_b0_2_115200 },
3328 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3329 PCI_VENDOR_ID_MAINPINE, 0x2300,
3330 0, 0, pbn_b0_2_115200 },
3332 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3333 PCI_VENDOR_ID_MAINPINE, 0x2400,
3334 0, 0, pbn_b0_4_115200 },
3336 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3337 PCI_VENDOR_ID_MAINPINE, 0x2500,
3338 0, 0, pbn_b0_4_115200 },
3340 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3341 PCI_VENDOR_ID_MAINPINE, 0x2600,
3342 0, 0, pbn_b0_8_115200 },
3344 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3345 PCI_VENDOR_ID_MAINPINE, 0x2700,
3346 0, 0, pbn_b0_8_115200 },
3347 { /* IQ Express D1 */
3348 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3349 PCI_VENDOR_ID_MAINPINE, 0x3000,
3350 0, 0, pbn_b0_1_115200 },
3351 { /* IQ Express F1 */
3352 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3353 PCI_VENDOR_ID_MAINPINE, 0x3100,
3354 0, 0, pbn_b0_1_115200 },
3355 { /* IQ Express D2 */
3356 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3357 PCI_VENDOR_ID_MAINPINE, 0x3200,
3358 0, 0, pbn_b0_2_115200 },
3359 { /* IQ Express F2 */
3360 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3361 PCI_VENDOR_ID_MAINPINE, 0x3300,
3362 0, 0, pbn_b0_2_115200 },
3363 { /* IQ Express D4 */
3364 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3365 PCI_VENDOR_ID_MAINPINE, 0x3400,
3366 0, 0, pbn_b0_4_115200 },
3367 { /* IQ Express F4 */
3368 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3369 PCI_VENDOR_ID_MAINPINE, 0x3500,
3370 0, 0, pbn_b0_4_115200 },
3371 { /* IQ Express D8 */
3372 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3373 PCI_VENDOR_ID_MAINPINE, 0x3C00,
3374 0, 0, pbn_b0_8_115200 },
3375 { /* IQ Express F8 */
3376 PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
3377 PCI_VENDOR_ID_MAINPINE, 0x3D00,
3378 0, 0, pbn_b0_8_115200 },
3382 * PA Semi PA6T-1682M on-chip UART
3384 { PCI_VENDOR_ID_PASEMI, 0xa004,
3385 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3389 * National Instruments
3391 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI23216,
3392 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3394 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2328,
3395 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3397 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2324,
3398 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3399 pbn_b1_bt_4_115200 },
3400 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2322,
3401 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3402 pbn_b1_bt_2_115200 },
3403 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2324I,
3404 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3405 pbn_b1_bt_4_115200 },
3406 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2322I,
3407 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3408 pbn_b1_bt_2_115200 },
3409 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_23216,
3410 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3412 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_2328,
3413 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3415 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_2324,
3416 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3417 pbn_b1_bt_4_115200 },
3418 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_2322,
3419 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3420 pbn_b1_bt_2_115200 },
3421 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8422_2324,
3422 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3423 pbn_b1_bt_4_115200 },
3424 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8422_2322,
3425 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3426 pbn_b1_bt_2_115200 },
3427 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_2322,
3428 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3430 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_2322,
3431 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3433 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_2324,
3434 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3436 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_2324,
3437 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3439 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_2328,
3440 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3442 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_2328,
3443 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3445 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_23216,
3446 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3448 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_23216,
3449 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3451 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8432_2322,
3452 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3454 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8432_2322,
3455 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3457 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8432_2324,
3458 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3460 { PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8432_2324,
3461 PCI_ANY_ID, PCI_ANY_ID, 0, 0,
3465 * ADDI-DATA GmbH communication cards <info@addi-data.com>
3467 { PCI_VENDOR_ID_ADDIDATA,
3468 PCI_DEVICE_ID_ADDIDATA_APCI7500,
3475 { PCI_VENDOR_ID_ADDIDATA,
3476 PCI_DEVICE_ID_ADDIDATA_APCI7420,
3483 { PCI_VENDOR_ID_ADDIDATA,
3484 PCI_DEVICE_ID_ADDIDATA_APCI7300,
3491 { PCI_VENDOR_ID_ADDIDATA_OLD,
3492 PCI_DEVICE_ID_ADDIDATA_APCI7800,
3499 { PCI_VENDOR_ID_ADDIDATA,
3500 PCI_DEVICE_ID_ADDIDATA_APCI7500_2,
3507 { PCI_VENDOR_ID_ADDIDATA,
3508 PCI_DEVICE_ID_ADDIDATA_APCI7420_2,
3515 { PCI_VENDOR_ID_ADDIDATA,
3516 PCI_DEVICE_ID_ADDIDATA_APCI7300_2,
3523 { PCI_VENDOR_ID_ADDIDATA,
3524 PCI_DEVICE_ID_ADDIDATA_APCI7500_3,
3531 { PCI_VENDOR_ID_ADDIDATA,
3532 PCI_DEVICE_ID_ADDIDATA_APCI7420_3,
3539 { PCI_VENDOR_ID_ADDIDATA,
3540 PCI_DEVICE_ID_ADDIDATA_APCI7300_3,
3547 { PCI_VENDOR_ID_ADDIDATA,
3548 PCI_DEVICE_ID_ADDIDATA_APCI7800_3,
3555 { PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9835,
3556 PCI_VENDOR_ID_IBM, 0x0299,
3557 0, 0, pbn_b0_bt_2_115200 },
3560 * These entries match devices with class COMMUNICATION_SERIAL,
3561 * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
3563 { PCI_ANY_ID, PCI_ANY_ID,
3564 PCI_ANY_ID, PCI_ANY_ID,
3565 PCI_CLASS_COMMUNICATION_SERIAL << 8,
3566 0xffff00, pbn_default },
3567 { PCI_ANY_ID, PCI_ANY_ID,
3568 PCI_ANY_ID, PCI_ANY_ID,
3569 PCI_CLASS_COMMUNICATION_MODEM << 8,
3570 0xffff00, pbn_default },
3571 { PCI_ANY_ID, PCI_ANY_ID,
3572 PCI_ANY_ID, PCI_ANY_ID,
3573 PCI_CLASS_COMMUNICATION_MULTISERIAL << 8,
3574 0xffff00, pbn_default },
3578 static struct pci_driver serial_pci_driver = {
3580 .probe = pciserial_init_one,
3581 .remove = __devexit_p(pciserial_remove_one),
3583 .suspend = pciserial_suspend_one,
3584 .resume = pciserial_resume_one,
3586 .id_table = serial_pci_tbl,
3589 static int __init serial8250_pci_init(void)
3591 return pci_register_driver(&serial_pci_driver);
3594 static void __exit serial8250_pci_exit(void)
3596 pci_unregister_driver(&serial_pci_driver);
3599 module_init(serial8250_pci_init);
3600 module_exit(serial8250_pci_exit);
3602 MODULE_LICENSE("GPL");
3603 MODULE_DESCRIPTION("Generic 8250/16x50 PCI serial probe module");
3604 MODULE_DEVICE_TABLE(pci, serial_pci_tbl);