2 * linux/drivers/char/8250_pci.c
4 * Probe module for 8250/16550-type PCI serial ports.
6 * Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
8 * Copyright (C) 2001 Russell King, All Rights Reserved.
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License.
14 #include <linux/module.h>
15 #include <linux/init.h>
16 #include <linux/pci.h>
17 #include <linux/string.h>
18 #include <linux/kernel.h>
19 #include <linux/slab.h>
20 #include <linux/delay.h>
21 #include <linux/tty.h>
22 #include <linux/serial_core.h>
23 #include <linux/8250_pci.h>
24 #include <linux/bitops.h>
26 #include <asm/byteorder.h>
31 #undef SERIAL_DEBUG_PCI
34 * init function returns:
35 * > 0 - number of ports
36 * = 0 - use board->num_ports
39 struct pci_serial_quirk
{
44 int (*init
)(struct pci_dev
*dev
);
45 int (*setup
)(struct serial_private
*, 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 void moan_device(const char *str
, struct pci_dev
*dev
)
62 printk(KERN_WARNING
"%s: %s\n"
63 KERN_WARNING
"Please send the output of lspci -vv, this\n"
64 KERN_WARNING
"message (0x%04x,0x%04x,0x%04x,0x%04x), the\n"
65 KERN_WARNING
"manufacturer and name of serial board or\n"
66 KERN_WARNING
"modem board to rmk+serial@arm.linux.org.uk.\n",
67 pci_name(dev
), str
, dev
->vendor
, dev
->device
,
68 dev
->subsystem_vendor
, dev
->subsystem_device
);
72 setup_port(struct serial_private
*priv
, struct uart_port
*port
,
73 int bar
, int offset
, int regshift
)
75 struct pci_dev
*dev
= priv
->dev
;
76 unsigned long base
, len
;
78 if (bar
>= PCI_NUM_BAR_RESOURCES
)
81 base
= pci_resource_start(dev
, bar
);
83 if (pci_resource_flags(dev
, bar
) & IORESOURCE_MEM
) {
84 len
= pci_resource_len(dev
, bar
);
86 if (!priv
->remapped_bar
[bar
])
87 priv
->remapped_bar
[bar
] = ioremap_nocache(base
, len
);
88 if (!priv
->remapped_bar
[bar
])
91 port
->iotype
= UPIO_MEM
;
93 port
->mapbase
= base
+ offset
;
94 port
->membase
= priv
->remapped_bar
[bar
] + offset
;
95 port
->regshift
= regshift
;
97 port
->iotype
= UPIO_PORT
;
98 port
->iobase
= base
+ offset
;
100 port
->membase
= NULL
;
107 * ADDI-DATA GmbH communication cards <info@addi-data.com>
109 static int addidata_apci7800_setup(struct serial_private
*priv
,
110 struct pciserial_board
*board
,
111 struct uart_port
*port
, int idx
)
113 unsigned int bar
= 0, offset
= board
->first_offset
;
114 bar
= FL_GET_BASE(board
->flags
);
117 offset
+= idx
* board
->uart_offset
;
118 } else if ((idx
>= 2) && (idx
< 4)) {
120 offset
+= ((idx
- 2) * board
->uart_offset
);
121 } else if ((idx
>= 4) && (idx
< 6)) {
123 offset
+= ((idx
- 4) * board
->uart_offset
);
124 } else if (idx
>= 6) {
126 offset
+= ((idx
- 6) * board
->uart_offset
);
129 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
133 * AFAVLAB uses a different mixture of BARs and offsets
134 * Not that ugly ;) -- HW
137 afavlab_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
138 struct uart_port
*port
, int idx
)
140 unsigned int bar
, offset
= board
->first_offset
;
142 bar
= FL_GET_BASE(board
->flags
);
147 offset
+= (idx
- 4) * board
->uart_offset
;
150 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
154 * HP's Remote Management Console. The Diva chip came in several
155 * different versions. N-class, L2000 and A500 have two Diva chips, each
156 * with 3 UARTs (the third UART on the second chip is unused). Superdome
157 * and Keystone have one Diva chip with 3 UARTs. Some later machines have
158 * one Diva chip, but it has been expanded to 5 UARTs.
160 static int pci_hp_diva_init(struct pci_dev
*dev
)
164 switch (dev
->subsystem_device
) {
165 case PCI_DEVICE_ID_HP_DIVA_TOSCA1
:
166 case PCI_DEVICE_ID_HP_DIVA_HALFDOME
:
167 case PCI_DEVICE_ID_HP_DIVA_KEYSTONE
:
168 case PCI_DEVICE_ID_HP_DIVA_EVEREST
:
171 case PCI_DEVICE_ID_HP_DIVA_TOSCA2
:
174 case PCI_DEVICE_ID_HP_DIVA_MAESTRO
:
177 case PCI_DEVICE_ID_HP_DIVA_POWERBAR
:
178 case PCI_DEVICE_ID_HP_DIVA_HURRICANE
:
187 * HP's Diva chip puts the 4th/5th serial port further out, and
188 * some serial ports are supposed to be hidden on certain models.
191 pci_hp_diva_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
192 struct uart_port
*port
, int idx
)
194 unsigned int offset
= board
->first_offset
;
195 unsigned int bar
= FL_GET_BASE(board
->flags
);
197 switch (priv
->dev
->subsystem_device
) {
198 case PCI_DEVICE_ID_HP_DIVA_MAESTRO
:
202 case PCI_DEVICE_ID_HP_DIVA_EVEREST
:
212 offset
+= idx
* board
->uart_offset
;
214 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
218 * Added for EKF Intel i960 serial boards
220 static int pci_inteli960ni_init(struct pci_dev
*dev
)
222 unsigned long oldval
;
224 if (!(dev
->subsystem_device
& 0x1000))
227 /* is firmware started? */
228 pci_read_config_dword(dev
, 0x44, (void *)&oldval
);
229 if (oldval
== 0x00001000L
) { /* RESET value */
230 printk(KERN_DEBUG
"Local i960 firmware missing");
237 * Some PCI serial cards using the PLX 9050 PCI interface chip require
238 * that the card interrupt be explicitly enabled or disabled. This
239 * seems to be mainly needed on card using the PLX which also use I/O
242 static int pci_plx9050_init(struct pci_dev
*dev
)
247 if ((pci_resource_flags(dev
, 0) & IORESOURCE_MEM
) == 0) {
248 moan_device("no memory in bar 0", dev
);
253 if (dev
->vendor
== PCI_VENDOR_ID_PANACOM
||
254 dev
->subsystem_vendor
== PCI_SUBVENDOR_ID_EXSYS
)
257 if ((dev
->vendor
== PCI_VENDOR_ID_PLX
) &&
258 (dev
->device
== PCI_DEVICE_ID_PLX_ROMULUS
))
260 * As the megawolf cards have the int pins active
261 * high, and have 2 UART chips, both ints must be
262 * enabled on the 9050. Also, the UARTS are set in
263 * 16450 mode by default, so we have to enable the
264 * 16C950 'enhanced' mode so that we can use the
269 * enable/disable interrupts
271 p
= ioremap_nocache(pci_resource_start(dev
, 0), 0x80);
274 writel(irq_config
, p
+ 0x4c);
277 * Read the register back to ensure that it took effect.
285 static void __devexit
pci_plx9050_exit(struct pci_dev
*dev
)
289 if ((pci_resource_flags(dev
, 0) & IORESOURCE_MEM
) == 0)
295 p
= ioremap_nocache(pci_resource_start(dev
, 0), 0x80);
300 * Read the register back to ensure that it took effect.
307 /* SBS Technologies Inc. PMC-OCTPRO and P-OCTAL cards */
309 sbs_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
310 struct uart_port
*port
, int idx
)
312 unsigned int bar
, offset
= board
->first_offset
;
317 /* first four channels map to 0, 0x100, 0x200, 0x300 */
318 offset
+= idx
* board
->uart_offset
;
319 } else if (idx
< 8) {
320 /* last four channels map to 0x1000, 0x1100, 0x1200, 0x1300 */
321 offset
+= idx
* board
->uart_offset
+ 0xC00;
322 } else /* we have only 8 ports on PMC-OCTALPRO */
325 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
329 * This does initialization for PMC OCTALPRO cards:
330 * maps the device memory, resets the UARTs (needed, bc
331 * if the module is removed and inserted again, the card
332 * is in the sleep mode) and enables global interrupt.
335 /* global control register offset for SBS PMC-OctalPro */
336 #define OCT_REG_CR_OFF 0x500
338 static int sbs_init(struct pci_dev
*dev
)
342 p
= ioremap_nocache(pci_resource_start(dev
, 0),
343 pci_resource_len(dev
, 0));
347 /* Set bit-4 Control Register (UART RESET) in to reset the uarts */
348 writeb(0x10, p
+ OCT_REG_CR_OFF
);
350 writeb(0x0, p
+ OCT_REG_CR_OFF
);
352 /* Set bit-2 (INTENABLE) of Control Register */
353 writeb(0x4, p
+ OCT_REG_CR_OFF
);
360 * Disables the global interrupt of PMC-OctalPro
363 static void __devexit
sbs_exit(struct pci_dev
*dev
)
367 p
= ioremap_nocache(pci_resource_start(dev
, 0),
368 pci_resource_len(dev
, 0));
369 /* FIXME: What if resource_len < OCT_REG_CR_OFF */
371 writeb(0, p
+ OCT_REG_CR_OFF
);
376 * SIIG serial cards have an PCI interface chip which also controls
377 * the UART clocking frequency. Each UART can be clocked independently
378 * (except cards equiped with 4 UARTs) and initial clocking settings
379 * are stored in the EEPROM chip. It can cause problems because this
380 * version of serial driver doesn't support differently clocked UART's
381 * on single PCI card. To prevent this, initialization functions set
382 * high frequency clocking for all UART's on given card. It is safe (I
383 * hope) because it doesn't touch EEPROM settings to prevent conflicts
384 * with other OSes (like M$ DOS).
386 * SIIG support added by Andrey Panin <pazke@donpac.ru>, 10/1999
388 * There is two family of SIIG serial cards with different PCI
389 * interface chip and different configuration methods:
390 * - 10x cards have control registers in IO and/or memory space;
391 * - 20x cards have control registers in standard PCI configuration space.
393 * Note: all 10x cards have PCI device ids 0x10..
394 * all 20x cards have PCI device ids 0x20..
396 * There are also Quartet Serial cards which use Oxford Semiconductor
397 * 16954 quad UART PCI chip clocked by 18.432 MHz quartz.
399 * Note: some SIIG cards are probed by the parport_serial object.
402 #define PCI_DEVICE_ID_SIIG_1S_10x (PCI_DEVICE_ID_SIIG_1S_10x_550 & 0xfffc)
403 #define PCI_DEVICE_ID_SIIG_2S_10x (PCI_DEVICE_ID_SIIG_2S_10x_550 & 0xfff8)
405 static int pci_siig10x_init(struct pci_dev
*dev
)
410 switch (dev
->device
& 0xfff8) {
411 case PCI_DEVICE_ID_SIIG_1S_10x
: /* 1S */
414 case PCI_DEVICE_ID_SIIG_2S_10x
: /* 2S, 2S1P */
417 default: /* 1S1P, 4S */
422 p
= ioremap_nocache(pci_resource_start(dev
, 0), 0x80);
426 writew(readw(p
+ 0x28) & data
, p
+ 0x28);
432 #define PCI_DEVICE_ID_SIIG_2S_20x (PCI_DEVICE_ID_SIIG_2S_20x_550 & 0xfffc)
433 #define PCI_DEVICE_ID_SIIG_2S1P_20x (PCI_DEVICE_ID_SIIG_2S1P_20x_550 & 0xfffc)
435 static int pci_siig20x_init(struct pci_dev
*dev
)
439 /* Change clock frequency for the first UART. */
440 pci_read_config_byte(dev
, 0x6f, &data
);
441 pci_write_config_byte(dev
, 0x6f, data
& 0xef);
443 /* If this card has 2 UART, we have to do the same with second UART. */
444 if (((dev
->device
& 0xfffc) == PCI_DEVICE_ID_SIIG_2S_20x
) ||
445 ((dev
->device
& 0xfffc) == PCI_DEVICE_ID_SIIG_2S1P_20x
)) {
446 pci_read_config_byte(dev
, 0x73, &data
);
447 pci_write_config_byte(dev
, 0x73, data
& 0xef);
452 static int pci_siig_init(struct pci_dev
*dev
)
454 unsigned int type
= dev
->device
& 0xff00;
457 return pci_siig10x_init(dev
);
458 else if (type
== 0x2000)
459 return pci_siig20x_init(dev
);
461 moan_device("Unknown SIIG card", dev
);
465 static int pci_siig_setup(struct serial_private
*priv
,
466 struct pciserial_board
*board
,
467 struct uart_port
*port
, int idx
)
469 unsigned int bar
= FL_GET_BASE(board
->flags
) + idx
, offset
= 0;
473 offset
= (idx
- 4) * 8;
476 return setup_port(priv
, port
, bar
, offset
, 0);
480 * Timedia has an explosion of boards, and to avoid the PCI table from
481 * growing *huge*, we use this function to collapse some 70 entries
482 * in the PCI table into one, for sanity's and compactness's sake.
484 static const unsigned short timedia_single_port
[] = {
485 0x4025, 0x4027, 0x4028, 0x5025, 0x5027, 0
488 static const unsigned short timedia_dual_port
[] = {
489 0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085,
490 0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079,
491 0x7079, 0x8079, 0x8137, 0x8138, 0x8237, 0x8238, 0x9079,
492 0x9137, 0x9138, 0x9237, 0x9238, 0xA079, 0xB079, 0xC079,
496 static const unsigned short timedia_quad_port
[] = {
497 0x4055, 0x4056, 0x4095, 0x4096, 0x5056, 0x8156, 0x8157,
498 0x8256, 0x8257, 0x9056, 0x9156, 0x9157, 0x9158, 0x9159,
499 0x9256, 0x9257, 0xA056, 0xA157, 0xA158, 0xA159, 0xB056,
503 static const unsigned short timedia_eight_port
[] = {
504 0x4065, 0x4066, 0x5065, 0x5066, 0x8166, 0x9066, 0x9166,
505 0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0
508 static const struct timedia_struct
{
510 const unsigned short *ids
;
512 { 1, timedia_single_port
},
513 { 2, timedia_dual_port
},
514 { 4, timedia_quad_port
},
515 { 8, timedia_eight_port
}
518 static int pci_timedia_init(struct pci_dev
*dev
)
520 const unsigned short *ids
;
523 for (i
= 0; i
< ARRAY_SIZE(timedia_data
); i
++) {
524 ids
= timedia_data
[i
].ids
;
525 for (j
= 0; ids
[j
]; j
++)
526 if (dev
->subsystem_device
== ids
[j
])
527 return timedia_data
[i
].num
;
533 * Timedia/SUNIX uses a mixture of BARs and offsets
534 * Ugh, this is ugly as all hell --- TYT
537 pci_timedia_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
538 struct uart_port
*port
, int idx
)
540 unsigned int bar
= 0, offset
= board
->first_offset
;
547 offset
= board
->uart_offset
;
554 offset
= board
->uart_offset
;
563 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
567 * Some Titan cards are also a little weird
570 titan_400l_800l_setup(struct serial_private
*priv
,
571 struct pciserial_board
*board
,
572 struct uart_port
*port
, int idx
)
574 unsigned int bar
, offset
= board
->first_offset
;
585 offset
= (idx
- 2) * board
->uart_offset
;
588 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
591 static int pci_xircom_init(struct pci_dev
*dev
)
597 static int pci_netmos_init(struct pci_dev
*dev
)
599 /* subdevice 0x00PS means <P> parallel, <S> serial */
600 unsigned int num_serial
= dev
->subsystem_device
& 0xf;
608 * ITE support by Niels de Vos <niels.devos@wincor-nixdorf.com>
610 * These chips are available with optionally one parallel port and up to
611 * two serial ports. Unfortunately they all have the same product id.
613 * Basic configuration is done over a region of 32 I/O ports. The base
614 * ioport is called INTA or INTC, depending on docs/other drivers.
616 * The region of the 32 I/O ports is configured in POSIO0R...
620 #define ITE_887x_MISCR 0x9c
621 #define ITE_887x_INTCBAR 0x78
622 #define ITE_887x_UARTBAR 0x7c
623 #define ITE_887x_PS0BAR 0x10
624 #define ITE_887x_POSIO0 0x60
627 #define ITE_887x_IOSIZE 32
628 /* I/O space size (bits 26-24; 8 bytes = 011b) */
629 #define ITE_887x_POSIO_IOSIZE_8 (3 << 24)
630 /* I/O space size (bits 26-24; 32 bytes = 101b) */
631 #define ITE_887x_POSIO_IOSIZE_32 (5 << 24)
632 /* Decoding speed (1 = slow, 2 = medium, 3 = fast) */
633 #define ITE_887x_POSIO_SPEED (3 << 29)
634 /* enable IO_Space bit */
635 #define ITE_887x_POSIO_ENABLE (1 << 31)
637 static int pci_ite887x_init(struct pci_dev
*dev
)
639 /* inta_addr are the configuration addresses of the ITE */
640 static const short inta_addr
[] = { 0x2a0, 0x2c0, 0x220, 0x240, 0x1e0,
643 struct resource
*iobase
= NULL
;
644 u32 miscr
, uartbar
, ioport
;
646 /* search for the base-ioport */
648 while (inta_addr
[i
] && iobase
== NULL
) {
649 iobase
= request_region(inta_addr
[i
], ITE_887x_IOSIZE
,
651 if (iobase
!= NULL
) {
652 /* write POSIO0R - speed | size | ioport */
653 pci_write_config_dword(dev
, ITE_887x_POSIO0
,
654 ITE_887x_POSIO_ENABLE
| ITE_887x_POSIO_SPEED
|
655 ITE_887x_POSIO_IOSIZE_32
| inta_addr
[i
]);
656 /* write INTCBAR - ioport */
657 pci_write_config_dword(dev
, ITE_887x_INTCBAR
,
659 ret
= inb(inta_addr
[i
]);
661 /* ioport connected */
664 release_region(iobase
->start
, ITE_887x_IOSIZE
);
671 printk(KERN_ERR
"ite887x: could not find iobase\n");
675 /* start of undocumented type checking (see parport_pc.c) */
676 type
= inb(iobase
->start
+ 0x18) & 0x0f;
679 case 0x2: /* ITE8871 (1P) */
680 case 0xa: /* ITE8875 (1P) */
683 case 0xe: /* ITE8872 (2S1P) */
686 case 0x6: /* ITE8873 (1S) */
689 case 0x8: /* ITE8874 (2S) */
693 moan_device("Unknown ITE887x", dev
);
697 /* configure all serial ports */
698 for (i
= 0; i
< ret
; i
++) {
699 /* read the I/O port from the device */
700 pci_read_config_dword(dev
, ITE_887x_PS0BAR
+ (0x4 * (i
+ 1)),
702 ioport
&= 0x0000FF00; /* the actual base address */
703 pci_write_config_dword(dev
, ITE_887x_POSIO0
+ (0x4 * (i
+ 1)),
704 ITE_887x_POSIO_ENABLE
| ITE_887x_POSIO_SPEED
|
705 ITE_887x_POSIO_IOSIZE_8
| ioport
);
707 /* write the ioport to the UARTBAR */
708 pci_read_config_dword(dev
, ITE_887x_UARTBAR
, &uartbar
);
709 uartbar
&= ~(0xffff << (16 * i
)); /* clear half the reg */
710 uartbar
|= (ioport
<< (16 * i
)); /* set the ioport */
711 pci_write_config_dword(dev
, ITE_887x_UARTBAR
, uartbar
);
713 /* get current config */
714 pci_read_config_dword(dev
, ITE_887x_MISCR
, &miscr
);
715 /* disable interrupts (UARTx_Routing[3:0]) */
716 miscr
&= ~(0xf << (12 - 4 * i
));
717 /* activate the UART (UARTx_En) */
718 miscr
|= 1 << (23 - i
);
719 /* write new config with activated UART */
720 pci_write_config_dword(dev
, ITE_887x_MISCR
, miscr
);
724 /* the device has no UARTs if we get here */
725 release_region(iobase
->start
, ITE_887x_IOSIZE
);
731 static void __devexit
pci_ite887x_exit(struct pci_dev
*dev
)
734 /* the ioport is bit 0-15 in POSIO0R */
735 pci_read_config_dword(dev
, ITE_887x_POSIO0
, &ioport
);
737 release_region(ioport
, ITE_887x_IOSIZE
);
741 pci_default_setup(struct serial_private
*priv
, struct pciserial_board
*board
,
742 struct uart_port
*port
, int idx
)
744 unsigned int bar
, offset
= board
->first_offset
, maxnr
;
746 bar
= FL_GET_BASE(board
->flags
);
747 if (board
->flags
& FL_BASE_BARS
)
750 offset
+= idx
* board
->uart_offset
;
752 maxnr
= (pci_resource_len(priv
->dev
, bar
) - board
->first_offset
) >>
753 (board
->reg_shift
+ 3);
755 if (board
->flags
& FL_REGION_SZ_CAP
&& idx
>= maxnr
)
758 return setup_port(priv
, port
, bar
, offset
, board
->reg_shift
);
761 /* This should be in linux/pci_ids.h */
762 #define PCI_VENDOR_ID_SBSMODULARIO 0x124B
763 #define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B
764 #define PCI_DEVICE_ID_OCTPRO 0x0001
765 #define PCI_SUBDEVICE_ID_OCTPRO232 0x0108
766 #define PCI_SUBDEVICE_ID_OCTPRO422 0x0208
767 #define PCI_SUBDEVICE_ID_POCTAL232 0x0308
768 #define PCI_SUBDEVICE_ID_POCTAL422 0x0408
771 * Master list of serial port init/setup/exit quirks.
772 * This does not describe the general nature of the port.
773 * (ie, baud base, number and location of ports, etc)
775 * This list is ordered alphabetically by vendor then device.
776 * Specific entries must come before more generic entries.
778 static struct pci_serial_quirk pci_serial_quirks
[] __refdata
= {
780 * ADDI-DATA GmbH communication cards <info@addi-data.com>
783 .vendor
= PCI_VENDOR_ID_ADDIDATA_OLD
,
784 .device
= PCI_DEVICE_ID_ADDIDATA_APCI7800
,
785 .subvendor
= PCI_ANY_ID
,
786 .subdevice
= PCI_ANY_ID
,
787 .setup
= addidata_apci7800_setup
,
790 * AFAVLAB cards - these may be called via parport_serial
791 * It is not clear whether this applies to all products.
794 .vendor
= PCI_VENDOR_ID_AFAVLAB
,
795 .device
= PCI_ANY_ID
,
796 .subvendor
= PCI_ANY_ID
,
797 .subdevice
= PCI_ANY_ID
,
798 .setup
= afavlab_setup
,
804 .vendor
= PCI_VENDOR_ID_HP
,
805 .device
= PCI_DEVICE_ID_HP_DIVA
,
806 .subvendor
= PCI_ANY_ID
,
807 .subdevice
= PCI_ANY_ID
,
808 .init
= pci_hp_diva_init
,
809 .setup
= pci_hp_diva_setup
,
815 .vendor
= PCI_VENDOR_ID_INTEL
,
816 .device
= PCI_DEVICE_ID_INTEL_80960_RP
,
818 .subdevice
= PCI_ANY_ID
,
819 .init
= pci_inteli960ni_init
,
820 .setup
= pci_default_setup
,
826 .vendor
= PCI_VENDOR_ID_ITE
,
827 .device
= PCI_DEVICE_ID_ITE_8872
,
828 .subvendor
= PCI_ANY_ID
,
829 .subdevice
= PCI_ANY_ID
,
830 .init
= pci_ite887x_init
,
831 .setup
= pci_default_setup
,
832 .exit
= __devexit_p(pci_ite887x_exit
),
838 .vendor
= PCI_VENDOR_ID_PANACOM
,
839 .device
= PCI_DEVICE_ID_PANACOM_QUADMODEM
,
840 .subvendor
= PCI_ANY_ID
,
841 .subdevice
= PCI_ANY_ID
,
842 .init
= pci_plx9050_init
,
843 .setup
= pci_default_setup
,
844 .exit
= __devexit_p(pci_plx9050_exit
),
847 .vendor
= PCI_VENDOR_ID_PANACOM
,
848 .device
= PCI_DEVICE_ID_PANACOM_DUALMODEM
,
849 .subvendor
= PCI_ANY_ID
,
850 .subdevice
= PCI_ANY_ID
,
851 .init
= pci_plx9050_init
,
852 .setup
= pci_default_setup
,
853 .exit
= __devexit_p(pci_plx9050_exit
),
859 .vendor
= PCI_VENDOR_ID_PLX
,
860 .device
= PCI_DEVICE_ID_PLX_9030
,
861 .subvendor
= PCI_SUBVENDOR_ID_PERLE
,
862 .subdevice
= PCI_ANY_ID
,
863 .setup
= pci_default_setup
,
866 .vendor
= PCI_VENDOR_ID_PLX
,
867 .device
= PCI_DEVICE_ID_PLX_9050
,
868 .subvendor
= PCI_SUBVENDOR_ID_EXSYS
,
869 .subdevice
= PCI_SUBDEVICE_ID_EXSYS_4055
,
870 .init
= pci_plx9050_init
,
871 .setup
= pci_default_setup
,
872 .exit
= __devexit_p(pci_plx9050_exit
),
875 .vendor
= PCI_VENDOR_ID_PLX
,
876 .device
= PCI_DEVICE_ID_PLX_9050
,
877 .subvendor
= PCI_SUBVENDOR_ID_KEYSPAN
,
878 .subdevice
= PCI_SUBDEVICE_ID_KEYSPAN_SX2
,
879 .init
= pci_plx9050_init
,
880 .setup
= pci_default_setup
,
881 .exit
= __devexit_p(pci_plx9050_exit
),
884 .vendor
= PCI_VENDOR_ID_PLX
,
885 .device
= PCI_DEVICE_ID_PLX_ROMULUS
,
886 .subvendor
= PCI_VENDOR_ID_PLX
,
887 .subdevice
= PCI_DEVICE_ID_PLX_ROMULUS
,
888 .init
= pci_plx9050_init
,
889 .setup
= pci_default_setup
,
890 .exit
= __devexit_p(pci_plx9050_exit
),
893 * SBS Technologies, Inc., PMC-OCTALPRO 232
896 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
897 .device
= PCI_DEVICE_ID_OCTPRO
,
898 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
899 .subdevice
= PCI_SUBDEVICE_ID_OCTPRO232
,
902 .exit
= __devexit_p(sbs_exit
),
905 * SBS Technologies, Inc., PMC-OCTALPRO 422
908 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
909 .device
= PCI_DEVICE_ID_OCTPRO
,
910 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
911 .subdevice
= PCI_SUBDEVICE_ID_OCTPRO422
,
914 .exit
= __devexit_p(sbs_exit
),
917 * SBS Technologies, Inc., P-Octal 232
920 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
921 .device
= PCI_DEVICE_ID_OCTPRO
,
922 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
923 .subdevice
= PCI_SUBDEVICE_ID_POCTAL232
,
926 .exit
= __devexit_p(sbs_exit
),
929 * SBS Technologies, Inc., P-Octal 422
932 .vendor
= PCI_VENDOR_ID_SBSMODULARIO
,
933 .device
= PCI_DEVICE_ID_OCTPRO
,
934 .subvendor
= PCI_SUBVENDOR_ID_SBSMODULARIO
,
935 .subdevice
= PCI_SUBDEVICE_ID_POCTAL422
,
938 .exit
= __devexit_p(sbs_exit
),
941 * SIIG cards - these may be called via parport_serial
944 .vendor
= PCI_VENDOR_ID_SIIG
,
945 .device
= PCI_ANY_ID
,
946 .subvendor
= PCI_ANY_ID
,
947 .subdevice
= PCI_ANY_ID
,
948 .init
= pci_siig_init
,
949 .setup
= pci_siig_setup
,
955 .vendor
= PCI_VENDOR_ID_TITAN
,
956 .device
= PCI_DEVICE_ID_TITAN_400L
,
957 .subvendor
= PCI_ANY_ID
,
958 .subdevice
= PCI_ANY_ID
,
959 .setup
= titan_400l_800l_setup
,
962 .vendor
= PCI_VENDOR_ID_TITAN
,
963 .device
= PCI_DEVICE_ID_TITAN_800L
,
964 .subvendor
= PCI_ANY_ID
,
965 .subdevice
= PCI_ANY_ID
,
966 .setup
= titan_400l_800l_setup
,
972 .vendor
= PCI_VENDOR_ID_TIMEDIA
,
973 .device
= PCI_DEVICE_ID_TIMEDIA_1889
,
974 .subvendor
= PCI_VENDOR_ID_TIMEDIA
,
975 .subdevice
= PCI_ANY_ID
,
976 .init
= pci_timedia_init
,
977 .setup
= pci_timedia_setup
,
980 .vendor
= PCI_VENDOR_ID_TIMEDIA
,
981 .device
= PCI_ANY_ID
,
982 .subvendor
= PCI_ANY_ID
,
983 .subdevice
= PCI_ANY_ID
,
984 .setup
= pci_timedia_setup
,
990 .vendor
= PCI_VENDOR_ID_XIRCOM
,
991 .device
= PCI_DEVICE_ID_XIRCOM_X3201_MDM
,
992 .subvendor
= PCI_ANY_ID
,
993 .subdevice
= PCI_ANY_ID
,
994 .init
= pci_xircom_init
,
995 .setup
= pci_default_setup
,
998 * Netmos cards - these may be called via parport_serial
1001 .vendor
= PCI_VENDOR_ID_NETMOS
,
1002 .device
= PCI_ANY_ID
,
1003 .subvendor
= PCI_ANY_ID
,
1004 .subdevice
= PCI_ANY_ID
,
1005 .init
= pci_netmos_init
,
1006 .setup
= pci_default_setup
,
1009 * Default "match everything" terminator entry
1012 .vendor
= PCI_ANY_ID
,
1013 .device
= PCI_ANY_ID
,
1014 .subvendor
= PCI_ANY_ID
,
1015 .subdevice
= PCI_ANY_ID
,
1016 .setup
= pci_default_setup
,
1020 static inline int quirk_id_matches(u32 quirk_id
, u32 dev_id
)
1022 return quirk_id
== PCI_ANY_ID
|| quirk_id
== dev_id
;
1025 static struct pci_serial_quirk
*find_quirk(struct pci_dev
*dev
)
1027 struct pci_serial_quirk
*quirk
;
1029 for (quirk
= pci_serial_quirks
; ; quirk
++)
1030 if (quirk_id_matches(quirk
->vendor
, dev
->vendor
) &&
1031 quirk_id_matches(quirk
->device
, dev
->device
) &&
1032 quirk_id_matches(quirk
->subvendor
, dev
->subsystem_vendor
) &&
1033 quirk_id_matches(quirk
->subdevice
, dev
->subsystem_device
))
1038 static inline int get_pci_irq(struct pci_dev
*dev
,
1039 struct pciserial_board
*board
)
1041 if (board
->flags
& FL_NOIRQ
)
1048 * This is the configuration table for all of the PCI serial boards
1049 * which we support. It is directly indexed by the pci_board_num_t enum
1050 * value, which is encoded in the pci_device_id PCI probe table's
1051 * driver_data member.
1053 * The makeup of these names are:
1054 * pbn_bn{_bt}_n_baud{_offsetinhex}
1056 * bn = PCI BAR number
1057 * bt = Index using PCI BARs
1058 * n = number of serial ports
1060 * offsetinhex = offset for each sequential port (in hex)
1062 * This table is sorted by (in order): bn, bt, baud, offsetindex, n.
1064 * Please note: in theory if n = 1, _bt infix should make no difference.
1065 * ie, pbn_b0_1_115200 is the same as pbn_b0_bt_1_115200
1067 enum pci_board_num_t
{
1087 pbn_b0_2_1843200_200
,
1088 pbn_b0_4_1843200_200
,
1089 pbn_b0_8_1843200_200
,
1150 * Board-specific versions.
1171 * uart_offset - the space between channels
1172 * reg_shift - describes how the UART registers are mapped
1173 * to PCI memory by the card.
1174 * For example IER register on SBS, Inc. PMC-OctPro is located at
1175 * offset 0x10 from the UART base, while UART_IER is defined as 1
1176 * in include/linux/serial_reg.h,
1177 * see first lines of serial_in() and serial_out() in 8250.c
1180 static struct pciserial_board pci_boards
[] __devinitdata
= {
1184 .base_baud
= 115200,
1187 [pbn_b0_1_115200
] = {
1190 .base_baud
= 115200,
1193 [pbn_b0_2_115200
] = {
1196 .base_baud
= 115200,
1199 [pbn_b0_4_115200
] = {
1202 .base_baud
= 115200,
1205 [pbn_b0_5_115200
] = {
1208 .base_baud
= 115200,
1211 [pbn_b0_8_115200
] = {
1214 .base_baud
= 115200,
1217 [pbn_b0_1_921600
] = {
1220 .base_baud
= 921600,
1223 [pbn_b0_2_921600
] = {
1226 .base_baud
= 921600,
1229 [pbn_b0_4_921600
] = {
1232 .base_baud
= 921600,
1236 [pbn_b0_2_1130000
] = {
1239 .base_baud
= 1130000,
1243 [pbn_b0_4_1152000
] = {
1246 .base_baud
= 1152000,
1250 [pbn_b0_2_1843200
] = {
1253 .base_baud
= 1843200,
1256 [pbn_b0_4_1843200
] = {
1259 .base_baud
= 1843200,
1263 [pbn_b0_2_1843200_200
] = {
1266 .base_baud
= 1843200,
1267 .uart_offset
= 0x200,
1269 [pbn_b0_4_1843200_200
] = {
1272 .base_baud
= 1843200,
1273 .uart_offset
= 0x200,
1275 [pbn_b0_8_1843200_200
] = {
1278 .base_baud
= 1843200,
1279 .uart_offset
= 0x200,
1282 [pbn_b0_bt_1_115200
] = {
1283 .flags
= FL_BASE0
|FL_BASE_BARS
,
1285 .base_baud
= 115200,
1288 [pbn_b0_bt_2_115200
] = {
1289 .flags
= FL_BASE0
|FL_BASE_BARS
,
1291 .base_baud
= 115200,
1294 [pbn_b0_bt_8_115200
] = {
1295 .flags
= FL_BASE0
|FL_BASE_BARS
,
1297 .base_baud
= 115200,
1301 [pbn_b0_bt_1_460800
] = {
1302 .flags
= FL_BASE0
|FL_BASE_BARS
,
1304 .base_baud
= 460800,
1307 [pbn_b0_bt_2_460800
] = {
1308 .flags
= FL_BASE0
|FL_BASE_BARS
,
1310 .base_baud
= 460800,
1313 [pbn_b0_bt_4_460800
] = {
1314 .flags
= FL_BASE0
|FL_BASE_BARS
,
1316 .base_baud
= 460800,
1320 [pbn_b0_bt_1_921600
] = {
1321 .flags
= FL_BASE0
|FL_BASE_BARS
,
1323 .base_baud
= 921600,
1326 [pbn_b0_bt_2_921600
] = {
1327 .flags
= FL_BASE0
|FL_BASE_BARS
,
1329 .base_baud
= 921600,
1332 [pbn_b0_bt_4_921600
] = {
1333 .flags
= FL_BASE0
|FL_BASE_BARS
,
1335 .base_baud
= 921600,
1338 [pbn_b0_bt_8_921600
] = {
1339 .flags
= FL_BASE0
|FL_BASE_BARS
,
1341 .base_baud
= 921600,
1345 [pbn_b1_1_115200
] = {
1348 .base_baud
= 115200,
1351 [pbn_b1_2_115200
] = {
1354 .base_baud
= 115200,
1357 [pbn_b1_4_115200
] = {
1360 .base_baud
= 115200,
1363 [pbn_b1_8_115200
] = {
1366 .base_baud
= 115200,
1370 [pbn_b1_1_921600
] = {
1373 .base_baud
= 921600,
1376 [pbn_b1_2_921600
] = {
1379 .base_baud
= 921600,
1382 [pbn_b1_4_921600
] = {
1385 .base_baud
= 921600,
1388 [pbn_b1_8_921600
] = {
1391 .base_baud
= 921600,
1394 [pbn_b1_2_1250000
] = {
1397 .base_baud
= 1250000,
1401 [pbn_b1_bt_1_115200
] = {
1402 .flags
= FL_BASE1
|FL_BASE_BARS
,
1404 .base_baud
= 115200,
1408 [pbn_b1_bt_2_921600
] = {
1409 .flags
= FL_BASE1
|FL_BASE_BARS
,
1411 .base_baud
= 921600,
1415 [pbn_b1_1_1382400
] = {
1418 .base_baud
= 1382400,
1421 [pbn_b1_2_1382400
] = {
1424 .base_baud
= 1382400,
1427 [pbn_b1_4_1382400
] = {
1430 .base_baud
= 1382400,
1433 [pbn_b1_8_1382400
] = {
1436 .base_baud
= 1382400,
1440 [pbn_b2_1_115200
] = {
1443 .base_baud
= 115200,
1446 [pbn_b2_2_115200
] = {
1449 .base_baud
= 115200,
1452 [pbn_b2_4_115200
] = {
1455 .base_baud
= 115200,
1458 [pbn_b2_8_115200
] = {
1461 .base_baud
= 115200,
1465 [pbn_b2_1_460800
] = {
1468 .base_baud
= 460800,
1471 [pbn_b2_4_460800
] = {
1474 .base_baud
= 460800,
1477 [pbn_b2_8_460800
] = {
1480 .base_baud
= 460800,
1483 [pbn_b2_16_460800
] = {
1486 .base_baud
= 460800,
1490 [pbn_b2_1_921600
] = {
1493 .base_baud
= 921600,
1496 [pbn_b2_4_921600
] = {
1499 .base_baud
= 921600,
1502 [pbn_b2_8_921600
] = {
1505 .base_baud
= 921600,
1509 [pbn_b2_bt_1_115200
] = {
1510 .flags
= FL_BASE2
|FL_BASE_BARS
,
1512 .base_baud
= 115200,
1515 [pbn_b2_bt_2_115200
] = {
1516 .flags
= FL_BASE2
|FL_BASE_BARS
,
1518 .base_baud
= 115200,
1521 [pbn_b2_bt_4_115200
] = {
1522 .flags
= FL_BASE2
|FL_BASE_BARS
,
1524 .base_baud
= 115200,
1528 [pbn_b2_bt_2_921600
] = {
1529 .flags
= FL_BASE2
|FL_BASE_BARS
,
1531 .base_baud
= 921600,
1534 [pbn_b2_bt_4_921600
] = {
1535 .flags
= FL_BASE2
|FL_BASE_BARS
,
1537 .base_baud
= 921600,
1541 [pbn_b3_2_115200
] = {
1544 .base_baud
= 115200,
1547 [pbn_b3_4_115200
] = {
1550 .base_baud
= 115200,
1553 [pbn_b3_8_115200
] = {
1556 .base_baud
= 115200,
1561 * Entries following this are board-specific.
1570 .base_baud
= 921600,
1571 .uart_offset
= 0x400,
1575 .flags
= FL_BASE2
|FL_BASE_BARS
,
1577 .base_baud
= 921600,
1578 .uart_offset
= 0x400,
1582 .flags
= FL_BASE2
|FL_BASE_BARS
,
1584 .base_baud
= 921600,
1585 .uart_offset
= 0x400,
1589 [pbn_exsys_4055
] = {
1592 .base_baud
= 115200,
1596 /* I think this entry is broken - the first_offset looks wrong --rmk */
1597 [pbn_plx_romulus
] = {
1600 .base_baud
= 921600,
1601 .uart_offset
= 8 << 2,
1603 .first_offset
= 0x03,
1607 * This board uses the size of PCI Base region 0 to
1608 * signal now many ports are available
1611 .flags
= FL_BASE0
|FL_REGION_SZ_CAP
,
1613 .base_baud
= 115200,
1618 * EKF addition for i960 Boards form EKF with serial port.
1621 [pbn_intel_i960
] = {
1624 .base_baud
= 921600,
1625 .uart_offset
= 8 << 2,
1627 .first_offset
= 0x10000,
1630 .flags
= FL_BASE0
|FL_NOIRQ
,
1632 .base_baud
= 458333,
1635 .first_offset
= 0x20178,
1639 * Computone - uses IOMEM.
1641 [pbn_computone_4
] = {
1644 .base_baud
= 921600,
1645 .uart_offset
= 0x40,
1647 .first_offset
= 0x200,
1649 [pbn_computone_6
] = {
1652 .base_baud
= 921600,
1653 .uart_offset
= 0x40,
1655 .first_offset
= 0x200,
1657 [pbn_computone_8
] = {
1660 .base_baud
= 921600,
1661 .uart_offset
= 0x40,
1663 .first_offset
= 0x200,
1668 .base_baud
= 460800,
1673 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
1674 * Only basic 16550A support.
1675 * XR17C15[24] are not tested, but they should work.
1677 [pbn_exar_XR17C152
] = {
1680 .base_baud
= 921600,
1681 .uart_offset
= 0x200,
1683 [pbn_exar_XR17C154
] = {
1686 .base_baud
= 921600,
1687 .uart_offset
= 0x200,
1689 [pbn_exar_XR17C158
] = {
1692 .base_baud
= 921600,
1693 .uart_offset
= 0x200,
1696 * PA Semi PWRficient PA6T-1682M on-chip UART
1698 [pbn_pasemi_1682M
] = {
1701 .base_baud
= 8333333,
1705 static const struct pci_device_id softmodem_blacklist
[] = {
1706 { PCI_VDEVICE(AL
, 0x5457), }, /* ALi Corporation M5457 AC'97 Modem */
1710 * Given a complete unknown PCI device, try to use some heuristics to
1711 * guess what the configuration might be, based on the pitiful PCI
1712 * serial specs. Returns 0 on success, 1 on failure.
1714 static int __devinit
1715 serial_pci_guess_board(struct pci_dev
*dev
, struct pciserial_board
*board
)
1717 const struct pci_device_id
*blacklist
;
1718 int num_iomem
, num_port
, first_port
= -1, i
;
1721 * If it is not a communications device or the programming
1722 * interface is greater than 6, give up.
1724 * (Should we try to make guesses for multiport serial devices
1727 if ((((dev
->class >> 8) != PCI_CLASS_COMMUNICATION_SERIAL
) &&
1728 ((dev
->class >> 8) != PCI_CLASS_COMMUNICATION_MODEM
)) ||
1729 (dev
->class & 0xff) > 6)
1733 * Do not access blacklisted devices that are known not to
1734 * feature serial ports.
1736 for (blacklist
= softmodem_blacklist
;
1737 blacklist
< softmodem_blacklist
+ ARRAY_SIZE(softmodem_blacklist
);
1739 if (dev
->vendor
== blacklist
->vendor
&&
1740 dev
->device
== blacklist
->device
)
1744 num_iomem
= num_port
= 0;
1745 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
1746 if (pci_resource_flags(dev
, i
) & IORESOURCE_IO
) {
1748 if (first_port
== -1)
1751 if (pci_resource_flags(dev
, i
) & IORESOURCE_MEM
)
1756 * If there is 1 or 0 iomem regions, and exactly one port,
1757 * use it. We guess the number of ports based on the IO
1760 if (num_iomem
<= 1 && num_port
== 1) {
1761 board
->flags
= first_port
;
1762 board
->num_ports
= pci_resource_len(dev
, first_port
) / 8;
1767 * Now guess if we've got a board which indexes by BARs.
1768 * Each IO BAR should be 8 bytes, and they should follow
1773 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
1774 if (pci_resource_flags(dev
, i
) & IORESOURCE_IO
&&
1775 pci_resource_len(dev
, i
) == 8 &&
1776 (first_port
== -1 || (first_port
+ num_port
) == i
)) {
1778 if (first_port
== -1)
1784 board
->flags
= first_port
| FL_BASE_BARS
;
1785 board
->num_ports
= num_port
;
1793 serial_pci_matches(struct pciserial_board
*board
,
1794 struct pciserial_board
*guessed
)
1797 board
->num_ports
== guessed
->num_ports
&&
1798 board
->base_baud
== guessed
->base_baud
&&
1799 board
->uart_offset
== guessed
->uart_offset
&&
1800 board
->reg_shift
== guessed
->reg_shift
&&
1801 board
->first_offset
== guessed
->first_offset
;
1804 struct serial_private
*
1805 pciserial_init_ports(struct pci_dev
*dev
, struct pciserial_board
*board
)
1807 struct uart_port serial_port
;
1808 struct serial_private
*priv
;
1809 struct pci_serial_quirk
*quirk
;
1810 int rc
, nr_ports
, i
;
1812 nr_ports
= board
->num_ports
;
1815 * Find an init and setup quirks.
1817 quirk
= find_quirk(dev
);
1820 * Run the new-style initialization function.
1821 * The initialization function returns:
1823 * 0 - use board->num_ports
1824 * >0 - number of ports
1827 rc
= quirk
->init(dev
);
1836 priv
= kzalloc(sizeof(struct serial_private
) +
1837 sizeof(unsigned int) * nr_ports
,
1840 priv
= ERR_PTR(-ENOMEM
);
1845 priv
->quirk
= quirk
;
1847 memset(&serial_port
, 0, sizeof(struct uart_port
));
1848 serial_port
.flags
= UPF_SKIP_TEST
| UPF_BOOT_AUTOCONF
| UPF_SHARE_IRQ
;
1849 serial_port
.uartclk
= board
->base_baud
* 16;
1850 serial_port
.irq
= get_pci_irq(dev
, board
);
1851 serial_port
.dev
= &dev
->dev
;
1853 for (i
= 0; i
< nr_ports
; i
++) {
1854 if (quirk
->setup(priv
, board
, &serial_port
, i
))
1857 #ifdef SERIAL_DEBUG_PCI
1858 printk(KERN_DEBUG
"Setup PCI port: port %x, irq %d, type %d\n",
1859 serial_port
.iobase
, serial_port
.irq
, serial_port
.iotype
);
1862 priv
->line
[i
] = serial8250_register_port(&serial_port
);
1863 if (priv
->line
[i
] < 0) {
1864 printk(KERN_WARNING
"Couldn't register serial port %s: %d\n", pci_name(dev
), priv
->line
[i
]);
1877 EXPORT_SYMBOL_GPL(pciserial_init_ports
);
1879 void pciserial_remove_ports(struct serial_private
*priv
)
1881 struct pci_serial_quirk
*quirk
;
1884 for (i
= 0; i
< priv
->nr
; i
++)
1885 serial8250_unregister_port(priv
->line
[i
]);
1887 for (i
= 0; i
< PCI_NUM_BAR_RESOURCES
; i
++) {
1888 if (priv
->remapped_bar
[i
])
1889 iounmap(priv
->remapped_bar
[i
]);
1890 priv
->remapped_bar
[i
] = NULL
;
1894 * Find the exit quirks.
1896 quirk
= find_quirk(priv
->dev
);
1898 quirk
->exit(priv
->dev
);
1902 EXPORT_SYMBOL_GPL(pciserial_remove_ports
);
1904 void pciserial_suspend_ports(struct serial_private
*priv
)
1908 for (i
= 0; i
< priv
->nr
; i
++)
1909 if (priv
->line
[i
] >= 0)
1910 serial8250_suspend_port(priv
->line
[i
]);
1912 EXPORT_SYMBOL_GPL(pciserial_suspend_ports
);
1914 void pciserial_resume_ports(struct serial_private
*priv
)
1919 * Ensure that the board is correctly configured.
1921 if (priv
->quirk
->init
)
1922 priv
->quirk
->init(priv
->dev
);
1924 for (i
= 0; i
< priv
->nr
; i
++)
1925 if (priv
->line
[i
] >= 0)
1926 serial8250_resume_port(priv
->line
[i
]);
1928 EXPORT_SYMBOL_GPL(pciserial_resume_ports
);
1931 * Probe one serial board. Unfortunately, there is no rhyme nor reason
1932 * to the arrangement of serial ports on a PCI card.
1934 static int __devinit
1935 pciserial_init_one(struct pci_dev
*dev
, const struct pci_device_id
*ent
)
1937 struct serial_private
*priv
;
1938 struct pciserial_board
*board
, tmp
;
1941 if (ent
->driver_data
>= ARRAY_SIZE(pci_boards
)) {
1942 printk(KERN_ERR
"pci_init_one: invalid driver_data: %ld\n",
1947 board
= &pci_boards
[ent
->driver_data
];
1949 rc
= pci_enable_device(dev
);
1953 if (ent
->driver_data
== pbn_default
) {
1955 * Use a copy of the pci_board entry for this;
1956 * avoid changing entries in the table.
1958 memcpy(&tmp
, board
, sizeof(struct pciserial_board
));
1962 * We matched one of our class entries. Try to
1963 * determine the parameters of this board.
1965 rc
= serial_pci_guess_board(dev
, board
);
1970 * We matched an explicit entry. If we are able to
1971 * detect this boards settings with our heuristic,
1972 * then we no longer need this entry.
1974 memcpy(&tmp
, &pci_boards
[pbn_default
],
1975 sizeof(struct pciserial_board
));
1976 rc
= serial_pci_guess_board(dev
, &tmp
);
1977 if (rc
== 0 && serial_pci_matches(board
, &tmp
))
1978 moan_device("Redundant entry in serial pci_table.",
1982 priv
= pciserial_init_ports(dev
, board
);
1983 if (!IS_ERR(priv
)) {
1984 pci_set_drvdata(dev
, priv
);
1991 pci_disable_device(dev
);
1995 static void __devexit
pciserial_remove_one(struct pci_dev
*dev
)
1997 struct serial_private
*priv
= pci_get_drvdata(dev
);
1999 pci_set_drvdata(dev
, NULL
);
2001 pciserial_remove_ports(priv
);
2003 pci_disable_device(dev
);
2007 static int pciserial_suspend_one(struct pci_dev
*dev
, pm_message_t state
)
2009 struct serial_private
*priv
= pci_get_drvdata(dev
);
2012 pciserial_suspend_ports(priv
);
2014 pci_save_state(dev
);
2015 pci_set_power_state(dev
, pci_choose_state(dev
, state
));
2019 static int pciserial_resume_one(struct pci_dev
*dev
)
2022 struct serial_private
*priv
= pci_get_drvdata(dev
);
2024 pci_set_power_state(dev
, PCI_D0
);
2025 pci_restore_state(dev
);
2029 * The device may have been disabled. Re-enable it.
2031 err
= pci_enable_device(dev
);
2035 pciserial_resume_ports(priv
);
2041 static struct pci_device_id serial_pci_tbl
[] = {
2042 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
2043 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2044 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232
, 0, 0,
2046 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
2047 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2048 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232
, 0, 0,
2050 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V960
,
2051 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2052 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232
, 0, 0,
2054 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2055 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2056 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232
, 0, 0,
2058 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2059 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2060 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232
, 0, 0,
2062 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2063 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2064 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232
, 0, 0,
2066 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2067 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2068 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485
, 0, 0,
2070 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2071 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2072 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_4_4
, 0, 0,
2074 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2075 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2076 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485
, 0, 0,
2078 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2079 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2080 PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485_2_2
, 0, 0,
2082 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2083 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2084 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_485
, 0, 0,
2086 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2087 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2088 PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_2_6
, 0, 0,
2090 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2091 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2092 PCI_SUBDEVICE_ID_CONNECT_TECH_BH081101V1
, 0, 0,
2094 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2095 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2096 PCI_SUBDEVICE_ID_CONNECT_TECH_BH041101V1
, 0, 0,
2098 { PCI_VENDOR_ID_V3
, PCI_DEVICE_ID_V3_V351
,
2099 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2100 PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_20MHZ
, 0, 0,
2102 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2103 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2104 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_2
, 0, 0,
2106 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2107 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2108 PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_4
, 0, 0,
2110 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2111 PCI_VENDOR_ID_AFAVLAB
,
2112 PCI_SUBDEVICE_ID_AFAVLAB_P061
, 0, 0,
2114 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2115 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2116 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_232
, 0, 0,
2117 pbn_b0_2_1843200_200
},
2118 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2119 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2120 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_232
, 0, 0,
2121 pbn_b0_4_1843200_200
},
2122 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2123 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2124 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_232
, 0, 0,
2125 pbn_b0_8_1843200_200
},
2126 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2127 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2128 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_1_1
, 0, 0,
2129 pbn_b0_2_1843200_200
},
2130 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2131 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2132 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_2
, 0, 0,
2133 pbn_b0_4_1843200_200
},
2134 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2135 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2136 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_4
, 0, 0,
2137 pbn_b0_8_1843200_200
},
2138 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2139 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2140 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2
, 0, 0,
2141 pbn_b0_2_1843200_200
},
2142 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2143 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2144 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4
, 0, 0,
2145 pbn_b0_4_1843200_200
},
2146 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2147 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2148 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8
, 0, 0,
2149 pbn_b0_8_1843200_200
},
2150 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2151 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2152 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_2_485
, 0, 0,
2153 pbn_b0_2_1843200_200
},
2154 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2155 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2156 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_4_485
, 0, 0,
2157 pbn_b0_4_1843200_200
},
2158 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2159 PCI_SUBVENDOR_ID_CONNECT_TECH
,
2160 PCI_SUBDEVICE_ID_CONNECT_TECH_PCI_UART_8_485
, 0, 0,
2161 pbn_b0_8_1843200_200
},
2163 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_U530
,
2164 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2165 pbn_b2_bt_1_115200
},
2166 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM2
,
2167 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2168 pbn_b2_bt_2_115200
},
2169 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM422
,
2170 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2171 pbn_b2_bt_4_115200
},
2172 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM232
,
2173 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2174 pbn_b2_bt_2_115200
},
2175 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_COMM4
,
2176 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2177 pbn_b2_bt_4_115200
},
2178 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_COMM8
,
2179 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2181 { PCI_VENDOR_ID_SEALEVEL
, PCI_DEVICE_ID_SEALEVEL_UCOMM8
,
2182 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2185 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_GTEK_SERIAL2
,
2186 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2187 pbn_b2_bt_2_115200
},
2188 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_SPCOM200
,
2189 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2190 pbn_b2_bt_2_921600
},
2192 * VScom SPCOM800, from sl@s.pl
2194 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_SPCOM800
,
2195 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2197 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_1077
,
2198 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2200 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2201 PCI_SUBVENDOR_ID_KEYSPAN
,
2202 PCI_SUBDEVICE_ID_KEYSPAN_SX2
, 0, 0,
2204 { PCI_VENDOR_ID_PANACOM
, PCI_DEVICE_ID_PANACOM_QUADMODEM
,
2205 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2207 { PCI_VENDOR_ID_PANACOM
, PCI_DEVICE_ID_PANACOM_DUALMODEM
,
2208 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2210 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
2211 PCI_VENDOR_ID_ESDGMBH
,
2212 PCI_DEVICE_ID_ESDGMBH_CPCIASIO4
, 0, 0,
2214 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2215 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2216 PCI_SUBDEVICE_ID_CHASE_PCIFAST4
, 0, 0,
2218 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2219 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2220 PCI_SUBDEVICE_ID_CHASE_PCIFAST8
, 0, 0,
2222 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2223 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2224 PCI_SUBDEVICE_ID_CHASE_PCIFAST16
, 0, 0,
2226 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2227 PCI_SUBVENDOR_ID_CHASE_PCIFAST
,
2228 PCI_SUBDEVICE_ID_CHASE_PCIFAST16FMC
, 0, 0,
2230 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2231 PCI_SUBVENDOR_ID_CHASE_PCIRAS
,
2232 PCI_SUBDEVICE_ID_CHASE_PCIRAS4
, 0, 0,
2234 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2235 PCI_SUBVENDOR_ID_CHASE_PCIRAS
,
2236 PCI_SUBDEVICE_ID_CHASE_PCIRAS8
, 0, 0,
2238 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9050
,
2239 PCI_SUBVENDOR_ID_EXSYS
,
2240 PCI_SUBDEVICE_ID_EXSYS_4055
, 0, 0,
2243 * Megawolf Romulus PCI Serial Card, from Mike Hudson
2246 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_ROMULUS
,
2247 0x10b5, 0x106a, 0, 0,
2249 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_QSC100
,
2250 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2252 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_DSC100
,
2253 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2255 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_ESC100D
,
2256 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2258 { PCI_VENDOR_ID_QUATECH
, PCI_DEVICE_ID_QUATECH_ESC100M
,
2259 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2261 { PCI_VENDOR_ID_SPECIALIX
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2262 PCI_VENDOR_ID_SPECIALIX
, PCI_SUBDEVICE_ID_SPECIALIX_SPEED4
,
2265 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2266 PCI_SUBVENDOR_ID_SIIG
, PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL
,
2271 * The below card is a little controversial since it is the
2272 * subject of a PCI vendor/device ID clash. (See
2273 * www.ussg.iu.edu/hypermail/linux/kernel/0303.1/0516.html).
2274 * For now just used the hex ID 0x950a.
2276 { PCI_VENDOR_ID_OXSEMI
, 0x950a,
2277 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2279 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI954
,
2280 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2282 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI952
,
2283 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2284 pbn_b0_bt_2_921600
},
2287 * SBS Technologies, Inc. P-Octal and PMC-OCTPRO cards,
2288 * from skokodyn@yahoo.com
2290 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2291 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_OCTPRO232
, 0, 0,
2293 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2294 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_OCTPRO422
, 0, 0,
2296 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2297 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_POCTAL232
, 0, 0,
2299 { PCI_VENDOR_ID_SBSMODULARIO
, PCI_DEVICE_ID_OCTPRO
,
2300 PCI_SUBVENDOR_ID_SBSMODULARIO
, PCI_SUBDEVICE_ID_POCTAL422
, 0, 0,
2304 * Digitan DS560-558, from jimd@esoft.com
2306 { PCI_VENDOR_ID_ATT
, PCI_DEVICE_ID_ATT_VENUS_MODEM
,
2307 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2311 * Titan Electronic cards
2312 * The 400L and 800L have a custom setup quirk.
2314 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100
,
2315 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2317 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200
,
2318 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2320 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400
,
2321 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2323 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800B
,
2324 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2326 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_100L
,
2327 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2329 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_200L
,
2330 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2331 pbn_b1_bt_2_921600
},
2332 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_400L
,
2333 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2334 pbn_b0_bt_4_921600
},
2335 { PCI_VENDOR_ID_TITAN
, PCI_DEVICE_ID_TITAN_800L
,
2336 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2337 pbn_b0_bt_8_921600
},
2339 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_550
,
2340 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2342 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_650
,
2343 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2345 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_10x_850
,
2346 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2348 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_550
,
2349 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2350 pbn_b2_bt_2_921600
},
2351 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_650
,
2352 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2353 pbn_b2_bt_2_921600
},
2354 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_10x_850
,
2355 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2356 pbn_b2_bt_2_921600
},
2357 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_550
,
2358 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2359 pbn_b2_bt_4_921600
},
2360 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_650
,
2361 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2362 pbn_b2_bt_4_921600
},
2363 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_10x_850
,
2364 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2365 pbn_b2_bt_4_921600
},
2366 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_550
,
2367 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2369 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_650
,
2370 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2372 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_1S_20x_850
,
2373 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2375 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_550
,
2376 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2377 pbn_b0_bt_2_921600
},
2378 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_650
,
2379 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2380 pbn_b0_bt_2_921600
},
2381 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_2S_20x_850
,
2382 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2383 pbn_b0_bt_2_921600
},
2384 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_550
,
2385 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2386 pbn_b0_bt_4_921600
},
2387 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_650
,
2388 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2389 pbn_b0_bt_4_921600
},
2390 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_4S_20x_850
,
2391 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2392 pbn_b0_bt_4_921600
},
2393 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_550
,
2394 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2395 pbn_b0_bt_8_921600
},
2396 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_650
,
2397 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2398 pbn_b0_bt_8_921600
},
2399 { PCI_VENDOR_ID_SIIG
, PCI_DEVICE_ID_SIIG_8S_20x_850
,
2400 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2401 pbn_b0_bt_8_921600
},
2404 * Computone devices submitted by Doug McNash dmcnash@computone.com
2406 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
2407 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG4
,
2408 0, 0, pbn_computone_4
},
2409 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
2410 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG8
,
2411 0, 0, pbn_computone_8
},
2412 { PCI_VENDOR_ID_COMPUTONE
, PCI_DEVICE_ID_COMPUTONE_PG
,
2413 PCI_SUBVENDOR_ID_COMPUTONE
, PCI_SUBDEVICE_ID_COMPUTONE_PG6
,
2414 0, 0, pbn_computone_6
},
2416 { PCI_VENDOR_ID_OXSEMI
, PCI_DEVICE_ID_OXSEMI_16PCI95N
,
2417 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2419 { PCI_VENDOR_ID_TIMEDIA
, PCI_DEVICE_ID_TIMEDIA_1889
,
2420 PCI_VENDOR_ID_TIMEDIA
, PCI_ANY_ID
, 0, 0,
2421 pbn_b0_bt_1_921600
},
2424 * AFAVLAB serial card, from Harald Welte <laforge@gnumonks.org>
2426 { PCI_VENDOR_ID_AFAVLAB
, PCI_DEVICE_ID_AFAVLAB_P028
,
2427 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2428 pbn_b0_bt_8_115200
},
2429 { PCI_VENDOR_ID_AFAVLAB
, PCI_DEVICE_ID_AFAVLAB_P030
,
2430 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2431 pbn_b0_bt_8_115200
},
2433 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_DSERIAL
,
2434 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2435 pbn_b0_bt_2_115200
},
2436 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATRO_A
,
2437 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2438 pbn_b0_bt_2_115200
},
2439 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUATRO_B
,
2440 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2441 pbn_b0_bt_2_115200
},
2442 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_OCTO_A
,
2443 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2444 pbn_b0_bt_4_460800
},
2445 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_OCTO_B
,
2446 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2447 pbn_b0_bt_4_460800
},
2448 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_PORT_PLUS
,
2449 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2450 pbn_b0_bt_2_460800
},
2451 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUAD_A
,
2452 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2453 pbn_b0_bt_2_460800
},
2454 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_QUAD_B
,
2455 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2456 pbn_b0_bt_2_460800
},
2457 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_SSERIAL
,
2458 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2459 pbn_b0_bt_1_115200
},
2460 { PCI_VENDOR_ID_LAVA
, PCI_DEVICE_ID_LAVA_PORT_650
,
2461 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2462 pbn_b0_bt_1_460800
},
2465 * Korenix Jetcard F0/F1 cards (JC1204, JC1208, JC1404, JC1408).
2466 * Cards are identified by their subsystem vendor IDs, which
2467 * (in hex) match the model number.
2469 * Note that JC140x are RS422/485 cards which require ox950
2470 * ACR = 0x10, and as such are not currently fully supported.
2472 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF0
,
2473 0x1204, 0x0004, 0, 0,
2475 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF0
,
2476 0x1208, 0x0004, 0, 0,
2478 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
2479 0x1402, 0x0002, 0, 0,
2480 pbn_b0_2_921600 }, */
2481 /* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
2482 0x1404, 0x0004, 0, 0,
2483 pbn_b0_4_921600 }, */
2484 { PCI_VENDOR_ID_KORENIX
, PCI_DEVICE_ID_KORENIX_JETCARDF1
,
2485 0x1208, 0x0004, 0, 0,
2489 * Dell Remote Access Card 4 - Tim_T_Murphy@Dell.com
2491 { PCI_VENDOR_ID_DELL
, PCI_DEVICE_ID_DELL_RAC4
,
2492 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2496 * Dell Remote Access Card III - Tim_T_Murphy@Dell.com
2498 { PCI_VENDOR_ID_DELL
, PCI_DEVICE_ID_DELL_RACIII
,
2499 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2503 * RAStel 2 port modem, gerg@moreton.com.au
2505 { PCI_VENDOR_ID_MORETON
, PCI_DEVICE_ID_RASTEL_2PORT
,
2506 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2507 pbn_b2_bt_2_115200
},
2510 * EKF addition for i960 Boards form EKF with serial port
2512 { PCI_VENDOR_ID_INTEL
, PCI_DEVICE_ID_INTEL_80960_RP
,
2513 0xE4BF, PCI_ANY_ID
, 0, 0,
2517 * Xircom Cardbus/Ethernet combos
2519 { PCI_VENDOR_ID_XIRCOM
, PCI_DEVICE_ID_XIRCOM_X3201_MDM
,
2520 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2523 * Xircom RBM56G cardbus modem - Dirk Arnold (temp entry)
2525 { PCI_VENDOR_ID_XIRCOM
, PCI_DEVICE_ID_XIRCOM_RBM56G
,
2526 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2530 * Untested PCI modems, sent in from various folks...
2534 * Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de>
2536 { PCI_VENDOR_ID_ROCKWELL
, 0x1004,
2537 0x1048, 0x1500, 0, 0,
2540 { PCI_VENDOR_ID_SGI
, PCI_DEVICE_ID_SGI_IOC3
,
2547 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA
,
2548 PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA_RMP3
, 0, 0,
2550 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA
,
2551 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2553 { PCI_VENDOR_ID_HP
, PCI_DEVICE_ID_HP_DIVA_AUX
,
2554 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2557 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM2
,
2558 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2560 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM4
,
2561 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2563 { PCI_VENDOR_ID_DCI
, PCI_DEVICE_ID_DCI_PCCOM8
,
2564 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2568 * Exar Corp. XR17C15[248] Dual/Quad/Octal UART
2570 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C152
,
2571 PCI_ANY_ID
, PCI_ANY_ID
,
2573 0, pbn_exar_XR17C152
},
2574 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C154
,
2575 PCI_ANY_ID
, PCI_ANY_ID
,
2577 0, pbn_exar_XR17C154
},
2578 { PCI_VENDOR_ID_EXAR
, PCI_DEVICE_ID_EXAR_XR17C158
,
2579 PCI_ANY_ID
, PCI_ANY_ID
,
2581 0, pbn_exar_XR17C158
},
2584 * Topic TP560 Data/Fax/Voice 56k modem (reported by Evan Clarke)
2586 { PCI_VENDOR_ID_TOPIC
, PCI_DEVICE_ID_TOPIC_TP560
,
2587 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2592 { PCI_VENDOR_ID_ITE
, PCI_DEVICE_ID_ITE_8872
,
2593 PCI_ANY_ID
, PCI_ANY_ID
,
2595 pbn_b1_bt_1_115200
},
2600 { PCI_VENDOR_ID_INTASHIELD
, PCI_DEVICE_ID_INTASHIELD_IS200
,
2601 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0, /* 135a.0811 */
2606 { PCI_VENDOR_ID_INTASHIELD
, PCI_DEVICE_ID_INTASHIELD_IS400
,
2607 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0, /* 135a.0dc0 */
2610 * Perle PCI-RAS cards
2612 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
2613 PCI_SUBVENDOR_ID_PERLE
, PCI_SUBDEVICE_ID_PCI_RAS4
,
2614 0, 0, pbn_b2_4_921600
},
2615 { PCI_VENDOR_ID_PLX
, PCI_DEVICE_ID_PLX_9030
,
2616 PCI_SUBVENDOR_ID_PERLE
, PCI_SUBDEVICE_ID_PCI_RAS8
,
2617 0, 0, pbn_b2_8_921600
},
2620 * Mainpine series cards: Fairly standard layout but fools
2621 * parts of the autodetect in some cases and uses otherwise
2622 * unmatched communications subclasses in the PCI Express case
2625 { /* RockForceDUO */
2626 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2627 PCI_VENDOR_ID_MAINPINE
, 0x0200,
2628 0, 0, pbn_b0_2_115200
},
2629 { /* RockForceQUATRO */
2630 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2631 PCI_VENDOR_ID_MAINPINE
, 0x0300,
2632 0, 0, pbn_b0_4_115200
},
2633 { /* RockForceDUO+ */
2634 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2635 PCI_VENDOR_ID_MAINPINE
, 0x0400,
2636 0, 0, pbn_b0_2_115200
},
2637 { /* RockForceQUATRO+ */
2638 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2639 PCI_VENDOR_ID_MAINPINE
, 0x0500,
2640 0, 0, pbn_b0_4_115200
},
2642 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2643 PCI_VENDOR_ID_MAINPINE
, 0x0600,
2644 0, 0, pbn_b0_2_115200
},
2646 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2647 PCI_VENDOR_ID_MAINPINE
, 0x0700,
2648 0, 0, pbn_b0_4_115200
},
2649 { /* RockForceOCTO+ */
2650 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2651 PCI_VENDOR_ID_MAINPINE
, 0x0800,
2652 0, 0, pbn_b0_8_115200
},
2653 { /* RockForceDUO+ */
2654 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2655 PCI_VENDOR_ID_MAINPINE
, 0x0C00,
2656 0, 0, pbn_b0_2_115200
},
2657 { /* RockForceQUARTRO+ */
2658 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2659 PCI_VENDOR_ID_MAINPINE
, 0x0D00,
2660 0, 0, pbn_b0_4_115200
},
2661 { /* RockForceOCTO+ */
2662 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2663 PCI_VENDOR_ID_MAINPINE
, 0x1D00,
2664 0, 0, pbn_b0_8_115200
},
2666 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2667 PCI_VENDOR_ID_MAINPINE
, 0x2000,
2668 0, 0, pbn_b0_1_115200
},
2670 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2671 PCI_VENDOR_ID_MAINPINE
, 0x2100,
2672 0, 0, pbn_b0_1_115200
},
2674 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2675 PCI_VENDOR_ID_MAINPINE
, 0x2200,
2676 0, 0, pbn_b0_2_115200
},
2678 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2679 PCI_VENDOR_ID_MAINPINE
, 0x2300,
2680 0, 0, pbn_b0_2_115200
},
2682 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2683 PCI_VENDOR_ID_MAINPINE
, 0x2400,
2684 0, 0, pbn_b0_4_115200
},
2686 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2687 PCI_VENDOR_ID_MAINPINE
, 0x2500,
2688 0, 0, pbn_b0_4_115200
},
2690 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2691 PCI_VENDOR_ID_MAINPINE
, 0x2600,
2692 0, 0, pbn_b0_8_115200
},
2694 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2695 PCI_VENDOR_ID_MAINPINE
, 0x2700,
2696 0, 0, pbn_b0_8_115200
},
2697 { /* IQ Express D1 */
2698 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2699 PCI_VENDOR_ID_MAINPINE
, 0x3000,
2700 0, 0, pbn_b0_1_115200
},
2701 { /* IQ Express F1 */
2702 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2703 PCI_VENDOR_ID_MAINPINE
, 0x3100,
2704 0, 0, pbn_b0_1_115200
},
2705 { /* IQ Express D2 */
2706 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2707 PCI_VENDOR_ID_MAINPINE
, 0x3200,
2708 0, 0, pbn_b0_2_115200
},
2709 { /* IQ Express F2 */
2710 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2711 PCI_VENDOR_ID_MAINPINE
, 0x3300,
2712 0, 0, pbn_b0_2_115200
},
2713 { /* IQ Express D4 */
2714 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2715 PCI_VENDOR_ID_MAINPINE
, 0x3400,
2716 0, 0, pbn_b0_4_115200
},
2717 { /* IQ Express F4 */
2718 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2719 PCI_VENDOR_ID_MAINPINE
, 0x3500,
2720 0, 0, pbn_b0_4_115200
},
2721 { /* IQ Express D8 */
2722 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2723 PCI_VENDOR_ID_MAINPINE
, 0x3C00,
2724 0, 0, pbn_b0_8_115200
},
2725 { /* IQ Express F8 */
2726 PCI_VENDOR_ID_MAINPINE
, PCI_DEVICE_ID_MAINPINE_PBRIDGE
,
2727 PCI_VENDOR_ID_MAINPINE
, 0x3D00,
2728 0, 0, pbn_b0_8_115200
},
2732 * PA Semi PA6T-1682M on-chip UART
2734 { PCI_VENDOR_ID_PASEMI
, 0xa004,
2735 PCI_ANY_ID
, PCI_ANY_ID
, 0, 0,
2739 * ADDI-DATA GmbH communication cards <info@addi-data.com>
2741 { PCI_VENDOR_ID_ADDIDATA
,
2742 PCI_DEVICE_ID_ADDIDATA_APCI7500
,
2749 { PCI_VENDOR_ID_ADDIDATA
,
2750 PCI_DEVICE_ID_ADDIDATA_APCI7420
,
2757 { PCI_VENDOR_ID_ADDIDATA
,
2758 PCI_DEVICE_ID_ADDIDATA_APCI7300
,
2765 { PCI_VENDOR_ID_ADDIDATA_OLD
,
2766 PCI_DEVICE_ID_ADDIDATA_APCI7800
,
2773 { PCI_VENDOR_ID_ADDIDATA
,
2774 PCI_DEVICE_ID_ADDIDATA_APCI7500_2
,
2781 { PCI_VENDOR_ID_ADDIDATA
,
2782 PCI_DEVICE_ID_ADDIDATA_APCI7420_2
,
2789 { PCI_VENDOR_ID_ADDIDATA
,
2790 PCI_DEVICE_ID_ADDIDATA_APCI7300_2
,
2797 { PCI_VENDOR_ID_ADDIDATA
,
2798 PCI_DEVICE_ID_ADDIDATA_APCI7500_3
,
2805 { PCI_VENDOR_ID_ADDIDATA
,
2806 PCI_DEVICE_ID_ADDIDATA_APCI7420_3
,
2813 { PCI_VENDOR_ID_ADDIDATA
,
2814 PCI_DEVICE_ID_ADDIDATA_APCI7300_3
,
2821 { PCI_VENDOR_ID_ADDIDATA
,
2822 PCI_DEVICE_ID_ADDIDATA_APCI7800_3
,
2830 * These entries match devices with class COMMUNICATION_SERIAL,
2831 * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
2833 { PCI_ANY_ID
, PCI_ANY_ID
,
2834 PCI_ANY_ID
, PCI_ANY_ID
,
2835 PCI_CLASS_COMMUNICATION_SERIAL
<< 8,
2836 0xffff00, pbn_default
},
2837 { PCI_ANY_ID
, PCI_ANY_ID
,
2838 PCI_ANY_ID
, PCI_ANY_ID
,
2839 PCI_CLASS_COMMUNICATION_MODEM
<< 8,
2840 0xffff00, pbn_default
},
2841 { PCI_ANY_ID
, PCI_ANY_ID
,
2842 PCI_ANY_ID
, PCI_ANY_ID
,
2843 PCI_CLASS_COMMUNICATION_MULTISERIAL
<< 8,
2844 0xffff00, pbn_default
},
2848 static struct pci_driver serial_pci_driver
= {
2850 .probe
= pciserial_init_one
,
2851 .remove
= __devexit_p(pciserial_remove_one
),
2853 .suspend
= pciserial_suspend_one
,
2854 .resume
= pciserial_resume_one
,
2856 .id_table
= serial_pci_tbl
,
2859 static int __init
serial8250_pci_init(void)
2861 return pci_register_driver(&serial_pci_driver
);
2864 static void __exit
serial8250_pci_exit(void)
2866 pci_unregister_driver(&serial_pci_driver
);
2869 module_init(serial8250_pci_init
);
2870 module_exit(serial8250_pci_exit
);
2872 MODULE_LICENSE("GPL");
2873 MODULE_DESCRIPTION("Generic 8250/16x50 PCI serial probe module");
2874 MODULE_DEVICE_TABLE(pci
, serial_pci_tbl
);