2 * Probe module for 8250/16550-type PCI serial ports.
4 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
6 * Copyright (C) 2001 Russell King, All Rights Reserved.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License.
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/pci.h>
15 #include <linux/string.h>
16 #include <linux/kernel.h>
17 #include <linux/slab.h>
18 #include <linux/delay.h>
19 #include <linux/tty.h>
20 #include <linux/serial_core.h>
21 #include <linux/8250_pci.h>
22 #include <linux/bitops.h>
24 #include <asm/byteorder.h>
29 #undef SERIAL_DEBUG_PCI
32 * init function returns:
33 * > 0 - number of ports
34 * = 0 - use board->num_ports
37 struct pci_serial_quirk
{
42 int (*probe
)(struct pci_dev
*dev
);
43 int (*init
)(struct pci_dev
*dev
);
44 int (*setup
)(struct serial_private
*,
45 const struct pciserial_board
*,
46 struct uart_port
*, int);
47 void (*exit
)(struct pci_dev
*dev
);
50 #define PCI_NUM_BAR_RESOURCES 6
52 struct serial_private
{
55 void __iomem
*remapped_bar
[PCI_NUM_BAR_RESOURCES
];
56 struct pci_serial_quirk
*quirk
;
60 static int pci_default_setup(struct serial_private
*,
61 const struct pciserial_board
*, struct uart_port
*, int);
63 static void moan_device(const char *str
, struct pci_dev
*dev
)
67 "Please send the output of lspci -vv, this\n"
68 "message (0x%04x,0x%04x,0x%04x,0x%04x), the\n"
69 "manufacturer and name of serial board or\n"
70 "modem board to rmk+serial@arm.linux.org.uk.\n",
71 pci_name(dev
), str
, dev
->vendor
, dev
->device
,
72 dev
->subsystem_vendor
, dev
->subsystem_device
);
76 setup_port(struct serial_private
*priv
, struct uart_port
*port
,
77 int bar
, int offset
, int regshift
)
79 struct pci_dev
*dev
= priv
->dev
;
80 unsigned long base
, len
;
82 if (bar
>= PCI_NUM_BAR_RESOURCES
)
85 base
= pci_resource_start(dev
, bar
);
87 if (pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) {
88 len
= pci_resource_len(dev
, bar
);
90 if (!priv
->remapped_bar
[bar
])
91 priv
->remapped_bar
[bar
] = ioremap_nocache(base
, len
);
92 if (!priv
->remapped_bar
[bar
])
95 port
->iotype
= UPIO_MEM
;
97 port
->mapbase
= base
+ offset
;
98 port
->membase
= priv
->remapped_bar
[bar
] + offset
;
99 port
->regshift
= regshift
;
101 port
->iotype
= UPIO_PORT
;
102 port
->iobase
= base
+ offset
;
104 port
->membase
= NULL
;
111 * ADDI-DATA GmbH communication cards <info@addi-data.com>
113 static int addidata_apci7800_setup(struct serial_private
*priv
,
114 const struct pciserial_board
*board
,
115 struct uart_port
*port
, int idx
)
117 unsigned int bar
= 0, offset
= board
->first_offset
;
118 bar
= FL_GET_BASE(board
->flags
);
121 offset
+= idx
* board
->uart_offset
;
122 } else if ((idx
>= 2) && (idx
< 4)) {
124 offset
+= ((idx
- 2) * board
->uart_offset
);
125 } else if ((idx
>= 4) && (idx
< 6)) {
127 offset
+= ((idx
- 4) * board
->uart_offset
);
128 } else if (idx
>= 6) {
130 offset
+= ((idx
- 6) * board
->uart_offset
);
133 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
137 * AFAVLAB uses a different mixture of BARs and offsets
138 * Not that ugly ;) -- HW
141 afavlab_setup(struct serial_private
*priv
, const struct pciserial_board
*board
,
142 struct uart_port
*port
, int idx
)
144 unsigned int bar
, offset
= board
->first_offset
;
146 bar
= FL_GET_BASE(board
->flags
);
151 offset
+= (idx
- 4) * board
->uart_offset
;
154 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
158 * HP's Remote Management Console. The Diva chip came in several
159 * different versions. N-class, L2000 and A500 have two Diva chips, each
160 * with 3 UARTs (the third UART on the second chip is unused). Superdome
161 * and Keystone have one Diva chip with 3 UARTs. Some later machines have
162 * one Diva chip, but it has been expanded to 5 UARTs.
164 static int pci_hp_diva_init(struct pci_dev
*dev
)
168 switch (dev
->subsystem_device
) {
169 case PCI_DEVICE_ID_HP_DIVA_TOSCA1
:
170 case PCI_DEVICE_ID_HP_DIVA_HALFDOME
:
171 case PCI_DEVICE_ID_HP_DIVA_KEYSTONE
:
172 case PCI_DEVICE_ID_HP_DIVA_EVEREST
:
175 case PCI_DEVICE_ID_HP_DIVA_TOSCA2
:
178 case PCI_DEVICE_ID_HP_DIVA_MAESTRO
:
181 case PCI_DEVICE_ID_HP_DIVA_POWERBAR
:
182 case PCI_DEVICE_ID_HP_DIVA_HURRICANE
:
191 * HP's Diva chip puts the 4th/5th serial port further out, and
192 * some serial ports are supposed to be hidden on certain models.
195 pci_hp_diva_setup(struct serial_private
*priv
,
196 const struct pciserial_board
*board
,
197 struct uart_port
*port
, int idx
)
199 unsigned int offset
= board
->first_offset
;
200 unsigned int bar
= FL_GET_BASE(board
->flags
);
202 switch (priv
->dev
->subsystem_device
) {
203 case PCI_DEVICE_ID_HP_DIVA_MAESTRO
:
207 case PCI_DEVICE_ID_HP_DIVA_EVEREST
:
217 offset
+= idx
* board
->uart_offset
;
219 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
223 * Added for EKF Intel i960 serial boards
225 static int pci_inteli960ni_init(struct pci_dev
*dev
)
227 unsigned long oldval
;
229 if (!(dev
->subsystem_device
& 0x1000))
232 /* is firmware started? */
233 pci_read_config_dword(dev
, 0x44, (void *)&oldval
);
234 if (oldval
== 0x00001000L
) { /* RESET value */
235 printk(KERN_DEBUG
"Local i960 firmware missing");
242 * Some PCI serial cards using the PLX 9050 PCI interface chip require
243 * that the card interrupt be explicitly enabled or disabled. This
244 * seems to be mainly needed on card using the PLX which also use I/O
247 static int pci_plx9050_init(struct pci_dev
*dev
)
252 if ((pci_resource_flags(dev
, 0) & IORESOURCE_MEM
) == 0) {
253 moan_device("no memory in bar 0", dev
);
258 if (dev
->vendor
== PCI_VENDOR_ID_PANACOM
||
259 dev
->subsystem_vendor
== PCI_SUBVENDOR_ID_EXSYS
)
262 if ((dev
->vendor
== PCI_VENDOR_ID_PLX
) &&
263 (dev
->device
== PCI_DEVICE_ID_PLX_ROMULUS
))
265 * As the megawolf cards have the int pins active
266 * high, and have 2 UART chips, both ints must be
267 * enabled on the 9050. Also, the UARTS are set in
268 * 16450 mode by default, so we have to enable the
269 * 16C950 'enhanced' mode so that we can use the
274 * enable/disable interrupts
276 p
= ioremap_nocache(pci_resource_start(dev
, 0), 0x80);
279 writel(irq_config
, p
+ 0x4c);
282 * Read the register back to ensure that it took effect.
290 static void __devexit
pci_plx9050_exit(struct pci_dev
*dev
)
294 if ((pci_resource_flags(dev
, 0) & IORESOURCE_MEM
) == 0)
300 p
= ioremap_nocache(pci_resource_start(dev
, 0), 0x80);
305 * Read the register back to ensure that it took effect.
312 #define NI8420_INT_ENABLE_REG 0x38
313 #define NI8420_INT_ENABLE_BIT 0x2000
315 static void __devexit
pci_ni8420_exit(struct pci_dev
*dev
)
318 unsigned long base
, len
;
319 unsigned int bar
= 0;
321 if ((pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) == 0) {
322 moan_device("no memory in bar", dev
);
326 base
= pci_resource_start(dev
, bar
);
327 len
= pci_resource_len(dev
, bar
);
328 p
= ioremap_nocache(base
, len
);
332 /* Disable the CPU Interrupt */
333 writel(readl(p
+ NI8420_INT_ENABLE_REG
) & ~(NI8420_INT_ENABLE_BIT
),
334 p
+ NI8420_INT_ENABLE_REG
);
340 #define MITE_IOWBSR1 0xc4
341 #define MITE_IOWCR1 0xf4
342 #define MITE_LCIMR1 0x08
343 #define MITE_LCIMR2 0x10
345 #define MITE_LCIMR2_CLR_CPU_IE (1 << 30)
347 static void __devexit
pci_ni8430_exit(struct pci_dev
*dev
)
350 unsigned long base
, len
;
351 unsigned int bar
= 0;
353 if ((pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) == 0) {
354 moan_device("no memory in bar", dev
);
358 base
= pci_resource_start(dev
, bar
);
359 len
= pci_resource_len(dev
, bar
);
360 p
= ioremap_nocache(base
, len
);
364 /* Disable the CPU Interrupt */
365 writel(MITE_LCIMR2_CLR_CPU_IE
, p
+ MITE_LCIMR2
);
369 /* SBS Technologies Inc. PMC-OCTPRO and P-OCTAL cards */
371 sbs_setup(struct serial_private
*priv
, const struct pciserial_board
*board
,
372 struct uart_port
*port
, int idx
)
374 unsigned int bar
, offset
= board
->first_offset
;
379 /* first four channels map to 0, 0x100, 0x200, 0x300 */
380 offset
+= idx
* board
->uart_offset
;
381 } else if (idx
< 8) {
382 /* last four channels map to 0x1000, 0x1100, 0x1200, 0x1300 */
383 offset
+= idx
* board
->uart_offset
+ 0xC00;
384 } else /* we have only 8 ports on PMC-OCTALPRO */
387 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
391 * This does initialization for PMC OCTALPRO cards:
392 * maps the device memory, resets the UARTs (needed, bc
393 * if the module is removed and inserted again, the card
394 * is in the sleep mode) and enables global interrupt.
397 /* global control register offset for SBS PMC-OctalPro */
398 #define OCT_REG_CR_OFF 0x500
400 static int sbs_init(struct pci_dev
*dev
)
404 p
= pci_ioremap_bar(dev
, 0);
408 /* Set bit-4 Control Register (UART RESET) in to reset the uarts */
409 writeb(0x10, p
+ OCT_REG_CR_OFF
);
411 writeb(0x0, p
+ OCT_REG_CR_OFF
);
413 /* Set bit-2 (INTENABLE) of Control Register */
414 writeb(0x4, p
+ OCT_REG_CR_OFF
);
421 * Disables the global interrupt of PMC-OctalPro
424 static void __devexit
sbs_exit(struct pci_dev
*dev
)
428 p
= pci_ioremap_bar(dev
, 0);
429 /* FIXME: What if resource_len < OCT_REG_CR_OFF */
431 writeb(0, p
+ OCT_REG_CR_OFF
);
436 * SIIG serial cards have an PCI interface chip which also controls
437 * the UART clocking frequency. Each UART can be clocked independently
438 * (except cards equipped with 4 UARTs) and initial clocking settings
439 * are stored in the EEPROM chip. It can cause problems because this
440 * version of serial driver doesn't support differently clocked UART's
441 * on single PCI card. To prevent this, initialization functions set
442 * high frequency clocking for all UART's on given card. It is safe (I
443 * hope) because it doesn't touch EEPROM settings to prevent conflicts
444 * with other OSes (like M$ DOS).
446 * SIIG support added by Andrey Panin <pazke@donpac.ru>, 10/1999
448 * There is two family of SIIG serial cards with different PCI
449 * interface chip and different configuration methods:
450 * - 10x cards have control registers in IO and/or memory space;
451 * - 20x cards have control registers in standard PCI configuration space.
453 * Note: all 10x cards have PCI device ids 0x10..
454 * all 20x cards have PCI device ids 0x20..
456 * There are also Quartet Serial cards which use Oxford Semiconductor
457 * 16954 quad UART PCI chip clocked by 18.432 MHz quartz.
459 * Note: some SIIG cards are probed by the parport_serial object.
462 #define PCI_DEVICE_ID_SIIG_1S_10x (PCI_DEVICE_ID_SIIG_1S_10x_550 & 0xfffc)
463 #define PCI_DEVICE_ID_SIIG_2S_10x (PCI_DEVICE_ID_SIIG_2S_10x_550 & 0xfff8)
465 static int pci_siig10x_init(struct pci_dev
*dev
)
470 switch (dev
->device
& 0xfff8) {
471 case PCI_DEVICE_ID_SIIG_1S_10x
: /* 1S */
474 case PCI_DEVICE_ID_SIIG_2S_10x
: /* 2S, 2S1P */
477 default: /* 1S1P, 4S */
482 p
= ioremap_nocache(pci_resource_start(dev
, 0), 0x80);
486 writew(readw(p
+ 0x28) & data
, p
+ 0x28);
492 #define PCI_DEVICE_ID_SIIG_2S_20x (PCI_DEVICE_ID_SIIG_2S_20x_550 & 0xfffc)
493 #define PCI_DEVICE_ID_SIIG_2S1P_20x (PCI_DEVICE_ID_SIIG_2S1P_20x_550 & 0xfffc)
495 static int pci_siig20x_init(struct pci_dev
*dev
)
499 /* Change clock frequency for the first UART. */
500 pci_read_config_byte(dev
, 0x6f, &data
);
501 pci_write_config_byte(dev
, 0x6f, data
& 0xef);
503 /* If this card has 2 UART, we have to do the same with second UART. */
504 if (((dev
->device
& 0xfffc) == PCI_DEVICE_ID_SIIG_2S_20x
) ||
505 ((dev
->device
& 0xfffc) == PCI_DEVICE_ID_SIIG_2S1P_20x
)) {
506 pci_read_config_byte(dev
, 0x73, &data
);
507 pci_write_config_byte(dev
, 0x73, data
& 0xef);
512 static int pci_siig_init(struct pci_dev
*dev
)
514 unsigned int type
= dev
->device
& 0xff00;
517 return pci_siig10x_init(dev
);
518 else if (type
== 0x2000)
519 return pci_siig20x_init(dev
);
521 moan_device("Unknown SIIG card", dev
);
525 static int pci_siig_setup(struct serial_private
*priv
,
526 const struct pciserial_board
*board
,
527 struct uart_port
*port
, int idx
)
529 unsigned int bar
= FL_GET_BASE(board
->flags
) + idx
, offset
= 0;
533 offset
= (idx
- 4) * 8;
536 return setup_port(priv
, port
, bar
, offset
, 0);
540 * Timedia has an explosion of boards, and to avoid the PCI table from
541 * growing *huge*, we use this function to collapse some 70 entries
542 * in the PCI table into one, for sanity's and compactness's sake.
544 static const unsigned short timedia_single_port
[] = {
545 0x4025, 0x4027, 0x4028, 0x5025, 0x5027, 0
548 static const unsigned short timedia_dual_port
[] = {
549 0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085,
550 0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079,
551 0x7079, 0x8079, 0x8137, 0x8138, 0x8237, 0x8238, 0x9079,
552 0x9137, 0x9138, 0x9237, 0x9238, 0xA079, 0xB079, 0xC079,
556 static const unsigned short timedia_quad_port
[] = {
557 0x4055, 0x4056, 0x4095, 0x4096, 0x5056, 0x8156, 0x8157,
558 0x8256, 0x8257, 0x9056, 0x9156, 0x9157, 0x9158, 0x9159,
559 0x9256, 0x9257, 0xA056, 0xA157, 0xA158, 0xA159, 0xB056,
563 static const unsigned short timedia_eight_port
[] = {
564 0x4065, 0x4066, 0x5065, 0x5066, 0x8166, 0x9066, 0x9166,
565 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0
568 static const struct timedia_struct
{
570 const unsigned short *ids
;
572 { 1, timedia_single_port
},
573 { 2, timedia_dual_port
},
574 { 4, timedia_quad_port
},
575 { 8, timedia_eight_port
}
579 * There are nearly 70 different Timedia/SUNIX PCI serial devices. Instead of
580 * listing them individually, this driver merely grabs them all with
581 * PCI_ANY_ID. Some of these devices, however, also feature a parallel port,
582 * and should be left free to be claimed by parport_serial instead.
584 static int pci_timedia_probe(struct pci_dev
*dev
)
587 * Check the third digit of the subdevice ID
588 * (0,2,3,5,6: serial only -- 7,8,9: serial + parallel)
590 if ((dev
->subsystem_device
& 0x00f0) >= 0x70) {
592 "ignoring Timedia subdevice %04x for parport_serial\n",
593 dev
->subsystem_device
);
600 static int pci_timedia_init(struct pci_dev
*dev
)
602 const unsigned short *ids
;
605 for (i
= 0; i
< ARRAY_SIZE(timedia_data
); i
++) {
606 ids
= timedia_data
[i
].ids
;
607 for (j
= 0; ids
[j
]; j
++)
608 if (dev
->subsystem_device
== ids
[j
])
609 return timedia_data
[i
].num
;
615 * Timedia/SUNIX uses a mixture of BARs and offsets
616 * Ugh, this is ugly as all hell --- TYT
619 pci_timedia_setup(struct serial_private
*priv
,
620 const struct pciserial_board
*board
,
621 struct uart_port
*port
, int idx
)
623 unsigned int bar
= 0, offset
= board
->first_offset
;
630 offset
= board
->uart_offset
;
637 offset
= board
->uart_offset
;
646 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
650 * Some Titan cards are also a little weird
653 titan_400l_800l_setup(struct serial_private
*priv
,
654 const struct pciserial_board
*board
,
655 struct uart_port
*port
, int idx
)
657 unsigned int bar
, offset
= board
->first_offset
;
668 offset
= (idx
- 2) * board
->uart_offset
;
671 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
674 static int pci_xircom_init(struct pci_dev
*dev
)
680 static int pci_ni8420_init(struct pci_dev
*dev
)
683 unsigned long base
, len
;
684 unsigned int bar
= 0;
686 if ((pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) == 0) {
687 moan_device("no memory in bar", dev
);
691 base
= pci_resource_start(dev
, bar
);
692 len
= pci_resource_len(dev
, bar
);
693 p
= ioremap_nocache(base
, len
);
697 /* Enable CPU Interrupt */
698 writel(readl(p
+ NI8420_INT_ENABLE_REG
) | NI8420_INT_ENABLE_BIT
,
699 p
+ NI8420_INT_ENABLE_REG
);
705 #define MITE_IOWBSR1_WSIZE 0xa
706 #define MITE_IOWBSR1_WIN_OFFSET 0x800
707 #define MITE_IOWBSR1_WENAB (1 << 7)
708 #define MITE_LCIMR1_IO_IE_0 (1 << 24)
709 #define MITE_LCIMR2_SET_CPU_IE (1 << 31)
710 #define MITE_IOWCR1_RAMSEL_MASK 0xfffffffe
712 static int pci_ni8430_init(struct pci_dev
*dev
)
715 unsigned long base
, len
;
717 unsigned int bar
= 0;
719 if ((pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) == 0) {
720 moan_device("no memory in bar", dev
);
724 base
= pci_resource_start(dev
, bar
);
725 len
= pci_resource_len(dev
, bar
);
726 p
= ioremap_nocache(base
, len
);
730 /* Set device window address and size in BAR0 */
731 device_window
= ((base
+ MITE_IOWBSR1_WIN_OFFSET
) & 0xffffff00)
732 | MITE_IOWBSR1_WENAB
| MITE_IOWBSR1_WSIZE
;
733 writel(device_window
, p
+ MITE_IOWBSR1
);
735 /* Set window access to go to RAMSEL IO address space */
736 writel((readl(p
+ MITE_IOWCR1
) & MITE_IOWCR1_RAMSEL_MASK
),
739 /* Enable IO Bus Interrupt 0 */
740 writel(MITE_LCIMR1_IO_IE_0
, p
+ MITE_LCIMR1
);
742 /* Enable CPU Interrupt */
743 writel(MITE_LCIMR2_SET_CPU_IE
, p
+ MITE_LCIMR2
);
749 /* UART Port Control Register */
750 #define NI8430_PORTCON 0x0f
751 #define NI8430_PORTCON_TXVR_ENABLE (1 << 3)
754 pci_ni8430_setup(struct serial_private
*priv
,
755 const struct pciserial_board
*board
,
756 struct uart_port
*port
, int idx
)
759 unsigned long base
, len
;
760 unsigned int bar
, offset
= board
->first_offset
;
762 if (idx
>= board
->num_ports
)
765 bar
= FL_GET_BASE(board
->flags
);
766 offset
+= idx
* board
->uart_offset
;
768 base
= pci_resource_start(priv
->dev
, bar
);
769 len
= pci_resource_len(priv
->dev
, bar
);
770 p
= ioremap_nocache(base
, len
);
772 /* enable the transceiver */
773 writeb(readb(p
+ offset
+ NI8430_PORTCON
) | NI8430_PORTCON_TXVR_ENABLE
,
774 p
+ offset
+ NI8430_PORTCON
);
778 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
781 static int pci_netmos_9900_setup(struct serial_private
*priv
,
782 const struct pciserial_board
*board
,
783 struct uart_port
*port
, int idx
)
787 if ((priv
->dev
->subsystem_device
& 0xff00) == 0x3000) {
788 /* netmos apparently orders BARs by datasheet layout, so serial
789 * ports get BARs 0 and 3 (or 1 and 4 for memmapped)
793 return setup_port(priv
, port
, bar
, 0, board
->reg_shift
);
795 return pci_default_setup(priv
, board
, port
, idx
);
799 /* the 99xx series comes with a range of device IDs and a variety
802 * 9900 has varying capabilities and can cascade to sub-controllers
803 * (cascading should be purely internal)
804 * 9904 is hardwired with 4 serial ports
805 * 9912 and 9922 are hardwired with 2 serial ports
807 static int pci_netmos_9900_numports(struct pci_dev
*dev
)
809 unsigned int c
= dev
->class;
811 unsigned short sub_serports
;
817 } else if ((pi
== 0) &&
818 (dev
->device
== PCI_DEVICE_ID_NETMOS_9900
)) {
819 /* two possibilities: 0x30ps encodes number of parallel and
820 * serial ports, or 0x1000 indicates *something*. This is not
821 * immediately obvious, since the 2s1p+4s configuration seems
822 * to offer all functionality on functions 0..2, while still
823 * advertising the same function 3 as the 4s+2s1p config.
825 sub_serports
= dev
->subsystem_device
& 0xf;
826 if (sub_serports
> 0) {
829 printk(KERN_NOTICE
"NetMos/Mostech serial driver ignoring port on ambiguous config.\n");
834 moan_device("unknown NetMos/Mostech program interface", dev
);
838 static int pci_netmos_init(struct pci_dev
*dev
)
840 /* subdevice 0x00PS means <P> parallel, <S> serial */
841 unsigned int num_serial
= dev
->subsystem_device
& 0xf;
843 if ((dev
->device
== PCI_DEVICE_ID_NETMOS_9901
) ||
844 (dev
->device
== PCI_DEVICE_ID_NETMOS_9865
))
847 if (dev
->subsystem_vendor
== PCI_VENDOR_ID_IBM
&&
848 dev
->subsystem_device
== 0x0299)
851 switch (dev
->device
) { /* FALLTHROUGH on all */
852 case PCI_DEVICE_ID_NETMOS_9904
:
853 case PCI_DEVICE_ID_NETMOS_9912
:
854 case PCI_DEVICE_ID_NETMOS_9922
:
855 case PCI_DEVICE_ID_NETMOS_9900
:
856 num_serial
= pci_netmos_9900_numports(dev
);
860 if (num_serial
== 0 ) {
861 moan_device("unknown NetMos/Mostech device", dev
);
872 * These chips are available with optionally one parallel port and up to
873 * two serial ports. Unfortunately they all have the same product id.
875 * Basic configuration is done over a region of 32 I/O ports. The base
876 * ioport is called INTA or INTC, depending on docs/other drivers.
878 * The region of the 32 I/O ports is configured in POSIO0R...
882 #define ITE_887x_MISCR 0x9c
883 #define ITE_887x_INTCBAR 0x78
884 #define ITE_887x_UARTBAR 0x7c
885 #define ITE_887x_PS0BAR 0x10
886 #define ITE_887x_POSIO0 0x60
889 #define ITE_887x_IOSIZE 32
890 /* I/O space size (bits 26-24; 8 bytes = 011b) */
891 #define ITE_887x_POSIO_IOSIZE_8 (3 << 24)
892 /* I/O space size (bits 26-24; 32 bytes = 101b) */
893 #define ITE_887x_POSIO_IOSIZE_32 (5 << 24)
894 /* Decoding speed (1 = slow, 2 = medium, 3 = fast) */
895 #define ITE_887x_POSIO_SPEED (3 << 29)
896 /* enable IO_Space bit */
897 #define ITE_887x_POSIO_ENABLE (1 << 31)
899 static int pci_ite887x_init(struct pci_dev
*dev
)
901 /* inta_addr are the configuration addresses of the ITE */
902 static const short inta_addr
[] = { 0x2a0, 0x2c0, 0x220, 0x240, 0x1e0,
905 struct resource
*iobase
= NULL
;
906 u32 miscr
, uartbar
, ioport
;
908 /* search for the base-ioport */
910 while (inta_addr
[i
] && iobase
== NULL
) {
911 iobase
= request_region(inta_addr
[i
], ITE_887x_IOSIZE
,
913 if (iobase
!= NULL
) {
914 /* write POSIO0R - speed | size | ioport */
915 pci_write_config_dword(dev
, ITE_887x_POSIO0
,
916 ITE_887x_POSIO_ENABLE
| ITE_887x_POSIO_SPEED
|
917 ITE_887x_POSIO_IOSIZE_32
| inta_addr
[i
]);
918 /* write INTCBAR - ioport */
919 pci_write_config_dword(dev
, ITE_887x_INTCBAR
,
921 ret
= inb(inta_addr
[i
]);
923 /* ioport connected */
926 release_region(iobase
->start
, ITE_887x_IOSIZE
);
933 printk(KERN_ERR
"ite887x: could not find iobase\n");
937 /* start of undocumented type checking (see parport_pc.c) */
938 type
= inb(iobase
->start
+ 0x18) & 0x0f;
941 case 0x2: /* ITE8871 (1P) */
942 case 0xa: /* ITE8875 (1P) */
945 case 0xe: /* ITE8872 (2S1P) */
948 case 0x6: /* ITE8873 (1S) */
951 case 0x8: /* ITE8874 (2S) */
955 moan_device("Unknown ITE887x", dev
);
959 /* configure all serial ports */
960 for (i
= 0; i
< ret
; i
++) {
961 /* read the I/O port from the device */
962 pci_read_config_dword(dev
, ITE_887x_PS0BAR
+ (0x4 * (i
+ 1)),
964 ioport
&= 0x0000FF00; /* the actual base address */
965 pci_write_config_dword(dev
, ITE_887x_POSIO0
+ (0x4 * (i
+ 1)),
966 ITE_887x_POSIO_ENABLE
| ITE_887x_POSIO_SPEED
|
967 ITE_887x_POSIO_IOSIZE_8
| ioport
);
969 /* write the ioport to the UARTBAR */
970 pci_read_config_dword(dev
, ITE_887x_UARTBAR
, &uartbar
);
971 uartbar
&= ~(0xffff << (16 * i
)); /* clear half the reg */
972 uartbar
|= (ioport
<< (16 * i
)); /* set the ioport */
973 pci_write_config_dword(dev
, ITE_887x_UARTBAR
, uartbar
);
975 /* get current config */
976 pci_read_config_dword(dev
, ITE_887x_MISCR
, &miscr
);
977 /* disable interrupts (UARTx_Routing[3:0]) */
978 miscr
&= ~(0xf << (12 - 4 * i
));
979 /* activate the UART (UARTx_En) */
980 miscr
|= 1 << (23 - i
);
981 /* write new config with activated UART */
982 pci_write_config_dword(dev
, ITE_887x_MISCR
, miscr
);
986 /* the device has no UARTs if we get here */
987 release_region(iobase
->start
, ITE_887x_IOSIZE
);
993 static void __devexit
pci_ite887x_exit(struct pci_dev
*dev
)
996 /* the ioport is bit 0-15 in POSIO0R */
997 pci_read_config_dword(dev
, ITE_887x_POSIO0
, &ioport
);
999 release_region(ioport
, ITE_887x_IOSIZE
);
1003 * Oxford Semiconductor Inc.
1004 * Check that device is part of the Tornado range of devices, then determine
1005 * the number of ports available on the device.
1007 static int pci_oxsemi_tornado_init(struct pci_dev
*dev
)
1010 unsigned long deviceID
;
1011 unsigned int number_uarts
= 0;
1013 /* OxSemi Tornado devices are all 0xCxxx */
1014 if (dev
->vendor
== PCI_VENDOR_ID_OXSEMI
&&
1015 (dev
->device
& 0xF000) != 0xC000)
1018 p
= pci_iomap(dev
, 0, 5);
1022 deviceID
= ioread32(p
);
1023 /* Tornado device */
1024 if (deviceID
== 0x07000200) {
1025 number_uarts
= ioread8(p
+ 4);
1027 "%d ports detected on Oxford PCI Express device\n",
1030 pci_iounmap(dev
, p
);
1031 return number_uarts
;
1035 pci_default_setup(struct serial_private
*priv
,
1036 const struct pciserial_board
*board
,
1037 struct uart_port
*port
, int idx
)
1039 unsigned int bar
, offset
= board
->first_offset
, maxnr
;
1041 bar
= FL_GET_BASE(board
->flags
);
1042 if (board
->flags
& FL_BASE_BARS
)
1045 offset
+= idx
* board
->uart_offset
;
1047 maxnr
= (pci_resource_len(priv
->dev
, bar
) - board
->first_offset
) >>
1048 (board
->reg_shift
+ 3);
1050 if (board
->flags
& FL_REGION_SZ_CAP
&& idx
>= maxnr
)
1053 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
1057 ce4100_serial_setup(struct serial_private
*priv
,
1058 const struct pciserial_board
*board
,
1059 struct uart_port
*port
, int idx
)
1063 ret
= setup_port(priv
, port
, 0, 0, board
->reg_shift
);
1064 port
->iotype
= UPIO_MEM32
;
1065 port
->type
= PORT_XSCALE
;
1066 port
->flags
= (port
->flags
| UPF_FIXED_PORT
| UPF_FIXED_TYPE
);
1073 pci_omegapci_setup(struct serial_private
*priv
,
1074 const struct pciserial_board
*board
,
1075 struct uart_port
*port
, int idx
)
1077 return setup_port(priv
, port
, 2, idx
* 8, 0);
1080 static int skip_tx_en_setup(struct serial_private
*priv
,
1081 const struct pciserial_board
*board
,
1082 struct uart_port
*port
, int idx
)
1084 port
->flags
|= UPF_NO_TXEN_TEST
;
1085 printk(KERN_DEBUG
"serial8250: skipping TxEn test for device "
1086 "[%04x:%04x] subsystem [%04x:%04x]\n",
1089 priv
->dev
->subsystem_vendor
,
1090 priv
->dev
->subsystem_device
);
1092 return pci_default_setup(priv
, board
, port
, idx
);
1095 static int pci_eg20t_init(struct pci_dev
*dev
)
1097 #if defined(CONFIG_SERIAL_PCH_UART) || defined(CONFIG_SERIAL_PCH_UART_MODULE)
1104 /* This should be in linux/pci_ids.h */
1105 #define PCI_VENDOR_ID_SBSMODULARIO 0x124B
1106 #define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B
1107 #define PCI_DEVICE_ID_OCTPRO 0x0001
1108 #define PCI_SUBDEVICE_ID_OCTPRO232 0x0108
1109 #define PCI_SUBDEVICE_ID_OCTPRO422 0x0208
1110 #define PCI_SUBDEVICE_ID_POCTAL232 0x0308
1111 #define PCI_SUBDEVICE_ID_POCTAL422 0x0408
1112 #define PCI_VENDOR_ID_ADVANTECH 0x13fe
1113 #define PCI_DEVICE_ID_INTEL_CE4100_UART 0x2e66
1114 #define PCI_DEVICE_ID_ADVANTECH_PCI3620 0x3620
1115 #define PCI_DEVICE_ID_TITAN_200I 0x8028
1116 #define PCI_DEVICE_ID_TITAN_400I 0x8048
1117 #define PCI_DEVICE_ID_TITAN_800I 0x8088
1118 #define PCI_DEVICE_ID_TITAN_800EH 0xA007
1119 #define PCI_DEVICE_ID_TITAN_800EHB 0xA008
1120 #define PCI_DEVICE_ID_TITAN_400EH 0xA009
1121 #define PCI_DEVICE_ID_TITAN_100E 0xA010
1122 #define PCI_DEVICE_ID_TITAN_200E 0xA012
1123 #define PCI_DEVICE_ID_TITAN_400E 0xA013
1124 #define PCI_DEVICE_ID_TITAN_800E 0xA014
1125 #define PCI_DEVICE_ID_TITAN_200EI 0xA016
1126 #define PCI_DEVICE_ID_TITAN_200EISI 0xA017
1127 #define PCI_DEVICE_ID_OXSEMI_16PCI958 0x9538
1128 #define PCIE_DEVICE_ID_NEO_2_OX_IBM 0x00F6
1129 #define PCI_DEVICE_ID_PLX_CRONYX_OMEGA 0xc001
1131 /* Unknown vendors/cards - this should not be in linux/pci_ids.h */
1132 #define PCI_SUBDEVICE_ID_UNKNOWN_0x1584 0x1584
1135 * Master list of serial port init/setup/exit quirks.
1136 * This does not describe the general nature of the port.
1137 * (ie, baud base, number and location of ports, etc)
1139 * This list is ordered alphabetically by vendor then device.
1140 * Specific entries must come before more generic entries.
1142 static struct pci_serial_quirk pci_serial_quirks
[] __refdata
= {
1144 * ADDI-DATA GmbH communication cards <info@addi-data.com>
1147 .vendor
= PCI_VENDOR_ID_ADDIDATA_OLD
,
1148 .device
= PCI_DEVICE_ID_ADDIDATA_APCI7800
,
1149 .subvendor
= PCI_ANY_ID
,
1150 .subdevice
= PCI_ANY_ID
,
1151 .setup
= addidata_apci7800_setup
,
1154 * AFAVLAB cards - these may be called via parport_serial
1155 * It is not clear whether this applies to all products.
1158 .vendor
= PCI_VENDOR_ID_AFAVLAB
,
1159 .device
= PCI_ANY_ID
,
1160 .subvendor
= PCI_ANY_ID
,
1161 .subdevice
= PCI_ANY_ID
,
1162 .setup
= afavlab_setup
,
1168 .vendor
= PCI_VENDOR_ID_HP
,
1169 .device
= PCI_DEVICE_ID_HP_DIVA
,
1170 .subvendor
= PCI_ANY_ID
,
1171 .subdevice
= PCI_ANY_ID
,
1172 .init
= pci_hp_diva_init
,
1173 .setup
= pci_hp_diva_setup
,
1179 .vendor
= PCI_VENDOR_ID_INTEL
,
1180 .device
= PCI_DEVICE_ID_INTEL_80960_RP
,
1181 .subvendor
= 0xe4bf,
1182 .subdevice
= PCI_ANY_ID
,
1183 .init
= pci_inteli960ni_init
,
1184 .setup
= pci_default_setup
,
1187 .vendor
= PCI_VENDOR_ID_INTEL
,
1188 .device
= PCI_DEVICE_ID_INTEL_8257X_SOL
,
1189 .subvendor
= PCI_ANY_ID
,
1190 .subdevice
= PCI_ANY_ID
,
1191 .setup
= skip_tx_en_setup
,
1194 .vendor
= PCI_VENDOR_ID_INTEL
,
1195 .device
= PCI_DEVICE_ID_INTEL_82573L_SOL
,
1196 .subvendor
= PCI_ANY_ID
,
1197 .subdevice
= PCI_ANY_ID
,
1198 .setup
= skip_tx_en_setup
,
1201 .vendor
= PCI_VENDOR_ID_INTEL
,
1202 .device
= PCI_DEVICE_ID_INTEL_82573E_SOL
,
1203 .subvendor
= PCI_ANY_ID
,
1204 .subdevice
= PCI_ANY_ID
,
1205 .setup
= skip_tx_en_setup
,
1208 .vendor
= PCI_VENDOR_ID_INTEL
,
1209 .device
= PCI_DEVICE_ID_INTEL_CE4100_UART
,
1210 .subvendor
= PCI_ANY_ID
,
1211 .subdevice
= PCI_ANY_ID
,
1212 .setup
= ce4100_serial_setup
,
1218 .vendor
= PCI_VENDOR_ID_ITE
,
1219 .device
= PCI_DEVICE_ID_ITE_8872
,
1220 .subvendor
= PCI_ANY_ID
,
1221 .subdevice
= PCI_ANY_ID
,
1222 .init
= pci_ite887x_init
,
1223 .setup
= pci_default_setup
,
1224 .exit
= __devexit_p(pci_ite887x_exit
),
1227 * National Instruments
1230 .vendor
= PCI_VENDOR_ID_NI
,
1231 .device
= PCI_DEVICE_ID_NI_PCI23216
,
1232 .subvendor
= PCI_ANY_ID
,
1233 .subdevice
= PCI_ANY_ID
,
1234 .init
= pci_ni8420_init
,
1235 .setup
= pci_default_setup
,
1236 .exit
= __devexit_p(pci_ni8420_exit
),
1239 .vendor
= PCI_VENDOR_ID_NI
,
1240 .device
= PCI_DEVICE_ID_NI_PCI2328
,
1241 .subvendor
= PCI_ANY_ID
,
1242 .subdevice
= PCI_ANY_ID
,
1243 .init
= pci_ni8420_init
,
1244 .setup
= pci_default_setup
,
1245 .exit
= __devexit_p(pci_ni8420_exit
),
1248 .vendor
= PCI_VENDOR_ID_NI
,
1249 .device
= PCI_DEVICE_ID_NI_PCI2324
,
1250 .subvendor
= PCI_ANY_ID
,
1251 .subdevice
= PCI_ANY_ID
,
1252 .init
= pci_ni8420_init
,
1253 .setup
= pci_default_setup
,
1254 .exit
= __devexit_p(pci_ni8420_exit
),
1257 .vendor
= PCI_VENDOR_ID_NI
,
1258 .device
= PCI_DEVICE_ID_NI_PCI2322
,
1259 .subvendor
= PCI_ANY_ID
,
1260 .subdevice
= PCI_ANY_ID
,
1261 .init
= pci_ni8420_init
,
1262 .setup
= pci_default_setup
,
1263 .exit
= __devexit_p(pci_ni8420_exit
),
1266 .vendor
= PCI_VENDOR_ID_NI
,
1267 .device
= PCI_DEVICE_ID_NI_PCI2324I
,
1268 .subvendor
= PCI_ANY_ID
,
1269 .subdevice
= PCI_ANY_ID
,
1270 .init
= pci_ni8420_init
,
1271 .setup
= pci_default_setup
,
1272 .exit
= __devexit_p(pci_ni8420_exit
),
1275 .vendor
= PCI_VENDOR_ID_NI
,
1276 .device
= PCI_DEVICE_ID_NI_PCI2322I
,
1277 .subvendor
= PCI_ANY_ID
,
1278 .subdevice
= PCI_ANY_ID
,
1279 .init
= pci_ni8420_init
,
1280 .setup
= pci_default_setup
,
1281 .exit
= __devexit_p(pci_ni8420_exit
),
1284 .vendor
= PCI_VENDOR_ID_NI
,
1285 .device
= PCI_DEVICE_ID_NI_PXI8420_23216
,
1286 .subvendor
= PCI_ANY_ID
,
1287 .subdevice
= PCI_ANY_ID
,
1288 .init
= pci_ni8420_init
,
1289 .setup
= pci_default_setup
,
1290 .exit
= __devexit_p(pci_ni8420_exit
),
1293 .vendor
= PCI_VENDOR_ID_NI
,
1294 .device
= PCI_DEVICE_ID_NI_PXI8420_2328
,
1295 .subvendor
= PCI_ANY_ID
,
1296 .subdevice
= PCI_ANY_ID
,
1297 .init
= pci_ni8420_init
,
1298 .setup
= pci_default_setup
,
1299 .exit
= __devexit_p(pci_ni8420_exit
),
1302 .vendor
= PCI_VENDOR_ID_NI
,
1303 .device
= PCI_DEVICE_ID_NI_PXI8420_2324
,
1304 .subvendor
= PCI_ANY_ID
,
1305 .subdevice
= PCI_ANY_ID
,
1306 .init
= pci_ni8420_init
,
1307 .setup
= pci_default_setup
,
1308 .exit
= __devexit_p(pci_ni8420_exit
),
1311 .vendor
= PCI_VENDOR_ID_NI
,
1312 .device
= PCI_DEVICE_ID_NI_PXI8420_2322
,
1313 .subvendor
= PCI_ANY_ID
,
1314 .subdevice
= PCI_ANY_ID
,
1315 .init
= pci_ni8420_init
,
1316 .setup
= pci_default_setup
,
1317 .exit
= __devexit_p(pci_ni8420_exit
),
1320 .vendor
= PCI_VENDOR_ID_NI
,
1321 .device
= PCI_DEVICE_ID_NI_PXI8422_2324
,
1322 .subvendor
= PCI_ANY_ID
,
1323 .subdevice
= PCI_ANY_ID
,
1324 .init
= pci_ni8420_init
,
1325 .setup
= pci_default_setup
,
1326 .exit
= __devexit_p(pci_ni8420_exit
),
1329 .vendor
= PCI_VENDOR_ID_NI
,
1330 .device
= PCI_DEVICE_ID_NI_PXI8422_2322
,
1331 .subvendor
= PCI_ANY_ID
,
1332 .subdevice
= PCI_ANY_ID
,
1333 .init
= pci_ni8420_init
,
1334 .setup
= pci_default_setup
,
1335 .exit
= __devexit_p(pci_ni8420_exit
),
1338 .vendor
= PCI_VENDOR_ID_NI
,
1339 .device
= PCI_ANY_ID
,
1340 .subvendor
= PCI_ANY_ID
,
1341 .subdevice
= PCI_ANY_ID
,
1342 .init
= pci_ni8430_init
,
1343 .setup
= pci_ni8430_setup
,
1344 .exit
= __devexit_p(pci_ni8430_exit
),
1350 .vendor
= PCI_VENDOR_ID_PANACOM
,
1351 .device
= PCI_DEVICE_ID_PANACOM_QUADMODEM
,
1352 .subvendor
= PCI_ANY_ID
,
1353 .subdevice
= PCI_ANY_ID
,
1354 .init
= pci_plx9050_init
,
1355 .setup
= pci_default_setup
,
1356 .exit
= __devexit_p(pci_plx9050_exit
),
1359 .vendor
= PCI_VENDOR_ID_PANACOM
,
1360 .device
= PCI_DEVICE_ID_PANACOM_DUALMODEM
,
1361 .subvendor
= PCI_ANY_ID
,
1362 .subdevice
= PCI_ANY_ID
,
1363 .init
= pci_plx9050_init
,
1364 .setup
= pci_default_setup
,
1365 .exit
= __devexit_p(pci_plx9050_exit
),
1371 .vendor
= PCI_VENDOR_ID_PLX
,
1372 .device
= PCI_DEVICE_ID_PLX_9030
,
1373 .subvendor
= PCI_SUBVENDOR_ID_PERLE
,
1374 .subdevice
= PCI_ANY_ID
,
1375 .setup
= pci_default_setup
,
1378 .vendor
= PCI_VENDOR_ID_PLX
,
1379 .device
= PCI_DEVICE_ID_PLX_9050
,
1380 .subvendor
= PCI_SUBVENDOR_ID_EXSYS
,
1381 .subdevice
= PCI_SUBDEVICE_ID_EXSYS_4055
,
1382 .init
= pci_plx9050_init
,
1383 .setup
= pci_default_setup
,
1384 .exit
= __devexit_p(pci_plx9050_exit
),
1387 .vendor
= PCI_VENDOR_ID_PLX
,
1388 .device
= PCI_DEVICE_ID_PLX_9050
,
1389 .subvendor
= PCI_SUBVENDOR_ID_KEYSPAN
,
1390 .subdevice
= PCI_SUBDEVICE_ID_KEYSPAN_SX2
,
1391 .init
= pci_plx9050_init
,
1392 .setup
= pci_default_setup
,
1393 .exit
= __devexit_p(pci_plx9050_exit
),
1396 .vendor
= PCI_VENDOR_ID_PLX
,
1397 .device
= PCI_DEVICE_ID_PLX_9050
,
1398 .subvendor
= PCI_VENDOR_ID_PLX
,
1399 .subdevice
= PCI_SUBDEVICE_ID_UNKNOWN_0x1584
,
1400 .init
= pci_plx9050_init
,
1401 .setup
= pci_default_setup
,
1402 .exit
= __devexit_p(pci_plx9050_exit
),
1405 .vendor
= PCI_VENDOR_ID_PLX
,
1406 .device
= PCI_DEVICE_ID_PLX_ROMULUS
,
1407 .subvendor
= PCI_VENDOR_ID_PLX
,
1408 .subdevice
= PCI_DEVICE_ID_PLX_ROMULUS
,
1409 .init
= pci_plx9050_init
,
1410 .setup
= pci_default_setup
,
1411 .exit
= __devexit_p(pci_plx9050_exit
),
1414 * SBS Technologies, Inc., PMC-OCTALPRO 232
1417 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
1418 .device
= PCI_DEVICE_ID_OCTPRO
,
1419 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
1420 .subdevice
= PCI_SUBDEVICE_ID_OCTPRO232
,
1423 .exit
= __devexit_p(sbs_exit
),
1426 * SBS Technologies, Inc., PMC-OCTALPRO 422
1429 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
1430 .device
= PCI_DEVICE_ID_OCTPRO
,
1431 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
1432 .subdevice
= PCI_SUBDEVICE_ID_OCTPRO422
,
1435 .exit
= __devexit_p(sbs_exit
),
1438 * SBS Technologies, Inc., P-Octal 232
1441 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
1442 .device
= PCI_DEVICE_ID_OCTPRO
,
1443 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
1444 .subdevice
= PCI_SUBDEVICE_ID_POCTAL232
,
1447 .exit
= __devexit_p(sbs_exit
),
1450 * SBS Technologies, Inc., P-Octal 422
1453 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
1454 .device
= PCI_DEVICE_ID_OCTPRO
,
1455 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
1456 .subdevice
= PCI_SUBDEVICE_ID_POCTAL422
,
1459 .exit
= __devexit_p(sbs_exit
),
1462 * SIIG cards - these may be called via parport_serial
1465 .vendor
= PCI_VENDOR_ID_SIIG
,
1466 .device
= PCI_ANY_ID
,
1467 .subvendor
= PCI_ANY_ID
,
1468 .subdevice
= PCI_ANY_ID
,
1469 .init
= pci_siig_init
,
1470 .setup
= pci_siig_setup
,
1476 .vendor
= PCI_VENDOR_ID_TITAN
,
1477 .device
= PCI_DEVICE_ID_TITAN_400L
,
1478 .subvendor
= PCI_ANY_ID
,
1479 .subdevice
= PCI_ANY_ID
,
1480 .setup
= titan_400l_800l_setup
,
1483 .vendor
= PCI_VENDOR_ID_TITAN
,
1484 .device
= PCI_DEVICE_ID_TITAN_800L
,
1485 .subvendor
= PCI_ANY_ID
,
1486 .subdevice
= PCI_ANY_ID
,
1487 .setup
= titan_400l_800l_setup
,
1493 .vendor
= PCI_VENDOR_ID_TIMEDIA
,
1494 .device
= PCI_DEVICE_ID_TIMEDIA_1889
,
1495 .subvendor
= PCI_VENDOR_ID_TIMEDIA
,
1496 .subdevice
= PCI_ANY_ID
,
1497 .probe
= pci_timedia_probe
,
1498 .init
= pci_timedia_init
,
1499 .setup
= pci_timedia_setup
,
1502 .vendor
= PCI_VENDOR_ID_TIMEDIA
,
1503 .device
= PCI_ANY_ID
,
1504 .subvendor
= PCI_ANY_ID
,
1505 .subdevice
= PCI_ANY_ID
,
1506 .setup
= pci_timedia_setup
,
1512 .vendor
= PCI_VENDOR_ID_XIRCOM
,
1513 .device
= PCI_DEVICE_ID_XIRCOM_X3201_MDM
,
1514 .subvendor
= PCI_ANY_ID
,
1515 .subdevice
= PCI_ANY_ID
,
1516 .init
= pci_xircom_init
,
1517 .setup
= pci_default_setup
,
1520 * Netmos cards - these may be called via parport_serial
1523 .vendor
= PCI_VENDOR_ID_NETMOS
,
1524 .device
= PCI_ANY_ID
,
1525 .subvendor
= PCI_ANY_ID
,
1526 .subdevice
= PCI_ANY_ID
,
1527 .init
= pci_netmos_init
,
1528 .setup
= pci_netmos_9900_setup
,
1531 * For Oxford Semiconductor Tornado based devices
1534 .vendor
= PCI_VENDOR_ID_OXSEMI
,
1535 .device
= PCI_ANY_ID
,
1536 .subvendor
= PCI_ANY_ID
,
1537 .subdevice
= PCI_ANY_ID
,
1538 .init
= pci_oxsemi_tornado_init
,
1539 .setup
= pci_default_setup
,
1542 .vendor
= PCI_VENDOR_ID_MAINPINE
,
1543 .device
= PCI_ANY_ID
,
1544 .subvendor
= PCI_ANY_ID
,
1545 .subdevice
= PCI_ANY_ID
,
1546 .init
= pci_oxsemi_tornado_init
,
1547 .setup
= pci_default_setup
,
1550 .vendor
= PCI_VENDOR_ID_DIGI
,
1551 .device
= PCIE_DEVICE_ID_NEO_2_OX_IBM
,
1552 .subvendor
= PCI_SUBVENDOR_ID_IBM
,
1553 .subdevice
= PCI_ANY_ID
,
1554 .init
= pci_oxsemi_tornado_init
,
1555 .setup
= pci_default_setup
,
1558 .vendor
= PCI_VENDOR_ID_INTEL
,
1560 .init
= pci_eg20t_init
,
1563 .vendor
= PCI_VENDOR_ID_INTEL
,
1565 .init
= pci_eg20t_init
,
1568 .vendor
= PCI_VENDOR_ID_INTEL
,
1570 .init
= pci_eg20t_init
,
1573 .vendor
= PCI_VENDOR_ID_INTEL
,
1575 .init
= pci_eg20t_init
,
1580 .init
= pci_eg20t_init
,
1585 .init
= pci_eg20t_init
,
1590 .init
= pci_eg20t_init
,
1595 .init
= pci_eg20t_init
,
1600 .init
= pci_eg20t_init
,
1603 * Cronyx Omega PCI (PLX-chip based)
1606 .vendor
= PCI_VENDOR_ID_PLX
,
1607 .device
= PCI_DEVICE_ID_PLX_CRONYX_OMEGA
,
1608 .subvendor
= PCI_ANY_ID
,
1609 .subdevice
= PCI_ANY_ID
,
1610 .setup
= pci_omegapci_setup
,
1613 * Default "match everything" terminator entry
1616 .vendor
= PCI_ANY_ID
,
1617 .device
= PCI_ANY_ID
,
1618 .subvendor
= PCI_ANY_ID
,
1619 .subdevice
= PCI_ANY_ID
,
1620 .setup
= pci_default_setup
,
1624 static inline int quirk_id_matches(u32 quirk_id
, u32 dev_id
)
1626 return quirk_id
== PCI_ANY_ID
|| quirk_id
== dev_id
;
1629 static struct pci_serial_quirk
*find_quirk(struct pci_dev
*dev
)
1631 struct pci_serial_quirk
*quirk
;
1633 for (quirk
= pci_serial_quirks
; ; quirk
++)
1634 if (quirk_id_matches(quirk
->vendor
, dev
->vendor
) &&
1635 quirk_id_matches(quirk
->device
, dev
->device
) &&
1636 quirk_id_matches(quirk
->subvendor
, dev
->subsystem_vendor
) &&
1637 quirk_id_matches(quirk
->subdevice
, dev
->subsystem_device
))
1642 static inline int get_pci_irq(struct pci_dev
*dev
,
1643 const struct pciserial_board
*board
)
1645 if (board
->flags
& FL_NOIRQ
)
1652 * This is the configuration table for all of the PCI serial boards
1653 * which we support. It is directly indexed by the pci_board_num_t enum
1654 * value, which is encoded in the pci_device_id PCI probe table's
1655 * driver_data member.
1657 * The makeup of these names are:
1658 * pbn_bn{_bt}_n_baud{_offsetinhex}
1660 * bn = PCI BAR number
1661 * bt = Index using PCI BARs
1662 * n = number of serial ports
1664 * offsetinhex = offset for each sequential port (in hex)
1666 * This table is sorted by (in order): bn, bt, baud, offsetindex, n.
1668 * Please note: in theory if n = 1, _bt infix should make no difference.
1669 * ie, pbn_b0_1_115200 is the same as pbn_b0_bt_1_115200
1671 enum pci_board_num_t
{
1691 pbn_b0_2_1843200_200
,
1692 pbn_b0_4_1843200_200
,
1693 pbn_b0_8_1843200_200
,
1767 * Board-specific versions.
1775 pbn_oxsemi_1_4000000
,
1776 pbn_oxsemi_2_4000000
,
1777 pbn_oxsemi_4_4000000
,
1778 pbn_oxsemi_8_4000000
,
1788 pbn_exar_ibm_saturn
,
1794 pbn_ADDIDATA_PCIe_1_3906250
,
1795 pbn_ADDIDATA_PCIe_2_3906250
,
1796 pbn_ADDIDATA_PCIe_4_3906250
,
1797 pbn_ADDIDATA_PCIe_8_3906250
,
1798 pbn_ce4100_1_115200
,
1800 pbn_NETMOS9900_2s_115200
,
1804 * uart_offset - the space between channels
1805 * reg_shift - describes how the UART registers are mapped
1806 * to PCI memory by the card.
1807 * For example IER register on SBS, Inc. PMC-OctPro is located at
1808 * offset 0x10 from the UART base, while UART_IER is defined as 1
1809 * in include/linux/serial_reg.h,
1810 * see first lines of serial_in() and serial_out() in 8250.c
1813 static struct pciserial_board pci_boards
[] __devinitdata
= {
1817 .base_baud
= 115200,
1820 [pbn_b0_1_115200
] = {
1823 .base_baud
= 115200,
1826 [pbn_b0_2_115200
] = {
1829 .base_baud
= 115200,
1832 [pbn_b0_4_115200
] = {
1835 .base_baud
= 115200,
1838 [pbn_b0_5_115200
] = {
1841 .base_baud
= 115200,
1844 [pbn_b0_8_115200
] = {
1847 .base_baud
= 115200,
1850 [pbn_b0_1_921600
] = {
1853 .base_baud
= 921600,
1856 [pbn_b0_2_921600
] = {
1859 .base_baud
= 921600,
1862 [pbn_b0_4_921600
] = {
1865 .base_baud
= 921600,
1869 [pbn_b0_2_1130000
] = {
1872 .base_baud
= 1130000,
1876 [pbn_b0_4_1152000
] = {
1879 .base_baud
= 1152000,
1883 [pbn_b0_2_1843200
] = {
1886 .base_baud
= 1843200,
1889 [pbn_b0_4_1843200
] = {
1892 .base_baud
= 1843200,
1896 [pbn_b0_2_1843200_200
] = {
1899 .base_baud
= 1843200,
1900 .uart_offset
= 0x200,
1902 [pbn_b0_4_1843200_200
] = {
1905 .base_baud
= 1843200,
1906 .uart_offset
= 0x200,
1908 [pbn_b0_8_1843200_200
] = {
1911 .base_baud
= 1843200,
1912 .uart_offset
= 0x200,
1914 [pbn_b0_1_4000000
] = {
1917 .base_baud
= 4000000,
1921 [pbn_b0_bt_1_115200
] = {
1922 .flags
= FL_BASE0
|FL_BASE_BARS
,
1924 .base_baud
= 115200,
1927 [pbn_b0_bt_2_115200
] = {
1928 .flags
= FL_BASE0
|FL_BASE_BARS
,
1930 .base_baud
= 115200,
1933 [pbn_b0_bt_4_115200
] = {
1934 .flags
= FL_BASE0
|FL_BASE_BARS
,
1936 .base_baud
= 115200,
1939 [pbn_b0_bt_8_115200
] = {
1940 .flags
= FL_BASE0
|FL_BASE_BARS
,
1942 .base_baud
= 115200,
1946 [pbn_b0_bt_1_460800
] = {
1947 .flags
= FL_BASE0
|FL_BASE_BARS
,
1949 .base_baud
= 460800,
1952 [pbn_b0_bt_2_460800
] = {
1953 .flags
= FL_BASE0
|FL_BASE_BARS
,
1955 .base_baud
= 460800,
1958 [pbn_b0_bt_4_460800
] = {
1959 .flags
= FL_BASE0
|FL_BASE_BARS
,
1961 .base_baud
= 460800,
1965 [pbn_b0_bt_1_921600
] = {
1966 .flags
= FL_BASE0
|FL_BASE_BARS
,
1968 .base_baud
= 921600,
1971 [pbn_b0_bt_2_921600
] = {
1972 .flags
= FL_BASE0
|FL_BASE_BARS
,
1974 .base_baud
= 921600,
1977 [pbn_b0_bt_4_921600
] = {
1978 .flags
= FL_BASE0
|FL_BASE_BARS
,
1980 .base_baud
= 921600,
1983 [pbn_b0_bt_8_921600
] = {
1984 .flags
= FL_BASE0
|FL_BASE_BARS
,
1986 .base_baud
= 921600,
1990 [pbn_b1_1_115200
] = {
1993 .base_baud
= 115200,
1996 [pbn_b1_2_115200
] = {
1999 .base_baud
= 115200,
2002 [pbn_b1_4_115200
] = {
2005 .base_baud
= 115200,
2008 [pbn_b1_8_115200
] = {
2011 .base_baud
= 115200,
2014 [pbn_b1_16_115200
] = {
2017 .base_baud
= 115200,
2021 [pbn_b1_1_921600
] = {
2024 .base_baud
= 921600,
2027 [pbn_b1_2_921600
] = {
2030 .base_baud
= 921600,
2033 [pbn_b1_4_921600
] = {
2036 .base_baud
= 921600,
2039 [pbn_b1_8_921600
] = {
2042 .base_baud
= 921600,
2045 [pbn_b1_2_1250000
] = {
2048 .base_baud
= 1250000,
2052 [pbn_b1_bt_1_115200
] = {
2053 .flags
= FL_BASE1
|FL_BASE_BARS
,
2055 .base_baud
= 115200,
2058 [pbn_b1_bt_2_115200
] = {
2059 .flags
= FL_BASE1
|FL_BASE_BARS
,
2061 .base_baud
= 115200,
2064 [pbn_b1_bt_4_115200
] = {
2065 .flags
= FL_BASE1
|FL_BASE_BARS
,
2067 .base_baud
= 115200,
2071 [pbn_b1_bt_2_921600
] = {
2072 .flags
= FL_BASE1
|FL_BASE_BARS
,
2074 .base_baud
= 921600,
2078 [pbn_b1_1_1382400
] = {
2081 .base_baud
= 1382400,
2084 [pbn_b1_2_1382400
] = {
2087 .base_baud
= 1382400,
2090 [pbn_b1_4_1382400
] = {
2093 .base_baud
= 1382400,
2096 [pbn_b1_8_1382400
] = {
2099 .base_baud
= 1382400,
2103 [pbn_b2_1_115200
] = {
2106 .base_baud
= 115200,
2109 [pbn_b2_2_115200
] = {
2112 .base_baud
= 115200,
2115 [pbn_b2_4_115200
] = {
2118 .base_baud
= 115200,
2121 [pbn_b2_8_115200
] = {
2124 .base_baud
= 115200,
2128 [pbn_b2_1_460800
] = {
2131 .base_baud
= 460800,
2134 [pbn_b2_4_460800
] = {
2137 .base_baud
= 460800,
2140 [pbn_b2_8_460800
] = {
2143 .base_baud
= 460800,
2146 [pbn_b2_16_460800
] = {
2149 .base_baud
= 460800,
2153 [pbn_b2_1_921600
] = {
2156 .base_baud
= 921600,
2159 [pbn_b2_4_921600
] = {
2162 .base_baud
= 921600,
2165 [pbn_b2_8_921600
] = {
2168 .base_baud
= 921600,
2172 [pbn_b2_8_1152000
] = {
2175 .base_baud
= 1152000,
2179 [pbn_b2_bt_1_115200
] = {
2180 .flags
= FL_BASE2
|FL_BASE_BARS
,
2182 .base_baud
= 115200,
2185 [pbn_b2_bt_2_115200
] = {
2186 .flags
= FL_BASE2
|FL_BASE_BARS
,
2188 .base_baud
= 115200,
2191 [pbn_b2_bt_4_115200
] = {
2192 .flags
= FL_BASE2
|FL_BASE_BARS
,
2194 .base_baud
= 115200,
2198 [pbn_b2_bt_2_921600
] = {
2199 .flags
= FL_BASE2
|FL_BASE_BARS
,
2201 .base_baud
= 921600,
2204 [pbn_b2_bt_4_921600
] = {
2205 .flags
= FL_BASE2
|FL_BASE_BARS
,
2207 .base_baud
= 921600,
2211 [pbn_b3_2_115200
] = {
2214 .base_baud
= 115200,
2217 [pbn_b3_4_115200
] = {
2220 .base_baud
= 115200,
2223 [pbn_b3_8_115200
] = {
2226 .base_baud
= 115200,
2230 [pbn_b4_bt_2_921600
] = {
2233 .base_baud
= 921600,
2236 [pbn_b4_bt_4_921600
] = {
2239 .base_baud
= 921600,
2242 [pbn_b4_bt_8_921600
] = {
2245 .base_baud
= 921600,
2250 * Entries following this are board-specific.
2259 .base_baud
= 921600,
2260 .uart_offset
= 0x400,
2264 .flags
= FL_BASE2
|FL_BASE_BARS
,
2266 .base_baud
= 921600,
2267 .uart_offset
= 0x400,
2271 .flags
= FL_BASE2
|FL_BASE_BARS
,
2273 .base_baud
= 921600,
2274 .uart_offset
= 0x400,
2278 [pbn_exsys_4055
] = {
2281 .base_baud
= 115200,
2285 /* I think this entry is broken - the first_offset looks wrong --rmk */
2286 [pbn_plx_romulus
] = {
2289 .base_baud
= 921600,
2290 .uart_offset
= 8 << 2,
2292 .first_offset
= 0x03,
2296 * This board uses the size of PCI Base region 0 to
2297 * signal now many ports are available
2300 .flags
= FL_BASE0
|FL_REGION_SZ_CAP
,
2302 .base_baud
= 115200,
2305 [pbn_oxsemi_1_4000000
] = {
2308 .base_baud
= 4000000,
2309 .uart_offset
= 0x200,
2310 .first_offset
= 0x1000,
2312 [pbn_oxsemi_2_4000000
] = {
2315 .base_baud
= 4000000,
2316 .uart_offset
= 0x200,
2317 .first_offset
= 0x1000,
2319 [pbn_oxsemi_4_4000000
] = {
2322 .base_baud
= 4000000,
2323 .uart_offset
= 0x200,
2324 .first_offset
= 0x1000,
2326 [pbn_oxsemi_8_4000000
] = {
2329 .base_baud
= 4000000,
2330 .uart_offset
= 0x200,
2331 .first_offset
= 0x1000,
2336 * EKF addition for i960 Boards form EKF with serial port.
2339 [pbn_intel_i960
] = {
2342 .base_baud
= 921600,
2343 .uart_offset
= 8 << 2,
2345 .first_offset
= 0x10000,
2348 .flags
= FL_BASE0
|FL_NOIRQ
,
2350 .base_baud
= 458333,
2353 .first_offset
= 0x20178,
2357 * Computone - uses IOMEM.
2359 [pbn_computone_4
] = {
2362 .base_baud
= 921600,
2363 .uart_offset
= 0x40,
2365 .first_offset
= 0x200,
2367 [pbn_computone_6
] = {
2370 .base_baud
= 921600,
2371 .uart_offset
= 0x40,
2373 .first_offset
= 0x200,
2375 [pbn_computone_8
] = {
2378 .base_baud
= 921600,
2379 .uart_offset
= 0x40,
2381 .first_offset
= 0x200,
2386 .base_baud
= 460800,
2391 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
2392 * Only basic 16550A support.
2393 * XR17C15[24] are not tested, but they should work.
2395 [pbn_exar_XR17C152
] = {
2398 .base_baud
= 921600,
2399 .uart_offset
= 0x200,
2401 [pbn_exar_XR17C154
] = {
2404 .base_baud
= 921600,
2405 .uart_offset
= 0x200,
2407 [pbn_exar_XR17C158
] = {
2410 .base_baud
= 921600,
2411 .uart_offset
= 0x200,
2413 [pbn_exar_ibm_saturn
] = {
2416 .base_baud
= 921600,
2417 .uart_offset
= 0x200,
2421 * PA Semi PWRficient PA6T-1682M on-chip UART
2423 [pbn_pasemi_1682M
] = {
2426 .base_baud
= 8333333,
2429 * National Instruments 843x
2434 .base_baud
= 3686400,
2435 .uart_offset
= 0x10,
2436 .first_offset
= 0x800,
2441 .base_baud
= 3686400,
2442 .uart_offset
= 0x10,
2443 .first_offset
= 0x800,
2448 .base_baud
= 3686400,
2449 .uart_offset
= 0x10,
2450 .first_offset
= 0x800,
2455 .base_baud
= 3686400,
2456 .uart_offset
= 0x10,
2457 .first_offset
= 0x800,
2460 * ADDI-DATA GmbH PCI-Express communication cards <info@addi-data.com>
2462 [pbn_ADDIDATA_PCIe_1_3906250
] = {
2465 .base_baud
= 3906250,
2466 .uart_offset
= 0x200,
2467 .first_offset
= 0x1000,
2469 [pbn_ADDIDATA_PCIe_2_3906250
] = {
2472 .base_baud
= 3906250,
2473 .uart_offset
= 0x200,
2474 .first_offset
= 0x1000,
2476 [pbn_ADDIDATA_PCIe_4_3906250
] = {
2479 .base_baud
= 3906250,
2480 .uart_offset
= 0x200,
2481 .first_offset
= 0x1000,
2483 [pbn_ADDIDATA_PCIe_8_3906250
] = {
2486 .base_baud
= 3906250,
2487 .uart_offset
= 0x200,
2488 .first_offset
= 0x1000,
2490 [pbn_ce4100_1_115200
] = {
2493 .base_baud
= 921600,
2499 .base_baud
= 115200,
2500 .uart_offset
= 0x200,
2502 [pbn_NETMOS9900_2s_115200
] = {
2505 .base_baud
= 115200,
2509 static const struct pci_device_id softmodem_blacklist
[] = {
2510 { PCI_VDEVICE(AL
, 0x5457), }, /* ALi Corporation M5457 AC'97 Modem */
2511 { PCI_VDEVICE(MOTOROLA
, 0x3052), }, /* Motorola Si3052-based modem */
2512 { PCI_DEVICE(0x1543, 0x3052), }, /* Si3052-based modem, default IDs */
2516 * Given a complete unknown PCI device, try to use some heuristics to
2517 * guess what the configuration might be, based on the pitiful PCI
2518 * serial specs. Returns 0 on success, 1 on failure.
2520 static int __devinit
2521 serial_pci_guess_board(struct pci_dev
*dev
, struct pciserial_board
*board
)
2523 const struct pci_device_id
*blacklist
;
2524 int num_iomem
, num_port
, first_port
= -1, i
;
2527 * If it is not a communications device or the programming
2528 * interface is greater than 6, give up.
2530 * (Should we try to make guesses for multiport serial devices
2533 if ((((dev
->class >> 8) != PCI_CLASS_COMMUNICATION_SERIAL
) &&
2534 ((dev
->class >> 8) != PCI_CLASS_COMMUNICATION_MODEM
)) ||
2535 (dev
->class & 0xff) > 6)
2539 * Do not access blacklisted devices that are known not to
2540 * feature serial ports.
2542 for (blacklist
= softmodem_blacklist
;
2543 blacklist
< softmodem_blacklist
+ ARRAY_SIZE(softmodem_blacklist
);
2545 if (dev
->vendor
== blacklist
->vendor
&&
2546 dev
->device
== blacklist
->device
)
2550 num_iomem
= num_port
= 0;
2551 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
2552 if (pci_resource_flags(dev
, i
) & IORESOURCE_IO
) {
2554 if (first_port
== -1)
2557 if (pci_resource_flags(dev
, i
) & IORESOURCE_MEM
)
2562 * If there is 1 or 0 iomem regions, and exactly one port,
2563 * use it. We guess the number of ports based on the IO
2566 if (num_iomem
<= 1 && num_port
== 1) {
2567 board
->flags
= first_port
;
2568 board
->num_ports
= pci_resource_len(dev
, first_port
) / 8;
2573 * Now guess if we've got a board which indexes by BARs.
2574 * Each IO BAR should be 8 bytes, and they should follow
2579 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
2580 if (pci_resource_flags(dev
, i
) & IORESOURCE_IO
&&
2581 pci_resource_len(dev
, i
) == 8 &&
2582 (first_port
== -1 || (first_port
+ num_port
) == i
)) {
2584 if (first_port
== -1)
2590 board
->flags
= first_port
| FL_BASE_BARS
;
2591 board
->num_ports
= num_port
;
2599 serial_pci_matches(const struct pciserial_board
*board
,
2600 const struct pciserial_board
*guessed
)
2603 board
->num_ports
== guessed
->num_ports
&&
2604 board
->base_baud
== guessed
->base_baud
&&
2605 board
->uart_offset
== guessed
->uart_offset
&&
2606 board
->reg_shift
== guessed
->reg_shift
&&
2607 board
->first_offset
== guessed
->first_offset
;
2610 struct serial_private
*
2611 pciserial_init_ports(struct pci_dev
*dev
, const struct pciserial_board
*board
)
2613 struct uart_port serial_port
;
2614 struct serial_private
*priv
;
2615 struct pci_serial_quirk
*quirk
;
2616 int rc
, nr_ports
, i
;
2618 nr_ports
= board
->num_ports
;
2621 * Find an init and setup quirks.
2623 quirk
= find_quirk(dev
);
2626 * Run the new-style initialization function.
2627 * The initialization function returns:
2629 * 0 - use board->num_ports
2630 * >0 - number of ports
2633 rc
= quirk
->init(dev
);
2642 priv
= kzalloc(sizeof(struct serial_private
) +
2643 sizeof(unsigned int) * nr_ports
,
2646 priv
= ERR_PTR(-ENOMEM
);
2651 priv
->quirk
= quirk
;
2653 memset(&serial_port
, 0, sizeof(struct uart_port
));
2654 serial_port
.flags
= UPF_SKIP_TEST
| UPF_BOOT_AUTOCONF
| UPF_SHARE_IRQ
;
2655 serial_port
.uartclk
= board
->base_baud
* 16;
2656 serial_port
.irq
= get_pci_irq(dev
, board
);
2657 serial_port
.dev
= &dev
->dev
;
2659 for (i
= 0; i
< nr_ports
; i
++) {
2660 if (quirk
->setup(priv
, board
, &serial_port
, i
))
2663 #ifdef SERIAL_DEBUG_PCI
2664 printk(KERN_DEBUG
"Setup PCI port: port %lx, irq %d, type %d\n",
2665 serial_port
.iobase
, serial_port
.irq
, serial_port
.iotype
);
2668 priv
->line
[i
] = serial8250_register_port(&serial_port
);
2669 if (priv
->line
[i
] < 0) {
2670 printk(KERN_WARNING
"Couldn't register serial port %s: %d\n", pci_name(dev
), priv
->line
[i
]);
2683 EXPORT_SYMBOL_GPL(pciserial_init_ports
);
2685 void pciserial_remove_ports(struct serial_private
*priv
)
2687 struct pci_serial_quirk
*quirk
;
2690 for (i
= 0; i
< priv
->nr
; i
++)
2691 serial8250_unregister_port(priv
->line
[i
]);
2693 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
2694 if (priv
->remapped_bar
[i
])
2695 iounmap(priv
->remapped_bar
[i
]);
2696 priv
->remapped_bar
[i
] = NULL
;
2700 * Find the exit quirks.
2702 quirk
= find_quirk(priv
->dev
);
2704 quirk
->exit(priv
->dev
);
2708 EXPORT_SYMBOL_GPL(pciserial_remove_ports
);
2710 void pciserial_suspend_ports(struct serial_private
*priv
)
2714 for (i
= 0; i
< priv
->nr
; i
++)
2715 if (priv
->line
[i
] >= 0)
2716 serial8250_suspend_port(priv
->line
[i
]);
2718 EXPORT_SYMBOL_GPL(pciserial_suspend_ports
);
2720 void pciserial_resume_ports(struct serial_private
*priv
)
2725 * Ensure that the board is correctly configured.
2727 if (priv
->quirk
->init
)
2728 priv
->quirk
->init(priv
->dev
);
2730 for (i
= 0; i
< priv
->nr
; i
++)
2731 if (priv
->line
[i
] >= 0)
2732 serial8250_resume_port(priv
->line
[i
]);
2734 EXPORT_SYMBOL_GPL(pciserial_resume_ports
);
2737 * Probe one serial board. Unfortunately, there is no rhyme nor reason
2738 * to the arrangement of serial ports on a PCI card.
2740 static int __devinit
2741 pciserial_init_one(struct pci_dev
*dev
, const struct pci_device_id
*ent
)
2743 struct pci_serial_quirk
*quirk
;
2744 struct serial_private
*priv
;
2745 const struct pciserial_board
*board
;
2746 struct pciserial_board tmp
;
2749 quirk
= find_quirk(dev
);
2751 rc
= quirk
->probe(dev
);
2756 if (ent
->driver_data
>= ARRAY_SIZE(pci_boards
)) {
2757 printk(KERN_ERR
"pci_init_one: invalid driver_data: %ld\n",
2762 board
= &pci_boards
[ent
->driver_data
];
2764 rc
= pci_enable_device(dev
);
2765 pci_save_state(dev
);
2769 if (ent
->driver_data
== pbn_default
) {
2771 * Use a copy of the pci_board entry for this;
2772 * avoid changing entries in the table.
2774 memcpy(&tmp
, board
, sizeof(struct pciserial_board
));
2778 * We matched one of our class entries. Try to
2779 * determine the parameters of this board.
2781 rc
= serial_pci_guess_board(dev
, &tmp
);
2786 * We matched an explicit entry. If we are able to
2787 * detect this boards settings with our heuristic,
2788 * then we no longer need this entry.
2790 memcpy(&tmp
, &pci_boards
[pbn_default
],
2791 sizeof(struct pciserial_board
));
2792 rc
= serial_pci_guess_board(dev
, &tmp
);
2793 if (rc
== 0 && serial_pci_matches(board
, &tmp
))
2794 moan_device("Redundant entry in serial pci_table.",
2798 priv
= pciserial_init_ports(dev
, board
);
2799 if (!IS_ERR(priv
)) {
2800 pci_set_drvdata(dev
, priv
);
2807 pci_disable_device(dev
);
2811 static void __devexit
pciserial_remove_one(struct pci_dev
*dev
)
2813 struct serial_private
*priv
= pci_get_drvdata(dev
);
2815 pci_set_drvdata(dev
, NULL
);
2817 pciserial_remove_ports(priv
);
2819 pci_disable_device(dev
);
2823 static int pciserial_suspend_one(struct pci_dev
*dev
, pm_message_t state
)
2825 struct serial_private
*priv
= pci_get_drvdata(dev
);
2828 pciserial_suspend_ports(priv
);
2830 pci_save_state(dev
);
2831 pci_set_power_state(dev
, pci_choose_state(dev
, state
));
2835 static int pciserial_resume_one(struct pci_dev
*dev
)
2838 struct serial_private
*priv
= pci_get_drvdata(dev
);
2840 pci_set_power_state(dev
, PCI_D0
);
2841 pci_restore_state(dev
);
2845 * The device may have been disabled. Re-enable it.
2847 err
= pci_enable_device(dev
);
2848 /* FIXME: We cannot simply error out here */
2850 printk(KERN_ERR
"pciserial: Unable to re-enable ports, trying to continue.\n");
2851 pciserial_resume_ports(priv
);
2857 static struct pci_device_id serial_pci_tbl
[] = {
2858 /* Advantech use PCI_DEVICE_ID_ADVANTECH_PCI3620 (0x3620) as 'PCI_SUBVENDOR_ID' */
2859 { PCI_VENDOR_ID_ADVANTECH
, PCI_DEVICE_ID_ADVANTECH_PCI3620
,
2860 PCI_DEVICE_ID_ADVANTECH_PCI3620
, 0x0001, 0, 0,
2862 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
2863 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2864 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232
, 0, 0,
2866 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
2867 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2868 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232
, 0, 0,
2870 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
2871 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2872 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232
, 0, 0,
2874 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2875 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2876 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232
, 0, 0,
2878 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2879 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2880 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232
, 0, 0,
2882 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2883 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2884 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232
, 0, 0,
2886 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2887 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2888 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485
, 0, 0,
2890 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2891 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2892 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_4_4
, 0, 0,
2894 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2895 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2896 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485
, 0, 0,
2898 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2899 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2900 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485_2_2
, 0, 0,
2902 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2903 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2904 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_485
, 0, 0,
2906 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2907 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2908 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_2_6
, 0, 0,
2910 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2911 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2912 PCI_SUBDEVICE_ID_CONNECT_TECH_BH081101V1
, 0, 0,
2914 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2915 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2916 PCI_SUBDEVICE_ID_CONNECT_TECH_BH041101V1
, 0, 0,
2918 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2919 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2920 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_20MHZ
, 0, 0,
2922 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2923 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2924 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_2
, 0, 0,
2926 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2927 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2928 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_4
, 0, 0,
2930 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2931 PCI_VENDOR_ID_AFAVLAB
,
2932 PCI_SUBDEVICE_ID_AFAVLAB_P061
, 0, 0,
2934 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2935 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2936 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_232
, 0, 0,
2937 pbn_b0_2_1843200_200
},
2938 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2939 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2940 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_232
, 0, 0,
2941 pbn_b0_4_1843200_200
},
2942 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2943 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2944 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_232
, 0, 0,
2945 pbn_b0_8_1843200_200
},
2946 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2947 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2948 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_1_1
, 0, 0,
2949 pbn_b0_2_1843200_200
},
2950 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2951 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2952 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_2
, 0, 0,
2953 pbn_b0_4_1843200_200
},
2954 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2955 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2956 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_4
, 0, 0,
2957 pbn_b0_8_1843200_200
},
2958 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2959 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2960 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2
, 0, 0,
2961 pbn_b0_2_1843200_200
},
2962 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2963 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2964 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4
, 0, 0,
2965 pbn_b0_4_1843200_200
},
2966 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2967 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2968 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8
, 0, 0,
2969 pbn_b0_8_1843200_200
},
2970 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2971 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2972 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_485
, 0, 0,
2973 pbn_b0_2_1843200_200
},
2974 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2975 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2976 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_485
, 0, 0,
2977 pbn_b0_4_1843200_200
},
2978 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2979 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2980 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_485
, 0, 0,
2981 pbn_b0_8_1843200_200
},
2982 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2983 PCI_VENDOR_ID_IBM
, PCI_SUBDEVICE_ID_IBM_SATURN_SERIAL_ONE_PORT
,
2984 0, 0, pbn_exar_ibm_saturn
},
2986 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_U530
,
2987 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2988 pbn_b2_bt_1_115200
},
2989 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM2
,
2990 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2991 pbn_b2_bt_2_115200
},
2992 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM422
,
2993 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2994 pbn_b2_bt_4_115200
},
2995 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM232
,
2996 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2997 pbn_b2_bt_2_115200
},
2998 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_COMM4
,
2999 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3000 pbn_b2_bt_4_115200
},
3001 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_COMM8
,
3002 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3004 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_7803
,
3005 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3007 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM8
,
3008 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3011 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_GTEK_SERIAL2
,
3012 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3013 pbn_b2_bt_2_115200
},
3014 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_SPCOM200
,
3015 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3016 pbn_b2_bt_2_921600
},
3018 * VScom SPCOM800, from sl@s.pl
3020 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_SPCOM800
,
3021 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3023 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_1077
,
3024 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3026 /* Unknown card - subdevice 0x1584 */
3027 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3029 PCI_SUBDEVICE_ID_UNKNOWN_0x1584
, 0, 0,
3031 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3032 PCI_SUBVENDOR_ID_KEYSPAN
,
3033 PCI_SUBDEVICE_ID_KEYSPAN_SX2
, 0, 0,
3035 { PCI_VENDOR_ID_PANACOM
, PCI_DEVICE_ID_PANACOM_QUADMODEM
,
3036 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3038 { PCI_VENDOR_ID_PANACOM
, PCI_DEVICE_ID_PANACOM_DUALMODEM
,
3039 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3041 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
3042 PCI_VENDOR_ID_ESDGMBH
,
3043 PCI_DEVICE_ID_ESDGMBH_CPCIASIO4
, 0, 0,
3045 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3046 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
3047 PCI_SUBDEVICE_ID_CHASE_PCIFAST4
, 0, 0,
3049 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3050 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
3051 PCI_SUBDEVICE_ID_CHASE_PCIFAST8
, 0, 0,
3053 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3054 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
3055 PCI_SUBDEVICE_ID_CHASE_PCIFAST16
, 0, 0,
3057 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3058 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
3059 PCI_SUBDEVICE_ID_CHASE_PCIFAST16FMC
, 0, 0,
3061 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3062 PCI_SUBVENDOR_ID_CHASE_PCIRAS
,
3063 PCI_SUBDEVICE_ID_CHASE_PCIRAS4
, 0, 0,
3065 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3066 PCI_SUBVENDOR_ID_CHASE_PCIRAS
,
3067 PCI_SUBDEVICE_ID_CHASE_PCIRAS8
, 0, 0,
3069 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
3070 PCI_SUBVENDOR_ID_EXSYS
,
3071 PCI_SUBDEVICE_ID_EXSYS_4055
, 0, 0,
3074 * Megawolf Romulus PCI Serial Card, from Mike Hudson
3077 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_ROMULUS
,
3078 0x10b5, 0x106a, 0, 0,
3080 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_QSC100
,
3081 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3083 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_DSC100
,
3084 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3086 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_ESC100D
,
3087 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3089 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_ESC100M
,
3090 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3092 { PCI_VENDOR_ID_SPECIALIX
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
3093 PCI_VENDOR_ID_SPECIALIX
, PCI_SUBDEVICE_ID_SPECIALIX_SPEED4
,
3096 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
3097 PCI_SUBVENDOR_ID_SIIG
, PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL
,
3100 { PCI_VENDOR_ID_OXSEMI
, 0x9505,
3101 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3102 pbn_b0_bt_2_921600
},
3105 * The below card is a little controversial since it is the
3106 * subject of a PCI vendor/device ID clash. (See
3107 * www.ussg.iu.edu/hypermail/linux/kernel/0303.1/0516.html).
3108 * For now just used the hex ID 0x950a.
3110 { PCI_VENDOR_ID_OXSEMI
, 0x950a,
3111 PCI_SUBVENDOR_ID_SIIG
, PCI_SUBDEVICE_ID_SIIG_DUAL_SERIAL
, 0, 0,
3113 { PCI_VENDOR_ID_OXSEMI
, 0x950a,
3114 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3116 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_C950
,
3117 PCI_VENDOR_ID_OXSEMI
, PCI_SUBDEVICE_ID_OXSEMI_C950
, 0, 0,
3119 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
3120 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3122 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI952
,
3123 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3124 pbn_b0_bt_2_921600
},
3125 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI958
,
3126 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3130 * Oxford Semiconductor Inc. Tornado PCI express device range.
3132 { PCI_VENDOR_ID_OXSEMI
, 0xc101, /* OXPCIe952 1 Legacy UART */
3133 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3135 { PCI_VENDOR_ID_OXSEMI
, 0xc105, /* OXPCIe952 1 Legacy UART */
3136 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3138 { PCI_VENDOR_ID_OXSEMI
, 0xc11b, /* OXPCIe952 1 Native UART */
3139 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3140 pbn_oxsemi_1_4000000
},
3141 { PCI_VENDOR_ID_OXSEMI
, 0xc11f, /* OXPCIe952 1 Native UART */
3142 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3143 pbn_oxsemi_1_4000000
},
3144 { PCI_VENDOR_ID_OXSEMI
, 0xc120, /* OXPCIe952 1 Legacy UART */
3145 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3147 { PCI_VENDOR_ID_OXSEMI
, 0xc124, /* OXPCIe952 1 Legacy UART */
3148 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3150 { PCI_VENDOR_ID_OXSEMI
, 0xc138, /* OXPCIe952 1 Native UART */
3151 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3152 pbn_oxsemi_1_4000000
},
3153 { PCI_VENDOR_ID_OXSEMI
, 0xc13d, /* OXPCIe952 1 Native UART */
3154 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3155 pbn_oxsemi_1_4000000
},
3156 { PCI_VENDOR_ID_OXSEMI
, 0xc140, /* OXPCIe952 1 Legacy UART */
3157 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3159 { PCI_VENDOR_ID_OXSEMI
, 0xc141, /* OXPCIe952 1 Legacy UART */
3160 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3162 { PCI_VENDOR_ID_OXSEMI
, 0xc144, /* OXPCIe952 1 Legacy UART */
3163 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3165 { PCI_VENDOR_ID_OXSEMI
, 0xc145, /* OXPCIe952 1 Legacy UART */
3166 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3168 { PCI_VENDOR_ID_OXSEMI
, 0xc158, /* OXPCIe952 2 Native UART */
3169 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3170 pbn_oxsemi_2_4000000
},
3171 { PCI_VENDOR_ID_OXSEMI
, 0xc15d, /* OXPCIe952 2 Native UART */
3172 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3173 pbn_oxsemi_2_4000000
},
3174 { PCI_VENDOR_ID_OXSEMI
, 0xc208, /* OXPCIe954 4 Native UART */
3175 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3176 pbn_oxsemi_4_4000000
},
3177 { PCI_VENDOR_ID_OXSEMI
, 0xc20d, /* OXPCIe954 4 Native UART */
3178 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3179 pbn_oxsemi_4_4000000
},
3180 { PCI_VENDOR_ID_OXSEMI
, 0xc308, /* OXPCIe958 8 Native UART */
3181 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3182 pbn_oxsemi_8_4000000
},
3183 { PCI_VENDOR_ID_OXSEMI
, 0xc30d, /* OXPCIe958 8 Native UART */
3184 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3185 pbn_oxsemi_8_4000000
},
3186 { PCI_VENDOR_ID_OXSEMI
, 0xc40b, /* OXPCIe200 1 Native UART */
3187 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3188 pbn_oxsemi_1_4000000
},
3189 { PCI_VENDOR_ID_OXSEMI
, 0xc40f, /* OXPCIe200 1 Native UART */
3190 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3191 pbn_oxsemi_1_4000000
},
3192 { PCI_VENDOR_ID_OXSEMI
, 0xc41b, /* OXPCIe200 1 Native UART */
3193 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3194 pbn_oxsemi_1_4000000
},
3195 { PCI_VENDOR_ID_OXSEMI
, 0xc41f, /* OXPCIe200 1 Native UART */
3196 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3197 pbn_oxsemi_1_4000000
},
3198 { PCI_VENDOR_ID_OXSEMI
, 0xc42b, /* OXPCIe200 1 Native UART */
3199 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3200 pbn_oxsemi_1_4000000
},
3201 { PCI_VENDOR_ID_OXSEMI
, 0xc42f, /* OXPCIe200 1 Native UART */
3202 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3203 pbn_oxsemi_1_4000000
},
3204 { PCI_VENDOR_ID_OXSEMI
, 0xc43b, /* OXPCIe200 1 Native UART */
3205 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3206 pbn_oxsemi_1_4000000
},
3207 { PCI_VENDOR_ID_OXSEMI
, 0xc43f, /* OXPCIe200 1 Native UART */
3208 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3209 pbn_oxsemi_1_4000000
},
3210 { PCI_VENDOR_ID_OXSEMI
, 0xc44b, /* OXPCIe200 1 Native UART */
3211 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3212 pbn_oxsemi_1_4000000
},
3213 { PCI_VENDOR_ID_OXSEMI
, 0xc44f, /* OXPCIe200 1 Native UART */
3214 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3215 pbn_oxsemi_1_4000000
},
3216 { PCI_VENDOR_ID_OXSEMI
, 0xc45b, /* OXPCIe200 1 Native UART */
3217 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3218 pbn_oxsemi_1_4000000
},
3219 { PCI_VENDOR_ID_OXSEMI
, 0xc45f, /* OXPCIe200 1 Native UART */
3220 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3221 pbn_oxsemi_1_4000000
},
3222 { PCI_VENDOR_ID_OXSEMI
, 0xc46b, /* OXPCIe200 1 Native UART */
3223 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3224 pbn_oxsemi_1_4000000
},
3225 { PCI_VENDOR_ID_OXSEMI
, 0xc46f, /* OXPCIe200 1 Native UART */
3226 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3227 pbn_oxsemi_1_4000000
},
3228 { PCI_VENDOR_ID_OXSEMI
, 0xc47b, /* OXPCIe200 1 Native UART */
3229 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3230 pbn_oxsemi_1_4000000
},
3231 { PCI_VENDOR_ID_OXSEMI
, 0xc47f, /* OXPCIe200 1 Native UART */
3232 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3233 pbn_oxsemi_1_4000000
},
3234 { PCI_VENDOR_ID_OXSEMI
, 0xc48b, /* OXPCIe200 1 Native UART */
3235 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3236 pbn_oxsemi_1_4000000
},
3237 { PCI_VENDOR_ID_OXSEMI
, 0xc48f, /* OXPCIe200 1 Native UART */
3238 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3239 pbn_oxsemi_1_4000000
},
3240 { PCI_VENDOR_ID_OXSEMI
, 0xc49b, /* OXPCIe200 1 Native UART */
3241 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3242 pbn_oxsemi_1_4000000
},
3243 { PCI_VENDOR_ID_OXSEMI
, 0xc49f, /* OXPCIe200 1 Native UART */
3244 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3245 pbn_oxsemi_1_4000000
},
3246 { PCI_VENDOR_ID_OXSEMI
, 0xc4ab, /* OXPCIe200 1 Native UART */
3247 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3248 pbn_oxsemi_1_4000000
},
3249 { PCI_VENDOR_ID_OXSEMI
, 0xc4af, /* OXPCIe200 1 Native UART */
3250 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3251 pbn_oxsemi_1_4000000
},
3252 { PCI_VENDOR_ID_OXSEMI
, 0xc4bb, /* OXPCIe200 1 Native UART */
3253 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3254 pbn_oxsemi_1_4000000
},
3255 { PCI_VENDOR_ID_OXSEMI
, 0xc4bf, /* OXPCIe200 1 Native UART */
3256 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3257 pbn_oxsemi_1_4000000
},
3258 { PCI_VENDOR_ID_OXSEMI
, 0xc4cb, /* OXPCIe200 1 Native UART */
3259 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3260 pbn_oxsemi_1_4000000
},
3261 { PCI_VENDOR_ID_OXSEMI
, 0xc4cf, /* OXPCIe200 1 Native UART */
3262 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3263 pbn_oxsemi_1_4000000
},
3265 * Mainpine Inc. IQ Express "Rev3" utilizing OxSemi Tornado
3267 { PCI_VENDOR_ID_MAINPINE
, 0x4000, /* IQ Express 1 Port V.34 Super-G3 Fax */
3268 PCI_VENDOR_ID_MAINPINE
, 0x4001, 0, 0,
3269 pbn_oxsemi_1_4000000
},
3270 { PCI_VENDOR_ID_MAINPINE
, 0x4000, /* IQ Express 2 Port V.34 Super-G3 Fax */
3271 PCI_VENDOR_ID_MAINPINE
, 0x4002, 0, 0,
3272 pbn_oxsemi_2_4000000
},
3273 { PCI_VENDOR_ID_MAINPINE
, 0x4000, /* IQ Express 4 Port V.34 Super-G3 Fax */
3274 PCI_VENDOR_ID_MAINPINE
, 0x4004, 0, 0,
3275 pbn_oxsemi_4_4000000
},
3276 { PCI_VENDOR_ID_MAINPINE
, 0x4000, /* IQ Express 8 Port V.34 Super-G3 Fax */
3277 PCI_VENDOR_ID_MAINPINE
, 0x4008, 0, 0,
3278 pbn_oxsemi_8_4000000
},
3281 * Digi/IBM PCIe 2-port Async EIA-232 Adapter utilizing OxSemi Tornado
3283 { PCI_VENDOR_ID_DIGI
, PCIE_DEVICE_ID_NEO_2_OX_IBM
,
3284 PCI_SUBVENDOR_ID_IBM
, PCI_ANY_ID
, 0, 0,
3285 pbn_oxsemi_2_4000000
},
3288 * SBS Technologies, Inc. P-Octal and PMC-OCTPRO cards,
3289 * from skokodyn@yahoo.com
3291 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
3292 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_OCTPRO232
, 0, 0,
3294 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
3295 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_OCTPRO422
, 0, 0,
3297 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
3298 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_POCTAL232
, 0, 0,
3300 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
3301 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_POCTAL422
, 0, 0,
3305 * Digitan DS560-558, from jimd@esoft.com
3307 { PCI_VENDOR_ID_ATT
, PCI_DEVICE_ID_ATT_VENUS_MODEM
,
3308 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3312 * Titan Electronic cards
3313 * The 400L and 800L have a custom setup quirk.
3315 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100
,
3316 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3318 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200
,
3319 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3321 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400
,
3322 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3324 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800B
,
3325 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3327 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100L
,
3328 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3330 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200L
,
3331 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3332 pbn_b1_bt_2_921600
},
3333 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400L
,
3334 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3335 pbn_b0_bt_4_921600
},
3336 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800L
,
3337 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3338 pbn_b0_bt_8_921600
},
3339 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200I
,
3340 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3341 pbn_b4_bt_2_921600
},
3342 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400I
,
3343 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3344 pbn_b4_bt_4_921600
},
3345 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800I
,
3346 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3347 pbn_b4_bt_8_921600
},
3348 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400EH
,
3349 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3351 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800EH
,
3352 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3354 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800EHB
,
3355 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3357 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100E
,
3358 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3359 pbn_oxsemi_1_4000000
},
3360 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200E
,
3361 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3362 pbn_oxsemi_2_4000000
},
3363 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400E
,
3364 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3365 pbn_oxsemi_4_4000000
},
3366 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800E
,
3367 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3368 pbn_oxsemi_8_4000000
},
3369 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200EI
,
3370 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3371 pbn_oxsemi_2_4000000
},
3372 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200EISI
,
3373 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3374 pbn_oxsemi_2_4000000
},
3376 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_550
,
3377 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3379 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_650
,
3380 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3382 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_850
,
3383 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3385 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_550
,
3386 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3387 pbn_b2_bt_2_921600
},
3388 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_650
,
3389 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3390 pbn_b2_bt_2_921600
},
3391 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_850
,
3392 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3393 pbn_b2_bt_2_921600
},
3394 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_550
,
3395 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3396 pbn_b2_bt_4_921600
},
3397 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_650
,
3398 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3399 pbn_b2_bt_4_921600
},
3400 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_850
,
3401 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3402 pbn_b2_bt_4_921600
},
3403 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_550
,
3404 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3406 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_650
,
3407 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3409 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_850
,
3410 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3412 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_550
,
3413 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3414 pbn_b0_bt_2_921600
},
3415 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_650
,
3416 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3417 pbn_b0_bt_2_921600
},
3418 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_850
,
3419 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3420 pbn_b0_bt_2_921600
},
3421 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_550
,
3422 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3423 pbn_b0_bt_4_921600
},
3424 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_650
,
3425 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3426 pbn_b0_bt_4_921600
},
3427 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_850
,
3428 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3429 pbn_b0_bt_4_921600
},
3430 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_550
,
3431 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3432 pbn_b0_bt_8_921600
},
3433 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_650
,
3434 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3435 pbn_b0_bt_8_921600
},
3436 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_850
,
3437 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3438 pbn_b0_bt_8_921600
},
3441 * Computone devices submitted by Doug McNash dmcnash@computone.com
3443 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
3444 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG4
,
3445 0, 0, pbn_computone_4
},
3446 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
3447 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG8
,
3448 0, 0, pbn_computone_8
},
3449 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
3450 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG6
,
3451 0, 0, pbn_computone_6
},
3453 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI95N
,
3454 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3456 { PCI_VENDOR_ID_TIMEDIA
, PCI_DEVICE_ID_TIMEDIA_1889
,
3457 PCI_VENDOR_ID_TIMEDIA
, PCI_ANY_ID
, 0, 0,
3458 pbn_b0_bt_1_921600
},
3461 * AFAVLAB serial card, from Harald Welte <laforge@gnumonks.org>
3463 { PCI_VENDOR_ID_AFAVLAB
, PCI_DEVICE_ID_AFAVLAB_P028
,
3464 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3465 pbn_b0_bt_8_115200
},
3466 { PCI_VENDOR_ID_AFAVLAB
, PCI_DEVICE_ID_AFAVLAB_P030
,
3467 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3468 pbn_b0_bt_8_115200
},
3470 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_DSERIAL
,
3471 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3472 pbn_b0_bt_2_115200
},
3473 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATRO_A
,
3474 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3475 pbn_b0_bt_2_115200
},
3476 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATRO_B
,
3477 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3478 pbn_b0_bt_2_115200
},
3479 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATTRO_A
,
3480 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3481 pbn_b0_bt_2_115200
},
3482 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATTRO_B
,
3483 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3484 pbn_b0_bt_2_115200
},
3485 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_OCTO_A
,
3486 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3487 pbn_b0_bt_4_460800
},
3488 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_OCTO_B
,
3489 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3490 pbn_b0_bt_4_460800
},
3491 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_PORT_PLUS
,
3492 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3493 pbn_b0_bt_2_460800
},
3494 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUAD_A
,
3495 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3496 pbn_b0_bt_2_460800
},
3497 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUAD_B
,
3498 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3499 pbn_b0_bt_2_460800
},
3500 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_SSERIAL
,
3501 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3502 pbn_b0_bt_1_115200
},
3503 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_PORT_650
,
3504 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3505 pbn_b0_bt_1_460800
},
3508 * Korenix Jetcard F0/F1 cards (JC1204, JC1208, JC1404, JC1408).
3509 * Cards are identified by their subsystem vendor IDs, which
3510 * (in hex) match the model number.
3512 * Note that JC140x are RS422/485 cards which require ox950
3513 * ACR = 0x10, and as such are not currently fully supported.
3515 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF0
,
3516 0x1204, 0x0004, 0, 0,
3518 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF0
,
3519 0x1208, 0x0004, 0, 0,
3521 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
3522 0x1402, 0x0002, 0, 0,
3523 pbn_b0_2_921600 }, */
3524 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
3525 0x1404, 0x0004, 0, 0,
3526 pbn_b0_4_921600 }, */
3527 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF1
,
3528 0x1208, 0x0004, 0, 0,
3531 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF2
,
3532 0x1204, 0x0004, 0, 0,
3534 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF2
,
3535 0x1208, 0x0004, 0, 0,
3537 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF3
,
3538 0x1208, 0x0004, 0, 0,
3541 * Dell Remote Access Card 4 - Tim_T_Murphy@Dell.com
3543 { PCI_VENDOR_ID_DELL
, PCI_DEVICE_ID_DELL_RAC4
,
3544 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3548 * Dell Remote Access Card III - Tim_T_Murphy@Dell.com
3550 { PCI_VENDOR_ID_DELL
, PCI_DEVICE_ID_DELL_RACIII
,
3551 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3555 * RAStel 2 port modem, gerg@moreton.com.au
3557 { PCI_VENDOR_ID_MORETON
, PCI_DEVICE_ID_RASTEL_2PORT
,
3558 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3559 pbn_b2_bt_2_115200
},
3562 * EKF addition for i960 Boards form EKF with serial port
3564 { PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_80960_RP
,
3565 0xE4BF, PCI_ANY_ID
, 0, 0,
3569 * Xircom Cardbus/Ethernet combos
3571 { PCI_VENDOR_ID_XIRCOM
, PCI_DEVICE_ID_XIRCOM_X3201_MDM
,
3572 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3575 * Xircom RBM56G cardbus modem - Dirk Arnold (temp entry)
3577 { PCI_VENDOR_ID_XIRCOM
, PCI_DEVICE_ID_XIRCOM_RBM56G
,
3578 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3582 * Untested PCI modems, sent in from various folks...
3586 * Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de>
3588 { PCI_VENDOR_ID_ROCKWELL
, 0x1004,
3589 0x1048, 0x1500, 0, 0,
3592 { PCI_VENDOR_ID_SGI
, PCI_DEVICE_ID_SGI_IOC3
,
3599 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA
,
3600 PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA_RMP3
, 0, 0,
3602 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA
,
3603 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3605 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA_AUX
,
3606 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3609 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM2
,
3610 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3612 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM4
,
3613 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3615 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM8
,
3616 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3620 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
3622 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
3623 PCI_ANY_ID
, PCI_ANY_ID
,
3625 0, pbn_exar_XR17C152
},
3626 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
3627 PCI_ANY_ID
, PCI_ANY_ID
,
3629 0, pbn_exar_XR17C154
},
3630 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
3631 PCI_ANY_ID
, PCI_ANY_ID
,
3633 0, pbn_exar_XR17C158
},
3636 * Topic TP560 Data/Fax/Voice 56k modem (reported by Evan Clarke)
3638 { PCI_VENDOR_ID_TOPIC
, PCI_DEVICE_ID_TOPIC_TP560
,
3639 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3644 { PCI_VENDOR_ID_ITE
, PCI_DEVICE_ID_ITE_8872
,
3645 PCI_ANY_ID
, PCI_ANY_ID
,
3647 pbn_b1_bt_1_115200
},
3652 { PCI_VENDOR_ID_INTASHIELD
, PCI_DEVICE_ID_INTASHIELD_IS200
,
3653 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0, /* 135a.0811 */
3658 { PCI_VENDOR_ID_INTASHIELD
, PCI_DEVICE_ID_INTASHIELD_IS400
,
3659 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0, /* 135a.0dc0 */
3662 * Perle PCI-RAS cards
3664 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
3665 PCI_SUBVENDOR_ID_PERLE
, PCI_SUBDEVICE_ID_PCI_RAS4
,
3666 0, 0, pbn_b2_4_921600
},
3667 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
3668 PCI_SUBVENDOR_ID_PERLE
, PCI_SUBDEVICE_ID_PCI_RAS8
,
3669 0, 0, pbn_b2_8_921600
},
3672 * Mainpine series cards: Fairly standard layout but fools
3673 * parts of the autodetect in some cases and uses otherwise
3674 * unmatched communications subclasses in the PCI Express case
3677 { /* RockForceDUO */
3678 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3679 PCI_VENDOR_ID_MAINPINE
, 0x0200,
3680 0, 0, pbn_b0_2_115200
},
3681 { /* RockForceQUATRO */
3682 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3683 PCI_VENDOR_ID_MAINPINE
, 0x0300,
3684 0, 0, pbn_b0_4_115200
},
3685 { /* RockForceDUO+ */
3686 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3687 PCI_VENDOR_ID_MAINPINE
, 0x0400,
3688 0, 0, pbn_b0_2_115200
},
3689 { /* RockForceQUATRO+ */
3690 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3691 PCI_VENDOR_ID_MAINPINE
, 0x0500,
3692 0, 0, pbn_b0_4_115200
},
3694 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3695 PCI_VENDOR_ID_MAINPINE
, 0x0600,
3696 0, 0, pbn_b0_2_115200
},
3698 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3699 PCI_VENDOR_ID_MAINPINE
, 0x0700,
3700 0, 0, pbn_b0_4_115200
},
3701 { /* RockForceOCTO+ */
3702 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3703 PCI_VENDOR_ID_MAINPINE
, 0x0800,
3704 0, 0, pbn_b0_8_115200
},
3705 { /* RockForceDUO+ */
3706 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3707 PCI_VENDOR_ID_MAINPINE
, 0x0C00,
3708 0, 0, pbn_b0_2_115200
},
3709 { /* RockForceQUARTRO+ */
3710 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3711 PCI_VENDOR_ID_MAINPINE
, 0x0D00,
3712 0, 0, pbn_b0_4_115200
},
3713 { /* RockForceOCTO+ */
3714 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3715 PCI_VENDOR_ID_MAINPINE
, 0x1D00,
3716 0, 0, pbn_b0_8_115200
},
3718 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3719 PCI_VENDOR_ID_MAINPINE
, 0x2000,
3720 0, 0, pbn_b0_1_115200
},
3722 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3723 PCI_VENDOR_ID_MAINPINE
, 0x2100,
3724 0, 0, pbn_b0_1_115200
},
3726 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3727 PCI_VENDOR_ID_MAINPINE
, 0x2200,
3728 0, 0, pbn_b0_2_115200
},
3730 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3731 PCI_VENDOR_ID_MAINPINE
, 0x2300,
3732 0, 0, pbn_b0_2_115200
},
3734 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3735 PCI_VENDOR_ID_MAINPINE
, 0x2400,
3736 0, 0, pbn_b0_4_115200
},
3738 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3739 PCI_VENDOR_ID_MAINPINE
, 0x2500,
3740 0, 0, pbn_b0_4_115200
},
3742 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3743 PCI_VENDOR_ID_MAINPINE
, 0x2600,
3744 0, 0, pbn_b0_8_115200
},
3746 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3747 PCI_VENDOR_ID_MAINPINE
, 0x2700,
3748 0, 0, pbn_b0_8_115200
},
3749 { /* IQ Express D1 */
3750 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3751 PCI_VENDOR_ID_MAINPINE
, 0x3000,
3752 0, 0, pbn_b0_1_115200
},
3753 { /* IQ Express F1 */
3754 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3755 PCI_VENDOR_ID_MAINPINE
, 0x3100,
3756 0, 0, pbn_b0_1_115200
},
3757 { /* IQ Express D2 */
3758 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3759 PCI_VENDOR_ID_MAINPINE
, 0x3200,
3760 0, 0, pbn_b0_2_115200
},
3761 { /* IQ Express F2 */
3762 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3763 PCI_VENDOR_ID_MAINPINE
, 0x3300,
3764 0, 0, pbn_b0_2_115200
},
3765 { /* IQ Express D4 */
3766 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3767 PCI_VENDOR_ID_MAINPINE
, 0x3400,
3768 0, 0, pbn_b0_4_115200
},
3769 { /* IQ Express F4 */
3770 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3771 PCI_VENDOR_ID_MAINPINE
, 0x3500,
3772 0, 0, pbn_b0_4_115200
},
3773 { /* IQ Express D8 */
3774 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3775 PCI_VENDOR_ID_MAINPINE
, 0x3C00,
3776 0, 0, pbn_b0_8_115200
},
3777 { /* IQ Express F8 */
3778 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
3779 PCI_VENDOR_ID_MAINPINE
, 0x3D00,
3780 0, 0, pbn_b0_8_115200
},
3784 * PA Semi PA6T-1682M on-chip UART
3786 { PCI_VENDOR_ID_PASEMI
, 0xa004,
3787 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3791 * National Instruments
3793 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI23216
,
3794 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3796 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI2328
,
3797 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3799 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI2324
,
3800 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3801 pbn_b1_bt_4_115200
},
3802 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI2322
,
3803 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3804 pbn_b1_bt_2_115200
},
3805 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI2324I
,
3806 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3807 pbn_b1_bt_4_115200
},
3808 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI2322I
,
3809 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3810 pbn_b1_bt_2_115200
},
3811 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8420_23216
,
3812 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3814 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8420_2328
,
3815 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3817 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8420_2324
,
3818 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3819 pbn_b1_bt_4_115200
},
3820 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8420_2322
,
3821 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3822 pbn_b1_bt_2_115200
},
3823 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8422_2324
,
3824 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3825 pbn_b1_bt_4_115200
},
3826 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8422_2322
,
3827 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3828 pbn_b1_bt_2_115200
},
3829 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8430_2322
,
3830 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3832 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI8430_2322
,
3833 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3835 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8430_2324
,
3836 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3838 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI8430_2324
,
3839 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3841 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8430_2328
,
3842 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3844 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI8430_2328
,
3845 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3847 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8430_23216
,
3848 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3850 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI8430_23216
,
3851 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3853 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8432_2322
,
3854 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3856 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI8432_2322
,
3857 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3859 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PXI8432_2324
,
3860 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3862 { PCI_VENDOR_ID_NI
, PCI_DEVICE_ID_NI_PCI8432_2324
,
3863 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
3867 * ADDI-DATA GmbH communication cards <info@addi-data.com>
3869 { PCI_VENDOR_ID_ADDIDATA
,
3870 PCI_DEVICE_ID_ADDIDATA_APCI7500
,
3877 { PCI_VENDOR_ID_ADDIDATA
,
3878 PCI_DEVICE_ID_ADDIDATA_APCI7420
,
3885 { PCI_VENDOR_ID_ADDIDATA
,
3886 PCI_DEVICE_ID_ADDIDATA_APCI7300
,
3893 { PCI_VENDOR_ID_ADDIDATA_OLD
,
3894 PCI_DEVICE_ID_ADDIDATA_APCI7800
,
3901 { PCI_VENDOR_ID_ADDIDATA
,
3902 PCI_DEVICE_ID_ADDIDATA_APCI7500_2
,
3909 { PCI_VENDOR_ID_ADDIDATA
,
3910 PCI_DEVICE_ID_ADDIDATA_APCI7420_2
,
3917 { PCI_VENDOR_ID_ADDIDATA
,
3918 PCI_DEVICE_ID_ADDIDATA_APCI7300_2
,
3925 { PCI_VENDOR_ID_ADDIDATA
,
3926 PCI_DEVICE_ID_ADDIDATA_APCI7500_3
,
3933 { PCI_VENDOR_ID_ADDIDATA
,
3934 PCI_DEVICE_ID_ADDIDATA_APCI7420_3
,
3941 { PCI_VENDOR_ID_ADDIDATA
,
3942 PCI_DEVICE_ID_ADDIDATA_APCI7300_3
,
3949 { PCI_VENDOR_ID_ADDIDATA
,
3950 PCI_DEVICE_ID_ADDIDATA_APCI7800_3
,
3957 { PCI_VENDOR_ID_ADDIDATA
,
3958 PCI_DEVICE_ID_ADDIDATA_APCIe7500
,
3963 pbn_ADDIDATA_PCIe_4_3906250
},
3965 { PCI_VENDOR_ID_ADDIDATA
,
3966 PCI_DEVICE_ID_ADDIDATA_APCIe7420
,
3971 pbn_ADDIDATA_PCIe_2_3906250
},
3973 { PCI_VENDOR_ID_ADDIDATA
,
3974 PCI_DEVICE_ID_ADDIDATA_APCIe7300
,
3979 pbn_ADDIDATA_PCIe_1_3906250
},
3981 { PCI_VENDOR_ID_ADDIDATA
,
3982 PCI_DEVICE_ID_ADDIDATA_APCIe7800
,
3987 pbn_ADDIDATA_PCIe_8_3906250
},
3989 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9835
,
3990 PCI_VENDOR_ID_IBM
, 0x0299,
3991 0, 0, pbn_b0_bt_2_115200
},
3993 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9901
,
3995 0, 0, pbn_b0_1_115200
},
3997 /* the 9901 is a rebranded 9912 */
3998 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9912
,
4000 0, 0, pbn_b0_1_115200
},
4002 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9922
,
4004 0, 0, pbn_b0_1_115200
},
4006 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9904
,
4008 0, 0, pbn_b0_1_115200
},
4010 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9900
,
4012 0, 0, pbn_b0_1_115200
},
4014 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9900
,
4016 0, 0, pbn_NETMOS9900_2s_115200
},
4019 * Best Connectivity and Rosewill PCI Multi I/O cards
4022 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9865
,
4024 0, 0, pbn_b0_1_115200
},
4026 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9865
,
4028 0, 0, pbn_b0_bt_2_115200
},
4030 { PCI_VENDOR_ID_NETMOS
, PCI_DEVICE_ID_NETMOS_9865
,
4032 0, 0, pbn_b0_bt_4_115200
},
4034 { PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_CE4100_UART
,
4035 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
4036 pbn_ce4100_1_115200
},
4041 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_CRONYX_OMEGA
,
4042 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
4046 * These entries match devices with class COMMUNICATION_SERIAL,
4047 * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
4049 { PCI_ANY_ID
, PCI_ANY_ID
,
4050 PCI_ANY_ID
, PCI_ANY_ID
,
4051 PCI_CLASS_COMMUNICATION_SERIAL
<< 8,
4052 0xffff00, pbn_default
},
4053 { PCI_ANY_ID
, PCI_ANY_ID
,
4054 PCI_ANY_ID
, PCI_ANY_ID
,
4055 PCI_CLASS_COMMUNICATION_MODEM
<< 8,
4056 0xffff00, pbn_default
},
4057 { PCI_ANY_ID
, PCI_ANY_ID
,
4058 PCI_ANY_ID
, PCI_ANY_ID
,
4059 PCI_CLASS_COMMUNICATION_MULTISERIAL
<< 8,
4060 0xffff00, pbn_default
},
4064 static pci_ers_result_t
serial8250_io_error_detected(struct pci_dev
*dev
,
4065 pci_channel_state_t state
)
4067 struct serial_private
*priv
= pci_get_drvdata(dev
);
4069 if (state
== pci_channel_io_perm_failure
)
4070 return PCI_ERS_RESULT_DISCONNECT
;
4073 pciserial_suspend_ports(priv
);
4075 pci_disable_device(dev
);
4077 return PCI_ERS_RESULT_NEED_RESET
;
4080 static pci_ers_result_t
serial8250_io_slot_reset(struct pci_dev
*dev
)
4084 rc
= pci_enable_device(dev
);
4087 return PCI_ERS_RESULT_DISCONNECT
;
4089 pci_restore_state(dev
);
4090 pci_save_state(dev
);
4092 return PCI_ERS_RESULT_RECOVERED
;
4095 static void serial8250_io_resume(struct pci_dev
*dev
)
4097 struct serial_private
*priv
= pci_get_drvdata(dev
);
4100 pciserial_resume_ports(priv
);
4103 static struct pci_error_handlers serial8250_err_handler
= {
4104 .error_detected
= serial8250_io_error_detected
,
4105 .slot_reset
= serial8250_io_slot_reset
,
4106 .resume
= serial8250_io_resume
,
4109 static struct pci_driver serial_pci_driver
= {
4111 .probe
= pciserial_init_one
,
4112 .remove
= __devexit_p(pciserial_remove_one
),
4114 .suspend
= pciserial_suspend_one
,
4115 .resume
= pciserial_resume_one
,
4117 .id_table
= serial_pci_tbl
,
4118 .err_handler
= &serial8250_err_handler
,
4121 static int __init
serial8250_pci_init(void)
4123 return pci_register_driver(&serial_pci_driver
);
4126 static void __exit
serial8250_pci_exit(void)
4128 pci_unregister_driver(&serial_pci_driver
);
4131 module_init(serial8250_pci_init
);
4132 module_exit(serial8250_pci_exit
);
4134 MODULE_LICENSE("GPL");
4135 MODULE_DESCRIPTION("Generic 8250/16x50 PCI serial probe module");
4136 MODULE_DEVICE_TABLE(pci
, serial_pci_tbl
);