2 * linux/drivers/char/8250_pci.c
4 * Probe module for 8250/16550-type PCI serial ports.
6 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
8 * Copyright (C) 2001 Russell King, All Rights Reserved.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License.
14 * $Id: 8250_pci.c,v 1.28 2002/11/02 11:14:18 rmk Exp $
16 #include <linux/module.h>
17 #include <linux/init.h>
18 #include <linux/pci.h>
19 #include <linux/string.h>
20 #include <linux/kernel.h>
21 #include <linux/slab.h>
22 #include <linux/delay.h>
23 #include <linux/tty.h>
24 #include <linux/serial_core.h>
25 #include <linux/8250_pci.h>
26 #include <linux/bitops.h>
28 #include <asm/byteorder.h>
33 #undef SERIAL_DEBUG_PCI
36 * init function returns:
37 * > 0 - number of ports
38 * = 0 - use board->num_ports
41 struct pci_serial_quirk
{
46 int (*init
)(struct pci_dev
*dev
);
47 int (*setup
)(struct serial_private
*, struct pciserial_board
*,
48 struct uart_port
*, int);
49 void (*exit
)(struct pci_dev
*dev
);
52 #define PCI_NUM_BAR_RESOURCES 6
54 struct serial_private
{
57 void __iomem
*remapped_bar
[PCI_NUM_BAR_RESOURCES
];
58 struct pci_serial_quirk
*quirk
;
62 static void moan_device(const char *str
, struct pci_dev
*dev
)
64 printk(KERN_WARNING
"%s: %s\n"
65 KERN_WARNING
"Please send the output of lspci -vv, this\n"
66 KERN_WARNING
"message (0x%04x,0x%04x,0x%04x,0x%04x), the\n"
67 KERN_WARNING
"manufacturer and name of serial board or\n"
68 KERN_WARNING
"modem board to rmk+serial@arm.linux.org.uk.\n",
69 pci_name(dev
), str
, dev
->vendor
, dev
->device
,
70 dev
->subsystem_vendor
, dev
->subsystem_device
);
74 setup_port(struct serial_private
*priv
, struct uart_port
*port
,
75 int bar
, int offset
, int regshift
)
77 struct pci_dev
*dev
= priv
->dev
;
78 unsigned long base
, len
;
80 if (bar
>= PCI_NUM_BAR_RESOURCES
)
83 base
= pci_resource_start(dev
, bar
);
85 if (pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) {
86 len
= pci_resource_len(dev
, bar
);
88 if (!priv
->remapped_bar
[bar
])
89 priv
->remapped_bar
[bar
] = ioremap(base
, len
);
90 if (!priv
->remapped_bar
[bar
])
93 port
->iotype
= UPIO_MEM
;
95 port
->mapbase
= base
+ offset
;
96 port
->membase
= priv
->remapped_bar
[bar
] + offset
;
97 port
->regshift
= regshift
;
99 port
->iotype
= UPIO_PORT
;
100 port
->iobase
= base
+ offset
;
102 port
->membase
= NULL
;
109 * AFAVLAB uses a different mixture of BARs and offsets
110 * Not that ugly ;) -- HW
113 afavlab_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
114 struct uart_port
*port
, int idx
)
116 unsigned int bar
, offset
= board
->first_offset
;
118 bar
= FL_GET_BASE(board
->flags
);
123 offset
+= (idx
- 4) * board
->uart_offset
;
126 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
130 * HP's Remote Management Console. The Diva chip came in several
131 * different versions. N-class, L2000 and A500 have two Diva chips, each
132 * with 3 UARTs (the third UART on the second chip is unused). Superdome
133 * and Keystone have one Diva chip with 3 UARTs. Some later machines have
134 * one Diva chip, but it has been expanded to 5 UARTs.
136 static int pci_hp_diva_init(struct pci_dev
*dev
)
140 switch (dev
->subsystem_device
) {
141 case PCI_DEVICE_ID_HP_DIVA_TOSCA1
:
142 case PCI_DEVICE_ID_HP_DIVA_HALFDOME
:
143 case PCI_DEVICE_ID_HP_DIVA_KEYSTONE
:
144 case PCI_DEVICE_ID_HP_DIVA_EVEREST
:
147 case PCI_DEVICE_ID_HP_DIVA_TOSCA2
:
150 case PCI_DEVICE_ID_HP_DIVA_MAESTRO
:
153 case PCI_DEVICE_ID_HP_DIVA_POWERBAR
:
154 case PCI_DEVICE_ID_HP_DIVA_HURRICANE
:
163 * HP's Diva chip puts the 4th/5th serial port further out, and
164 * some serial ports are supposed to be hidden on certain models.
167 pci_hp_diva_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
168 struct uart_port
*port
, int idx
)
170 unsigned int offset
= board
->first_offset
;
171 unsigned int bar
= FL_GET_BASE(board
->flags
);
173 switch (priv
->dev
->subsystem_device
) {
174 case PCI_DEVICE_ID_HP_DIVA_MAESTRO
:
178 case PCI_DEVICE_ID_HP_DIVA_EVEREST
:
188 offset
+= idx
* board
->uart_offset
;
190 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
194 * Added for EKF Intel i960 serial boards
196 static int pci_inteli960ni_init(struct pci_dev
*dev
)
198 unsigned long oldval
;
200 if (!(dev
->subsystem_device
& 0x1000))
203 /* is firmware started? */
204 pci_read_config_dword(dev
, 0x44, (void*) &oldval
);
205 if (oldval
== 0x00001000L
) { /* RESET value */
206 printk(KERN_DEBUG
"Local i960 firmware missing");
213 * Some PCI serial cards using the PLX 9050 PCI interface chip require
214 * that the card interrupt be explicitly enabled or disabled. This
215 * seems to be mainly needed on card using the PLX which also use I/O
218 static int pci_plx9050_init(struct pci_dev
*dev
)
223 if ((pci_resource_flags(dev
, 0) & IORESOURCE_MEM
) == 0) {
224 moan_device("no memory in bar 0", dev
);
229 if (dev
->vendor
== PCI_VENDOR_ID_PANACOM
||
230 dev
->subsystem_vendor
== PCI_SUBVENDOR_ID_EXSYS
) {
233 if ((dev
->vendor
== PCI_VENDOR_ID_PLX
) &&
234 (dev
->device
== PCI_DEVICE_ID_PLX_ROMULUS
)) {
236 * As the megawolf cards have the int pins active
237 * high, and have 2 UART chips, both ints must be
238 * enabled on the 9050. Also, the UARTS are set in
239 * 16450 mode by default, so we have to enable the
240 * 16C950 'enhanced' mode so that we can use the
247 * enable/disable interrupts
249 p
= ioremap(pci_resource_start(dev
, 0), 0x80);
252 writel(irq_config
, p
+ 0x4c);
255 * Read the register back to ensure that it took effect.
263 static void __devexit
pci_plx9050_exit(struct pci_dev
*dev
)
267 if ((pci_resource_flags(dev
, 0) & IORESOURCE_MEM
) == 0)
273 p
= ioremap(pci_resource_start(dev
, 0), 0x80);
278 * Read the register back to ensure that it took effect.
285 /* SBS Technologies Inc. PMC-OCTPRO and P-OCTAL cards */
287 sbs_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
288 struct uart_port
*port
, int idx
)
290 unsigned int bar
, offset
= board
->first_offset
;
295 /* first four channels map to 0, 0x100, 0x200, 0x300 */
296 offset
+= idx
* board
->uart_offset
;
297 } else if (idx
< 8) {
298 /* last four channels map to 0x1000, 0x1100, 0x1200, 0x1300 */
299 offset
+= idx
* board
->uart_offset
+ 0xC00;
300 } else /* we have only 8 ports on PMC-OCTALPRO */
303 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
307 * This does initialization for PMC OCTALPRO cards:
308 * maps the device memory, resets the UARTs (needed, bc
309 * if the module is removed and inserted again, the card
310 * is in the sleep mode) and enables global interrupt.
313 /* global control register offset for SBS PMC-OctalPro */
314 #define OCT_REG_CR_OFF 0x500
316 static int sbs_init(struct pci_dev
*dev
)
320 p
= ioremap(pci_resource_start(dev
, 0),pci_resource_len(dev
,0));
324 /* Set bit-4 Control Register (UART RESET) in to reset the uarts */
325 writeb(0x10,p
+ OCT_REG_CR_OFF
);
327 writeb(0x0,p
+ OCT_REG_CR_OFF
);
329 /* Set bit-2 (INTENABLE) of Control Register */
330 writeb(0x4, p
+ OCT_REG_CR_OFF
);
337 * Disables the global interrupt of PMC-OctalPro
340 static void __devexit
sbs_exit(struct pci_dev
*dev
)
344 p
= ioremap(pci_resource_start(dev
, 0),pci_resource_len(dev
,0));
346 writeb(0, p
+ OCT_REG_CR_OFF
);
352 * SIIG serial cards have an PCI interface chip which also controls
353 * the UART clocking frequency. Each UART can be clocked independently
354 * (except cards equiped with 4 UARTs) and initial clocking settings
355 * are stored in the EEPROM chip. It can cause problems because this
356 * version of serial driver doesn't support differently clocked UART's
357 * on single PCI card. To prevent this, initialization functions set
358 * high frequency clocking for all UART's on given card. It is safe (I
359 * hope) because it doesn't touch EEPROM settings to prevent conflicts
360 * with other OSes (like M$ DOS).
362 * SIIG support added by Andrey Panin <pazke@donpac.ru>, 10/1999
364 * There is two family of SIIG serial cards with different PCI
365 * interface chip and different configuration methods:
366 * - 10x cards have control registers in IO and/or memory space;
367 * - 20x cards have control registers in standard PCI configuration space.
369 * Note: all 10x cards have PCI device ids 0x10..
370 * all 20x cards have PCI device ids 0x20..
372 * There are also Quartet Serial cards which use Oxford Semiconductor
373 * 16954 quad UART PCI chip clocked by 18.432 MHz quartz.
375 * Note: some SIIG cards are probed by the parport_serial object.
378 #define PCI_DEVICE_ID_SIIG_1S_10x (PCI_DEVICE_ID_SIIG_1S_10x_550 & 0xfffc)
379 #define PCI_DEVICE_ID_SIIG_2S_10x (PCI_DEVICE_ID_SIIG_2S_10x_550 & 0xfff8)
381 static int pci_siig10x_init(struct pci_dev
*dev
)
386 switch (dev
->device
& 0xfff8) {
387 case PCI_DEVICE_ID_SIIG_1S_10x
: /* 1S */
390 case PCI_DEVICE_ID_SIIG_2S_10x
: /* 2S, 2S1P */
393 default: /* 1S1P, 4S */
398 p
= ioremap(pci_resource_start(dev
, 0), 0x80);
402 writew(readw(p
+ 0x28) & data
, p
+ 0x28);
408 #define PCI_DEVICE_ID_SIIG_2S_20x (PCI_DEVICE_ID_SIIG_2S_20x_550 & 0xfffc)
409 #define PCI_DEVICE_ID_SIIG_2S1P_20x (PCI_DEVICE_ID_SIIG_2S1P_20x_550 & 0xfffc)
411 static int pci_siig20x_init(struct pci_dev
*dev
)
415 /* Change clock frequency for the first UART. */
416 pci_read_config_byte(dev
, 0x6f, &data
);
417 pci_write_config_byte(dev
, 0x6f, data
& 0xef);
419 /* If this card has 2 UART, we have to do the same with second UART. */
420 if (((dev
->device
& 0xfffc) == PCI_DEVICE_ID_SIIG_2S_20x
) ||
421 ((dev
->device
& 0xfffc) == PCI_DEVICE_ID_SIIG_2S1P_20x
)) {
422 pci_read_config_byte(dev
, 0x73, &data
);
423 pci_write_config_byte(dev
, 0x73, data
& 0xef);
428 static int pci_siig_init(struct pci_dev
*dev
)
430 unsigned int type
= dev
->device
& 0xff00;
433 return pci_siig10x_init(dev
);
434 else if (type
== 0x2000)
435 return pci_siig20x_init(dev
);
437 moan_device("Unknown SIIG card", dev
);
441 static int pci_siig_setup(struct serial_private
*priv
,
442 struct pciserial_board
*board
,
443 struct uart_port
*port
, int idx
)
445 unsigned int bar
= FL_GET_BASE(board
->flags
) + idx
, offset
= 0;
449 offset
= (idx
- 4) * 8;
452 return setup_port(priv
, port
, bar
, offset
, 0);
456 * Timedia has an explosion of boards, and to avoid the PCI table from
457 * growing *huge*, we use this function to collapse some 70 entries
458 * in the PCI table into one, for sanity's and compactness's sake.
460 static const unsigned short timedia_single_port
[] = {
461 0x4025, 0x4027, 0x4028, 0x5025, 0x5027, 0
464 static const unsigned short timedia_dual_port
[] = {
465 0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085,
466 0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079,
467 0x7079, 0x8079, 0x8137, 0x8138, 0x8237, 0x8238, 0x9079,
468 0x9137, 0x9138, 0x9237, 0x9238, 0xA079, 0xB079, 0xC079,
472 static const unsigned short timedia_quad_port
[] = {
473 0x4055, 0x4056, 0x4095, 0x4096, 0x5056, 0x8156, 0x8157,
474 0x8256, 0x8257, 0x9056, 0x9156, 0x9157, 0x9158, 0x9159,
475 0x9256, 0x9257, 0xA056, 0xA157, 0xA158, 0xA159, 0xB056,
479 static const unsigned short timedia_eight_port
[] = {
480 0x4065, 0x4066, 0x5065, 0x5066, 0x8166, 0x9066, 0x9166,
481 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0
484 static const struct timedia_struct
{
486 const unsigned short *ids
;
488 { 1, timedia_single_port
},
489 { 2, timedia_dual_port
},
490 { 4, timedia_quad_port
},
491 { 8, timedia_eight_port
}
494 static int pci_timedia_init(struct pci_dev
*dev
)
496 const unsigned short *ids
;
499 for (i
= 0; i
< ARRAY_SIZE(timedia_data
); i
++) {
500 ids
= timedia_data
[i
].ids
;
501 for (j
= 0; ids
[j
]; j
++)
502 if (dev
->subsystem_device
== ids
[j
])
503 return timedia_data
[i
].num
;
509 * Timedia/SUNIX uses a mixture of BARs and offsets
510 * Ugh, this is ugly as all hell --- TYT
513 pci_timedia_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
514 struct uart_port
*port
, int idx
)
516 unsigned int bar
= 0, offset
= board
->first_offset
;
523 offset
= board
->uart_offset
;
530 offset
= board
->uart_offset
;
539 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
543 * Some Titan cards are also a little weird
546 titan_400l_800l_setup(struct serial_private
*priv
,
547 struct pciserial_board
*board
,
548 struct uart_port
*port
, int idx
)
550 unsigned int bar
, offset
= board
->first_offset
;
561 offset
= (idx
- 2) * board
->uart_offset
;
564 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
567 static int pci_xircom_init(struct pci_dev
*dev
)
573 static int pci_netmos_init(struct pci_dev
*dev
)
575 /* subdevice 0x00PS means <P> parallel, <S> serial */
576 unsigned int num_serial
= dev
->subsystem_device
& 0xf;
584 pci_default_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
585 struct uart_port
*port
, int idx
)
587 unsigned int bar
, offset
= board
->first_offset
, maxnr
;
589 bar
= FL_GET_BASE(board
->flags
);
590 if (board
->flags
& FL_BASE_BARS
)
593 offset
+= idx
* board
->uart_offset
;
595 maxnr
= (pci_resource_len(priv
->dev
, bar
) - board
->first_offset
) >>
596 (board
->reg_shift
+ 3);
598 if (board
->flags
& FL_REGION_SZ_CAP
&& idx
>= maxnr
)
601 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
604 /* This should be in linux/pci_ids.h */
605 #define PCI_VENDOR_ID_SBSMODULARIO 0x124B
606 #define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B
607 #define PCI_DEVICE_ID_OCTPRO 0x0001
608 #define PCI_SUBDEVICE_ID_OCTPRO232 0x0108
609 #define PCI_SUBDEVICE_ID_OCTPRO422 0x0208
610 #define PCI_SUBDEVICE_ID_POCTAL232 0x0308
611 #define PCI_SUBDEVICE_ID_POCTAL422 0x0408
614 * Master list of serial port init/setup/exit quirks.
615 * This does not describe the general nature of the port.
616 * (ie, baud base, number and location of ports, etc)
618 * This list is ordered alphabetically by vendor then device.
619 * Specific entries must come before more generic entries.
621 static struct pci_serial_quirk pci_serial_quirks
[] = {
623 * AFAVLAB cards - these may be called via parport_serial
624 * It is not clear whether this applies to all products.
627 .vendor
= PCI_VENDOR_ID_AFAVLAB
,
628 .device
= PCI_ANY_ID
,
629 .subvendor
= PCI_ANY_ID
,
630 .subdevice
= PCI_ANY_ID
,
631 .setup
= afavlab_setup
,
637 .vendor
= PCI_VENDOR_ID_HP
,
638 .device
= PCI_DEVICE_ID_HP_DIVA
,
639 .subvendor
= PCI_ANY_ID
,
640 .subdevice
= PCI_ANY_ID
,
641 .init
= pci_hp_diva_init
,
642 .setup
= pci_hp_diva_setup
,
648 .vendor
= PCI_VENDOR_ID_INTEL
,
649 .device
= PCI_DEVICE_ID_INTEL_80960_RP
,
651 .subdevice
= PCI_ANY_ID
,
652 .init
= pci_inteli960ni_init
,
653 .setup
= pci_default_setup
,
659 .vendor
= PCI_VENDOR_ID_PANACOM
,
660 .device
= PCI_DEVICE_ID_PANACOM_QUADMODEM
,
661 .subvendor
= PCI_ANY_ID
,
662 .subdevice
= PCI_ANY_ID
,
663 .init
= pci_plx9050_init
,
664 .setup
= pci_default_setup
,
665 .exit
= __devexit_p(pci_plx9050_exit
),
668 .vendor
= PCI_VENDOR_ID_PANACOM
,
669 .device
= PCI_DEVICE_ID_PANACOM_DUALMODEM
,
670 .subvendor
= PCI_ANY_ID
,
671 .subdevice
= PCI_ANY_ID
,
672 .init
= pci_plx9050_init
,
673 .setup
= pci_default_setup
,
674 .exit
= __devexit_p(pci_plx9050_exit
),
680 .vendor
= PCI_VENDOR_ID_PLX
,
681 .device
= PCI_DEVICE_ID_PLX_9030
,
682 .subvendor
= PCI_SUBVENDOR_ID_PERLE
,
683 .subdevice
= PCI_ANY_ID
,
684 .setup
= pci_default_setup
,
687 .vendor
= PCI_VENDOR_ID_PLX
,
688 .device
= PCI_DEVICE_ID_PLX_9050
,
689 .subvendor
= PCI_SUBVENDOR_ID_EXSYS
,
690 .subdevice
= PCI_SUBDEVICE_ID_EXSYS_4055
,
691 .init
= pci_plx9050_init
,
692 .setup
= pci_default_setup
,
693 .exit
= __devexit_p(pci_plx9050_exit
),
696 .vendor
= PCI_VENDOR_ID_PLX
,
697 .device
= PCI_DEVICE_ID_PLX_9050
,
698 .subvendor
= PCI_SUBVENDOR_ID_KEYSPAN
,
699 .subdevice
= PCI_SUBDEVICE_ID_KEYSPAN_SX2
,
700 .init
= pci_plx9050_init
,
701 .setup
= pci_default_setup
,
702 .exit
= __devexit_p(pci_plx9050_exit
),
705 .vendor
= PCI_VENDOR_ID_PLX
,
706 .device
= PCI_DEVICE_ID_PLX_ROMULUS
,
707 .subvendor
= PCI_VENDOR_ID_PLX
,
708 .subdevice
= PCI_DEVICE_ID_PLX_ROMULUS
,
709 .init
= pci_plx9050_init
,
710 .setup
= pci_default_setup
,
711 .exit
= __devexit_p(pci_plx9050_exit
),
714 * SBS Technologies, Inc., PMC-OCTALPRO 232
717 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
718 .device
= PCI_DEVICE_ID_OCTPRO
,
719 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
720 .subdevice
= PCI_SUBDEVICE_ID_OCTPRO232
,
723 .exit
= __devexit_p(sbs_exit
),
726 * SBS Technologies, Inc., PMC-OCTALPRO 422
729 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
730 .device
= PCI_DEVICE_ID_OCTPRO
,
731 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
732 .subdevice
= PCI_SUBDEVICE_ID_OCTPRO422
,
735 .exit
= __devexit_p(sbs_exit
),
738 * SBS Technologies, Inc., P-Octal 232
741 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
742 .device
= PCI_DEVICE_ID_OCTPRO
,
743 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
744 .subdevice
= PCI_SUBDEVICE_ID_POCTAL232
,
747 .exit
= __devexit_p(sbs_exit
),
750 * SBS Technologies, Inc., P-Octal 422
753 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
754 .device
= PCI_DEVICE_ID_OCTPRO
,
755 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
756 .subdevice
= PCI_SUBDEVICE_ID_POCTAL422
,
759 .exit
= __devexit_p(sbs_exit
),
762 * SIIG cards - these may be called via parport_serial
765 .vendor
= PCI_VENDOR_ID_SIIG
,
766 .device
= PCI_ANY_ID
,
767 .subvendor
= PCI_ANY_ID
,
768 .subdevice
= PCI_ANY_ID
,
769 .init
= pci_siig_init
,
770 .setup
= pci_siig_setup
,
776 .vendor
= PCI_VENDOR_ID_TITAN
,
777 .device
= PCI_DEVICE_ID_TITAN_400L
,
778 .subvendor
= PCI_ANY_ID
,
779 .subdevice
= PCI_ANY_ID
,
780 .setup
= titan_400l_800l_setup
,
783 .vendor
= PCI_VENDOR_ID_TITAN
,
784 .device
= PCI_DEVICE_ID_TITAN_800L
,
785 .subvendor
= PCI_ANY_ID
,
786 .subdevice
= PCI_ANY_ID
,
787 .setup
= titan_400l_800l_setup
,
793 .vendor
= PCI_VENDOR_ID_TIMEDIA
,
794 .device
= PCI_DEVICE_ID_TIMEDIA_1889
,
795 .subvendor
= PCI_VENDOR_ID_TIMEDIA
,
796 .subdevice
= PCI_ANY_ID
,
797 .init
= pci_timedia_init
,
798 .setup
= pci_timedia_setup
,
801 .vendor
= PCI_VENDOR_ID_TIMEDIA
,
802 .device
= PCI_ANY_ID
,
803 .subvendor
= PCI_ANY_ID
,
804 .subdevice
= PCI_ANY_ID
,
805 .setup
= pci_timedia_setup
,
811 .vendor
= PCI_VENDOR_ID_XIRCOM
,
812 .device
= PCI_DEVICE_ID_XIRCOM_X3201_MDM
,
813 .subvendor
= PCI_ANY_ID
,
814 .subdevice
= PCI_ANY_ID
,
815 .init
= pci_xircom_init
,
816 .setup
= pci_default_setup
,
819 * Netmos cards - these may be called via parport_serial
822 .vendor
= PCI_VENDOR_ID_NETMOS
,
823 .device
= PCI_ANY_ID
,
824 .subvendor
= PCI_ANY_ID
,
825 .subdevice
= PCI_ANY_ID
,
826 .init
= pci_netmos_init
,
827 .setup
= pci_default_setup
,
830 * Default "match everything" terminator entry
833 .vendor
= PCI_ANY_ID
,
834 .device
= PCI_ANY_ID
,
835 .subvendor
= PCI_ANY_ID
,
836 .subdevice
= PCI_ANY_ID
,
837 .setup
= pci_default_setup
,
841 static inline int quirk_id_matches(u32 quirk_id
, u32 dev_id
)
843 return quirk_id
== PCI_ANY_ID
|| quirk_id
== dev_id
;
846 static struct pci_serial_quirk
*find_quirk(struct pci_dev
*dev
)
848 struct pci_serial_quirk
*quirk
;
850 for (quirk
= pci_serial_quirks
; ; quirk
++)
851 if (quirk_id_matches(quirk
->vendor
, dev
->vendor
) &&
852 quirk_id_matches(quirk
->device
, dev
->device
) &&
853 quirk_id_matches(quirk
->subvendor
, dev
->subsystem_vendor
) &&
854 quirk_id_matches(quirk
->subdevice
, dev
->subsystem_device
))
859 static inline int get_pci_irq(struct pci_dev
*dev
,
860 struct pciserial_board
*board
)
862 if (board
->flags
& FL_NOIRQ
)
869 * This is the configuration table for all of the PCI serial boards
870 * which we support. It is directly indexed by the pci_board_num_t enum
871 * value, which is encoded in the pci_device_id PCI probe table's
872 * driver_data member.
874 * The makeup of these names are:
875 * pbn_bn{_bt}_n_baud{_offsetinhex}
877 * bn = PCI BAR number
878 * bt = Index using PCI BARs
879 * n = number of serial ports
881 * offsetinhex = offset for each sequential port (in hex)
883 * This table is sorted by (in order): bn, bt, baud, offsetindex, n.
885 * Please note: in theory if n = 1, _bt infix should make no difference.
886 * ie, pbn_b0_1_115200 is the same as pbn_b0_bt_1_115200
888 enum pci_board_num_t
{
907 pbn_b0_2_1843200_200
,
908 pbn_b0_4_1843200_200
,
909 pbn_b0_8_1843200_200
,
969 * Board-specific versions.
990 * uart_offset - the space between channels
991 * reg_shift - describes how the UART registers are mapped
992 * to PCI memory by the card.
993 * For example IER register on SBS, Inc. PMC-OctPro is located at
994 * offset 0x10 from the UART base, while UART_IER is defined as 1
995 * in include/linux/serial_reg.h,
996 * see first lines of serial_in() and serial_out() in 8250.c
999 static struct pciserial_board pci_boards
[] __devinitdata
= {
1003 .base_baud
= 115200,
1006 [pbn_b0_1_115200
] = {
1009 .base_baud
= 115200,
1012 [pbn_b0_2_115200
] = {
1015 .base_baud
= 115200,
1018 [pbn_b0_4_115200
] = {
1021 .base_baud
= 115200,
1024 [pbn_b0_5_115200
] = {
1027 .base_baud
= 115200,
1031 [pbn_b0_1_921600
] = {
1034 .base_baud
= 921600,
1037 [pbn_b0_2_921600
] = {
1040 .base_baud
= 921600,
1043 [pbn_b0_4_921600
] = {
1046 .base_baud
= 921600,
1050 [pbn_b0_2_1130000
] = {
1053 .base_baud
= 1130000,
1057 [pbn_b0_4_1152000
] = {
1060 .base_baud
= 1152000,
1064 [pbn_b0_2_1843200
] = {
1067 .base_baud
= 1843200,
1070 [pbn_b0_4_1843200
] = {
1073 .base_baud
= 1843200,
1077 [pbn_b0_2_1843200_200
] = {
1080 .base_baud
= 1843200,
1081 .uart_offset
= 0x200,
1083 [pbn_b0_4_1843200_200
] = {
1086 .base_baud
= 1843200,
1087 .uart_offset
= 0x200,
1089 [pbn_b0_8_1843200_200
] = {
1092 .base_baud
= 1843200,
1093 .uart_offset
= 0x200,
1096 [pbn_b0_bt_1_115200
] = {
1097 .flags
= FL_BASE0
|FL_BASE_BARS
,
1099 .base_baud
= 115200,
1102 [pbn_b0_bt_2_115200
] = {
1103 .flags
= FL_BASE0
|FL_BASE_BARS
,
1105 .base_baud
= 115200,
1108 [pbn_b0_bt_8_115200
] = {
1109 .flags
= FL_BASE0
|FL_BASE_BARS
,
1111 .base_baud
= 115200,
1115 [pbn_b0_bt_1_460800
] = {
1116 .flags
= FL_BASE0
|FL_BASE_BARS
,
1118 .base_baud
= 460800,
1121 [pbn_b0_bt_2_460800
] = {
1122 .flags
= FL_BASE0
|FL_BASE_BARS
,
1124 .base_baud
= 460800,
1127 [pbn_b0_bt_4_460800
] = {
1128 .flags
= FL_BASE0
|FL_BASE_BARS
,
1130 .base_baud
= 460800,
1134 [pbn_b0_bt_1_921600
] = {
1135 .flags
= FL_BASE0
|FL_BASE_BARS
,
1137 .base_baud
= 921600,
1140 [pbn_b0_bt_2_921600
] = {
1141 .flags
= FL_BASE0
|FL_BASE_BARS
,
1143 .base_baud
= 921600,
1146 [pbn_b0_bt_4_921600
] = {
1147 .flags
= FL_BASE0
|FL_BASE_BARS
,
1149 .base_baud
= 921600,
1152 [pbn_b0_bt_8_921600
] = {
1153 .flags
= FL_BASE0
|FL_BASE_BARS
,
1155 .base_baud
= 921600,
1159 [pbn_b1_1_115200
] = {
1162 .base_baud
= 115200,
1165 [pbn_b1_2_115200
] = {
1168 .base_baud
= 115200,
1171 [pbn_b1_4_115200
] = {
1174 .base_baud
= 115200,
1177 [pbn_b1_8_115200
] = {
1180 .base_baud
= 115200,
1184 [pbn_b1_1_921600
] = {
1187 .base_baud
= 921600,
1190 [pbn_b1_2_921600
] = {
1193 .base_baud
= 921600,
1196 [pbn_b1_4_921600
] = {
1199 .base_baud
= 921600,
1202 [pbn_b1_8_921600
] = {
1205 .base_baud
= 921600,
1208 [pbn_b1_2_1250000
] = {
1211 .base_baud
= 1250000,
1215 [pbn_b1_bt_2_921600
] = {
1216 .flags
= FL_BASE1
|FL_BASE_BARS
,
1218 .base_baud
= 921600,
1222 [pbn_b1_1_1382400
] = {
1225 .base_baud
= 1382400,
1228 [pbn_b1_2_1382400
] = {
1231 .base_baud
= 1382400,
1234 [pbn_b1_4_1382400
] = {
1237 .base_baud
= 1382400,
1240 [pbn_b1_8_1382400
] = {
1243 .base_baud
= 1382400,
1247 [pbn_b2_1_115200
] = {
1250 .base_baud
= 115200,
1253 [pbn_b2_2_115200
] = {
1256 .base_baud
= 115200,
1259 [pbn_b2_4_115200
] = {
1262 .base_baud
= 115200,
1265 [pbn_b2_8_115200
] = {
1268 .base_baud
= 115200,
1272 [pbn_b2_1_460800
] = {
1275 .base_baud
= 460800,
1278 [pbn_b2_4_460800
] = {
1281 .base_baud
= 460800,
1284 [pbn_b2_8_460800
] = {
1287 .base_baud
= 460800,
1290 [pbn_b2_16_460800
] = {
1293 .base_baud
= 460800,
1297 [pbn_b2_1_921600
] = {
1300 .base_baud
= 921600,
1303 [pbn_b2_4_921600
] = {
1306 .base_baud
= 921600,
1309 [pbn_b2_8_921600
] = {
1312 .base_baud
= 921600,
1316 [pbn_b2_bt_1_115200
] = {
1317 .flags
= FL_BASE2
|FL_BASE_BARS
,
1319 .base_baud
= 115200,
1322 [pbn_b2_bt_2_115200
] = {
1323 .flags
= FL_BASE2
|FL_BASE_BARS
,
1325 .base_baud
= 115200,
1328 [pbn_b2_bt_4_115200
] = {
1329 .flags
= FL_BASE2
|FL_BASE_BARS
,
1331 .base_baud
= 115200,
1335 [pbn_b2_bt_2_921600
] = {
1336 .flags
= FL_BASE2
|FL_BASE_BARS
,
1338 .base_baud
= 921600,
1341 [pbn_b2_bt_4_921600
] = {
1342 .flags
= FL_BASE2
|FL_BASE_BARS
,
1344 .base_baud
= 921600,
1348 [pbn_b3_2_115200
] = {
1351 .base_baud
= 115200,
1354 [pbn_b3_4_115200
] = {
1357 .base_baud
= 115200,
1360 [pbn_b3_8_115200
] = {
1363 .base_baud
= 115200,
1368 * Entries following this are board-specific.
1377 .base_baud
= 921600,
1378 .uart_offset
= 0x400,
1382 .flags
= FL_BASE2
|FL_BASE_BARS
,
1384 .base_baud
= 921600,
1385 .uart_offset
= 0x400,
1389 .flags
= FL_BASE2
|FL_BASE_BARS
,
1391 .base_baud
= 921600,
1392 .uart_offset
= 0x400,
1396 [pbn_exsys_4055
] = {
1399 .base_baud
= 115200,
1403 /* I think this entry is broken - the first_offset looks wrong --rmk */
1404 [pbn_plx_romulus
] = {
1407 .base_baud
= 921600,
1408 .uart_offset
= 8 << 2,
1410 .first_offset
= 0x03,
1414 * This board uses the size of PCI Base region 0 to
1415 * signal now many ports are available
1418 .flags
= FL_BASE0
|FL_REGION_SZ_CAP
,
1420 .base_baud
= 115200,
1425 * EKF addition for i960 Boards form EKF with serial port.
1428 [pbn_intel_i960
] = {
1431 .base_baud
= 921600,
1432 .uart_offset
= 8 << 2,
1434 .first_offset
= 0x10000,
1437 .flags
= FL_BASE0
|FL_NOIRQ
,
1439 .base_baud
= 458333,
1442 .first_offset
= 0x20178,
1446 * NEC Vrc-5074 (Nile 4) builtin UART.
1451 .base_baud
= 520833,
1452 .uart_offset
= 8 << 3,
1454 .first_offset
= 0x300,
1458 * Computone - uses IOMEM.
1460 [pbn_computone_4
] = {
1463 .base_baud
= 921600,
1464 .uart_offset
= 0x40,
1466 .first_offset
= 0x200,
1468 [pbn_computone_6
] = {
1471 .base_baud
= 921600,
1472 .uart_offset
= 0x40,
1474 .first_offset
= 0x200,
1476 [pbn_computone_8
] = {
1479 .base_baud
= 921600,
1480 .uart_offset
= 0x40,
1482 .first_offset
= 0x200,
1487 .base_baud
= 460800,
1492 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
1493 * Only basic 16550A support.
1494 * XR17C15[24] are not tested, but they should work.
1496 [pbn_exar_XR17C152
] = {
1499 .base_baud
= 921600,
1500 .uart_offset
= 0x200,
1502 [pbn_exar_XR17C154
] = {
1505 .base_baud
= 921600,
1506 .uart_offset
= 0x200,
1508 [pbn_exar_XR17C158
] = {
1511 .base_baud
= 921600,
1512 .uart_offset
= 0x200,
1517 * Given a complete unknown PCI device, try to use some heuristics to
1518 * guess what the configuration might be, based on the pitiful PCI
1519 * serial specs. Returns 0 on success, 1 on failure.
1521 static int __devinit
1522 serial_pci_guess_board(struct pci_dev
*dev
, struct pciserial_board
*board
)
1524 int num_iomem
, num_port
, first_port
= -1, i
;
1527 * If it is not a communications device or the programming
1528 * interface is greater than 6, give up.
1530 * (Should we try to make guesses for multiport serial devices
1533 if ((((dev
->class >> 8) != PCI_CLASS_COMMUNICATION_SERIAL
) &&
1534 ((dev
->class >> 8) != PCI_CLASS_COMMUNICATION_MODEM
)) ||
1535 (dev
->class & 0xff) > 6)
1538 num_iomem
= num_port
= 0;
1539 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
1540 if (pci_resource_flags(dev
, i
) & IORESOURCE_IO
) {
1542 if (first_port
== -1)
1545 if (pci_resource_flags(dev
, i
) & IORESOURCE_MEM
)
1550 * If there is 1 or 0 iomem regions, and exactly one port,
1551 * use it. We guess the number of ports based on the IO
1554 if (num_iomem
<= 1 && num_port
== 1) {
1555 board
->flags
= first_port
;
1556 board
->num_ports
= pci_resource_len(dev
, first_port
) / 8;
1561 * Now guess if we've got a board which indexes by BARs.
1562 * Each IO BAR should be 8 bytes, and they should follow
1567 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
1568 if (pci_resource_flags(dev
, i
) & IORESOURCE_IO
&&
1569 pci_resource_len(dev
, i
) == 8 &&
1570 (first_port
== -1 || (first_port
+ num_port
) == i
)) {
1572 if (first_port
== -1)
1578 board
->flags
= first_port
| FL_BASE_BARS
;
1579 board
->num_ports
= num_port
;
1587 serial_pci_matches(struct pciserial_board
*board
,
1588 struct pciserial_board
*guessed
)
1591 board
->num_ports
== guessed
->num_ports
&&
1592 board
->base_baud
== guessed
->base_baud
&&
1593 board
->uart_offset
== guessed
->uart_offset
&&
1594 board
->reg_shift
== guessed
->reg_shift
&&
1595 board
->first_offset
== guessed
->first_offset
;
1598 struct serial_private
*
1599 pciserial_init_ports(struct pci_dev
*dev
, struct pciserial_board
*board
)
1601 struct uart_port serial_port
;
1602 struct serial_private
*priv
;
1603 struct pci_serial_quirk
*quirk
;
1604 int rc
, nr_ports
, i
;
1606 nr_ports
= board
->num_ports
;
1609 * Find an init and setup quirks.
1611 quirk
= find_quirk(dev
);
1614 * Run the new-style initialization function.
1615 * The initialization function returns:
1617 * 0 - use board->num_ports
1618 * >0 - number of ports
1621 rc
= quirk
->init(dev
);
1630 priv
= kzalloc(sizeof(struct serial_private
) +
1631 sizeof(unsigned int) * nr_ports
,
1634 priv
= ERR_PTR(-ENOMEM
);
1639 priv
->quirk
= quirk
;
1641 memset(&serial_port
, 0, sizeof(struct uart_port
));
1642 serial_port
.flags
= UPF_SKIP_TEST
| UPF_BOOT_AUTOCONF
| UPF_SHARE_IRQ
;
1643 serial_port
.uartclk
= board
->base_baud
* 16;
1644 serial_port
.irq
= get_pci_irq(dev
, board
);
1645 serial_port
.dev
= &dev
->dev
;
1647 for (i
= 0; i
< nr_ports
; i
++) {
1648 if (quirk
->setup(priv
, board
, &serial_port
, i
))
1651 #ifdef SERIAL_DEBUG_PCI
1652 printk("Setup PCI port: port %x, irq %d, type %d\n",
1653 serial_port
.iobase
, serial_port
.irq
, serial_port
.iotype
);
1656 priv
->line
[i
] = serial8250_register_port(&serial_port
);
1657 if (priv
->line
[i
] < 0) {
1658 printk(KERN_WARNING
"Couldn't register serial port %s: %d\n", pci_name(dev
), priv
->line
[i
]);
1673 EXPORT_SYMBOL_GPL(pciserial_init_ports
);
1675 void pciserial_remove_ports(struct serial_private
*priv
)
1677 struct pci_serial_quirk
*quirk
;
1680 for (i
= 0; i
< priv
->nr
; i
++)
1681 serial8250_unregister_port(priv
->line
[i
]);
1683 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
1684 if (priv
->remapped_bar
[i
])
1685 iounmap(priv
->remapped_bar
[i
]);
1686 priv
->remapped_bar
[i
] = NULL
;
1690 * Find the exit quirks.
1692 quirk
= find_quirk(priv
->dev
);
1694 quirk
->exit(priv
->dev
);
1698 EXPORT_SYMBOL_GPL(pciserial_remove_ports
);
1700 void pciserial_suspend_ports(struct serial_private
*priv
)
1704 for (i
= 0; i
< priv
->nr
; i
++)
1705 if (priv
->line
[i
] >= 0)
1706 serial8250_suspend_port(priv
->line
[i
]);
1708 EXPORT_SYMBOL_GPL(pciserial_suspend_ports
);
1710 void pciserial_resume_ports(struct serial_private
*priv
)
1715 * Ensure that the board is correctly configured.
1717 if (priv
->quirk
->init
)
1718 priv
->quirk
->init(priv
->dev
);
1720 for (i
= 0; i
< priv
->nr
; i
++)
1721 if (priv
->line
[i
] >= 0)
1722 serial8250_resume_port(priv
->line
[i
]);
1724 EXPORT_SYMBOL_GPL(pciserial_resume_ports
);
1727 * Probe one serial board. Unfortunately, there is no rhyme nor reason
1728 * to the arrangement of serial ports on a PCI card.
1730 static int __devinit
1731 pciserial_init_one(struct pci_dev
*dev
, const struct pci_device_id
*ent
)
1733 struct serial_private
*priv
;
1734 struct pciserial_board
*board
, tmp
;
1737 if (ent
->driver_data
>= ARRAY_SIZE(pci_boards
)) {
1738 printk(KERN_ERR
"pci_init_one: invalid driver_data: %ld\n",
1743 board
= &pci_boards
[ent
->driver_data
];
1745 rc
= pci_enable_device(dev
);
1749 if (ent
->driver_data
== pbn_default
) {
1751 * Use a copy of the pci_board entry for this;
1752 * avoid changing entries in the table.
1754 memcpy(&tmp
, board
, sizeof(struct pciserial_board
));
1758 * We matched one of our class entries. Try to
1759 * determine the parameters of this board.
1761 rc
= serial_pci_guess_board(dev
, board
);
1766 * We matched an explicit entry. If we are able to
1767 * detect this boards settings with our heuristic,
1768 * then we no longer need this entry.
1770 memcpy(&tmp
, &pci_boards
[pbn_default
],
1771 sizeof(struct pciserial_board
));
1772 rc
= serial_pci_guess_board(dev
, &tmp
);
1773 if (rc
== 0 && serial_pci_matches(board
, &tmp
))
1774 moan_device("Redundant entry in serial pci_table.",
1778 priv
= pciserial_init_ports(dev
, board
);
1779 if (!IS_ERR(priv
)) {
1780 pci_set_drvdata(dev
, priv
);
1787 pci_disable_device(dev
);
1791 static void __devexit
pciserial_remove_one(struct pci_dev
*dev
)
1793 struct serial_private
*priv
= pci_get_drvdata(dev
);
1795 pci_set_drvdata(dev
, NULL
);
1797 pciserial_remove_ports(priv
);
1799 pci_disable_device(dev
);
1803 static int pciserial_suspend_one(struct pci_dev
*dev
, pm_message_t state
)
1805 struct serial_private
*priv
= pci_get_drvdata(dev
);
1808 pciserial_suspend_ports(priv
);
1810 pci_save_state(dev
);
1811 pci_set_power_state(dev
, pci_choose_state(dev
, state
));
1815 static int pciserial_resume_one(struct pci_dev
*dev
)
1817 struct serial_private
*priv
= pci_get_drvdata(dev
);
1819 pci_set_power_state(dev
, PCI_D0
);
1820 pci_restore_state(dev
);
1824 * The device may have been disabled. Re-enable it.
1826 pci_enable_device(dev
);
1828 pciserial_resume_ports(priv
);
1834 static struct pci_device_id serial_pci_tbl
[] = {
1835 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
1836 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1837 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232
, 0, 0,
1839 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
1840 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1841 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232
, 0, 0,
1843 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
1844 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1845 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232
, 0, 0,
1847 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1848 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1849 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232
, 0, 0,
1851 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1852 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1853 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232
, 0, 0,
1855 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1856 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1857 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232
, 0, 0,
1859 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1860 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1861 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485
, 0, 0,
1863 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1864 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1865 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_4_4
, 0, 0,
1867 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1868 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1869 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485
, 0, 0,
1871 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1872 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1873 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485_2_2
, 0, 0,
1875 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1876 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1877 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_485
, 0, 0,
1879 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1880 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1881 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_2_6
, 0, 0,
1883 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1884 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1885 PCI_SUBDEVICE_ID_CONNECT_TECH_BH081101V1
, 0, 0,
1887 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1888 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1889 PCI_SUBDEVICE_ID_CONNECT_TECH_BH041101V1
, 0, 0,
1891 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
1892 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1893 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_20MHZ
, 0, 0,
1895 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
1896 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1897 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_2
, 0, 0,
1899 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
1900 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1901 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_4
, 0, 0,
1903 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
1904 PCI_VENDOR_ID_AFAVLAB
,
1905 PCI_SUBDEVICE_ID_AFAVLAB_P061
, 0, 0,
1907 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
1908 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1909 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_232
, 0, 0,
1910 pbn_b0_2_1843200_200
},
1911 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
1912 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1913 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_232
, 0, 0,
1914 pbn_b0_4_1843200_200
},
1915 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
1916 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1917 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_232
, 0, 0,
1918 pbn_b0_8_1843200_200
},
1919 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
1920 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1921 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_1_1
, 0, 0,
1922 pbn_b0_2_1843200_200
},
1923 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
1924 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1925 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_2
, 0, 0,
1926 pbn_b0_4_1843200_200
},
1927 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
1928 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1929 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_4
, 0, 0,
1930 pbn_b0_8_1843200_200
},
1931 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
1932 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1933 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2
, 0, 0,
1934 pbn_b0_2_1843200_200
},
1935 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
1936 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1937 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4
, 0, 0,
1938 pbn_b0_4_1843200_200
},
1939 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
1940 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1941 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8
, 0, 0,
1942 pbn_b0_8_1843200_200
},
1943 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
1944 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1945 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_485
, 0, 0,
1946 pbn_b0_2_1843200_200
},
1947 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
1948 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1949 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_485
, 0, 0,
1950 pbn_b0_4_1843200_200
},
1951 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
1952 PCI_SUBVENDOR_ID_CONNECT_TECH
,
1953 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_485
, 0, 0,
1954 pbn_b0_8_1843200_200
},
1956 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_U530
,
1957 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1958 pbn_b2_bt_1_115200
},
1959 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM2
,
1960 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1961 pbn_b2_bt_2_115200
},
1962 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM422
,
1963 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1964 pbn_b2_bt_4_115200
},
1965 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM232
,
1966 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1967 pbn_b2_bt_2_115200
},
1968 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_COMM4
,
1969 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1970 pbn_b2_bt_4_115200
},
1971 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_COMM8
,
1972 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1974 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM8
,
1975 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1978 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_GTEK_SERIAL2
,
1979 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1980 pbn_b2_bt_2_115200
},
1981 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_SPCOM200
,
1982 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1983 pbn_b2_bt_2_921600
},
1985 * VScom SPCOM800, from sl@s.pl
1987 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_SPCOM800
,
1988 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1990 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_1077
,
1991 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
1993 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
1994 PCI_SUBVENDOR_ID_KEYSPAN
,
1995 PCI_SUBDEVICE_ID_KEYSPAN_SX2
, 0, 0,
1997 { PCI_VENDOR_ID_PANACOM
, PCI_DEVICE_ID_PANACOM_QUADMODEM
,
1998 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2000 { PCI_VENDOR_ID_PANACOM
, PCI_DEVICE_ID_PANACOM_DUALMODEM
,
2001 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2003 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
2004 PCI_VENDOR_ID_ESDGMBH
,
2005 PCI_DEVICE_ID_ESDGMBH_CPCIASIO4
, 0, 0,
2007 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2008 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2009 PCI_SUBDEVICE_ID_CHASE_PCIFAST4
, 0, 0,
2011 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2012 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2013 PCI_SUBDEVICE_ID_CHASE_PCIFAST8
, 0, 0,
2015 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2016 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2017 PCI_SUBDEVICE_ID_CHASE_PCIFAST16
, 0, 0,
2019 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2020 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2021 PCI_SUBDEVICE_ID_CHASE_PCIFAST16FMC
, 0, 0,
2023 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2024 PCI_SUBVENDOR_ID_CHASE_PCIRAS
,
2025 PCI_SUBDEVICE_ID_CHASE_PCIRAS4
, 0, 0,
2027 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2028 PCI_SUBVENDOR_ID_CHASE_PCIRAS
,
2029 PCI_SUBDEVICE_ID_CHASE_PCIRAS8
, 0, 0,
2031 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2032 PCI_SUBVENDOR_ID_EXSYS
,
2033 PCI_SUBDEVICE_ID_EXSYS_4055
, 0, 0,
2036 * Megawolf Romulus PCI Serial Card, from Mike Hudson
2039 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_ROMULUS
,
2040 0x10b5, 0x106a, 0, 0,
2042 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_QSC100
,
2043 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2045 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_DSC100
,
2046 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2048 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_ESC100D
,
2049 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2051 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_ESC100M
,
2052 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2054 { PCI_VENDOR_ID_SPECIALIX
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2055 PCI_VENDOR_ID_SPECIALIX
, PCI_SUBDEVICE_ID_SPECIALIX_SPEED4
, 0, 0,
2057 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2058 PCI_SUBVENDOR_ID_SIIG
, PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL
, 0, 0,
2062 * The below card is a little controversial since it is the
2063 * subject of a PCI vendor/device ID clash. (See
2064 * www.ussg.iu.edu/hypermail/linux/kernel/0303.1/0516.html).
2065 * For now just used the hex ID 0x950a.
2067 { PCI_VENDOR_ID_OXSEMI
, 0x950a,
2068 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2070 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2071 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2073 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI952
,
2074 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2075 pbn_b0_bt_2_921600
},
2078 * SBS Technologies, Inc. P-Octal and PMC-OCTPRO cards,
2079 * from skokodyn@yahoo.com
2081 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2082 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_OCTPRO232
, 0, 0,
2084 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2085 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_OCTPRO422
, 0, 0,
2087 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2088 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_POCTAL232
, 0, 0,
2090 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2091 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_POCTAL422
, 0, 0,
2095 * Digitan DS560-558, from jimd@esoft.com
2097 { PCI_VENDOR_ID_ATT
, PCI_DEVICE_ID_ATT_VENUS_MODEM
,
2098 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2102 * Titan Electronic cards
2103 * The 400L and 800L have a custom setup quirk.
2105 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100
,
2106 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2108 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200
,
2109 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2111 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400
,
2112 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2114 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800B
,
2115 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2117 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100L
,
2118 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2120 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200L
,
2121 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2122 pbn_b1_bt_2_921600
},
2123 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400L
,
2124 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2125 pbn_b0_bt_4_921600
},
2126 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800L
,
2127 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2128 pbn_b0_bt_8_921600
},
2130 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_550
,
2131 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2133 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_650
,
2134 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2136 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_850
,
2137 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2139 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_550
,
2140 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2141 pbn_b2_bt_2_921600
},
2142 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_650
,
2143 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2144 pbn_b2_bt_2_921600
},
2145 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_850
,
2146 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2147 pbn_b2_bt_2_921600
},
2148 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_550
,
2149 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2150 pbn_b2_bt_4_921600
},
2151 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_650
,
2152 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2153 pbn_b2_bt_4_921600
},
2154 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_850
,
2155 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2156 pbn_b2_bt_4_921600
},
2157 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_550
,
2158 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2160 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_650
,
2161 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2163 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_850
,
2164 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2166 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_550
,
2167 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2168 pbn_b0_bt_2_921600
},
2169 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_650
,
2170 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2171 pbn_b0_bt_2_921600
},
2172 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_850
,
2173 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2174 pbn_b0_bt_2_921600
},
2175 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_550
,
2176 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2177 pbn_b0_bt_4_921600
},
2178 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_650
,
2179 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2180 pbn_b0_bt_4_921600
},
2181 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_850
,
2182 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2183 pbn_b0_bt_4_921600
},
2184 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_550
,
2185 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2186 pbn_b0_bt_8_921600
},
2187 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_650
,
2188 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2189 pbn_b0_bt_8_921600
},
2190 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_850
,
2191 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2192 pbn_b0_bt_8_921600
},
2195 * Computone devices submitted by Doug McNash dmcnash@computone.com
2197 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
2198 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG4
,
2199 0, 0, pbn_computone_4
},
2200 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
2201 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG8
,
2202 0, 0, pbn_computone_8
},
2203 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
2204 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG6
,
2205 0, 0, pbn_computone_6
},
2207 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI95N
,
2208 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2210 { PCI_VENDOR_ID_TIMEDIA
, PCI_DEVICE_ID_TIMEDIA_1889
,
2211 PCI_VENDOR_ID_TIMEDIA
, PCI_ANY_ID
, 0, 0,
2212 pbn_b0_bt_1_921600
},
2215 * AFAVLAB serial card, from Harald Welte <laforge@gnumonks.org>
2217 { PCI_VENDOR_ID_AFAVLAB
, PCI_DEVICE_ID_AFAVLAB_P028
,
2218 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2219 pbn_b0_bt_8_115200
},
2220 { PCI_VENDOR_ID_AFAVLAB
, PCI_DEVICE_ID_AFAVLAB_P030
,
2221 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2222 pbn_b0_bt_8_115200
},
2224 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_DSERIAL
,
2225 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2226 pbn_b0_bt_2_115200
},
2227 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATRO_A
,
2228 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2229 pbn_b0_bt_2_115200
},
2230 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATRO_B
,
2231 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2232 pbn_b0_bt_2_115200
},
2233 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_OCTO_A
,
2234 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2235 pbn_b0_bt_4_460800
},
2236 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_OCTO_B
,
2237 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2238 pbn_b0_bt_4_460800
},
2239 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_PORT_PLUS
,
2240 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2241 pbn_b0_bt_2_460800
},
2242 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUAD_A
,
2243 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2244 pbn_b0_bt_2_460800
},
2245 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUAD_B
,
2246 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2247 pbn_b0_bt_2_460800
},
2248 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_SSERIAL
,
2249 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2250 pbn_b0_bt_1_115200
},
2251 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_PORT_650
,
2252 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2253 pbn_b0_bt_1_460800
},
2256 * Korenix Jetcard F0/F1 cards (JC1204, JC1208, JC1404, JC1408).
2257 * Cards are identified by their subsystem vendor IDs, which
2258 * (in hex) match the model number.
2260 * Note that JC140x are RS422/485 cards which require ox950
2261 * ACR = 0x10, and as such are not currently fully supported.
2263 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF0
,
2264 0x1204, 0x0004, 0, 0,
2266 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF0
,
2267 0x1208, 0x0004, 0, 0,
2269 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
2270 0x1402, 0x0002, 0, 0,
2271 pbn_b0_2_921600 }, */
2272 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
2273 0x1404, 0x0004, 0, 0,
2274 pbn_b0_4_921600 }, */
2275 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF1
,
2276 0x1208, 0x0004, 0, 0,
2280 * Dell Remote Access Card 4 - Tim_T_Murphy@Dell.com
2282 { PCI_VENDOR_ID_DELL
, PCI_DEVICE_ID_DELL_RAC4
,
2283 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2287 * Dell Remote Access Card III - Tim_T_Murphy@Dell.com
2289 { PCI_VENDOR_ID_DELL
, PCI_DEVICE_ID_DELL_RACIII
,
2290 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2294 * RAStel 2 port modem, gerg@moreton.com.au
2296 { PCI_VENDOR_ID_MORETON
, PCI_DEVICE_ID_RASTEL_2PORT
,
2297 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2298 pbn_b2_bt_2_115200
},
2301 * EKF addition for i960 Boards form EKF with serial port
2303 { PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_80960_RP
,
2304 0xE4BF, PCI_ANY_ID
, 0, 0,
2308 * Xircom Cardbus/Ethernet combos
2310 { PCI_VENDOR_ID_XIRCOM
, PCI_DEVICE_ID_XIRCOM_X3201_MDM
,
2311 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2314 * Xircom RBM56G cardbus modem - Dirk Arnold (temp entry)
2316 { PCI_VENDOR_ID_XIRCOM
, PCI_DEVICE_ID_XIRCOM_RBM56G
,
2317 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2321 * Untested PCI modems, sent in from various folks...
2325 * Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de>
2327 { PCI_VENDOR_ID_ROCKWELL
, 0x1004,
2328 0x1048, 0x1500, 0, 0,
2331 { PCI_VENDOR_ID_SGI
, PCI_DEVICE_ID_SGI_IOC3
,
2338 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA
,
2339 PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA_RMP3
, 0, 0,
2341 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA
,
2342 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2344 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA_AUX
,
2345 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2349 * NEC Vrc-5074 (Nile 4) builtin UART.
2351 { PCI_VENDOR_ID_NEC
, PCI_DEVICE_ID_NEC_NILE4
,
2352 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2355 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM2
,
2356 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2358 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM4
,
2359 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2361 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM8
,
2362 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2366 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
2368 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2369 PCI_ANY_ID
, PCI_ANY_ID
,
2371 0, pbn_exar_XR17C152
},
2372 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2373 PCI_ANY_ID
, PCI_ANY_ID
,
2375 0, pbn_exar_XR17C154
},
2376 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2377 PCI_ANY_ID
, PCI_ANY_ID
,
2379 0, pbn_exar_XR17C158
},
2382 * Topic TP560 Data/Fax/Voice 56k modem (reported by Evan Clarke)
2384 { PCI_VENDOR_ID_TOPIC
, PCI_DEVICE_ID_TOPIC_TP560
,
2385 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2391 { PCI_VENDOR_ID_INTASHIELD
, PCI_DEVICE_ID_INTASHIELD_IS200
,
2392 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0, /* 135a.0811 */
2396 * Perle PCI-RAS cards
2398 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
2399 PCI_SUBVENDOR_ID_PERLE
, PCI_SUBDEVICE_ID_PCI_RAS4
,
2400 0, 0, pbn_b2_4_921600
},
2401 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
2402 PCI_SUBVENDOR_ID_PERLE
, PCI_SUBDEVICE_ID_PCI_RAS8
,
2403 0, 0, pbn_b2_8_921600
},
2405 * These entries match devices with class COMMUNICATION_SERIAL,
2406 * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
2408 { PCI_ANY_ID
, PCI_ANY_ID
,
2409 PCI_ANY_ID
, PCI_ANY_ID
,
2410 PCI_CLASS_COMMUNICATION_SERIAL
<< 8,
2411 0xffff00, pbn_default
},
2412 { PCI_ANY_ID
, PCI_ANY_ID
,
2413 PCI_ANY_ID
, PCI_ANY_ID
,
2414 PCI_CLASS_COMMUNICATION_MODEM
<< 8,
2415 0xffff00, pbn_default
},
2416 { PCI_ANY_ID
, PCI_ANY_ID
,
2417 PCI_ANY_ID
, PCI_ANY_ID
,
2418 PCI_CLASS_COMMUNICATION_MULTISERIAL
<< 8,
2419 0xffff00, pbn_default
},
2423 static struct pci_driver serial_pci_driver
= {
2425 .probe
= pciserial_init_one
,
2426 .remove
= __devexit_p(pciserial_remove_one
),
2428 .suspend
= pciserial_suspend_one
,
2429 .resume
= pciserial_resume_one
,
2431 .id_table
= serial_pci_tbl
,
2434 static int __init
serial8250_pci_init(void)
2436 return pci_register_driver(&serial_pci_driver
);
2439 static void __exit
serial8250_pci_exit(void)
2441 pci_unregister_driver(&serial_pci_driver
);
2444 module_init(serial8250_pci_init
);
2445 module_exit(serial8250_pci_exit
);
2447 MODULE_LICENSE("GPL");
2448 MODULE_DESCRIPTION("Generic 8250/16x50 PCI serial probe module");
2449 MODULE_DEVICE_TABLE(pci
, serial_pci_tbl
);