2017-11-07 00:11:51 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Probe module for 8250/16550-type PCI serial ports.
|
|
|
|
*
|
|
|
|
* Based on drivers/char/serial.c, by Linus Torvalds, Theodore Ts'o.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 Russell King, All Rights Reserved.
|
|
|
|
*/
|
2013-09-29 03:01:59 +07:00
|
|
|
#undef DEBUG
|
2005-04-17 05:20:36 +07:00
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/pci.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/kernel.h>
|
|
|
|
#include <linux/slab.h>
|
|
|
|
#include <linux/delay.h>
|
|
|
|
#include <linux/tty.h>
|
2012-04-11 04:10:58 +07:00
|
|
|
#include <linux/serial_reg.h>
|
2005-04-17 05:20:36 +07:00
|
|
|
#include <linux/serial_core.h>
|
|
|
|
#include <linux/8250_pci.h>
|
|
|
|
#include <linux/bitops.h>
|
|
|
|
|
|
|
|
#include <asm/byteorder.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
|
|
|
|
#include "8250.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* init function returns:
|
|
|
|
* > 0 - number of ports
|
|
|
|
* = 0 - use board->num_ports
|
|
|
|
* < 0 - error
|
|
|
|
*/
|
|
|
|
struct pci_serial_quirk {
|
|
|
|
u32 vendor;
|
|
|
|
u32 device;
|
|
|
|
u32 subvendor;
|
|
|
|
u32 subdevice;
|
2011-05-30 02:08:03 +07:00
|
|
|
int (*probe)(struct pci_dev *dev);
|
2005-04-17 05:20:36 +07:00
|
|
|
int (*init)(struct pci_dev *dev);
|
2009-01-02 20:44:27 +07:00
|
|
|
int (*setup)(struct serial_private *,
|
|
|
|
const struct pciserial_board *,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *, int);
|
2005-04-17 05:20:36 +07:00
|
|
|
void (*exit)(struct pci_dev *dev);
|
|
|
|
};
|
|
|
|
|
|
|
|
#define PCI_NUM_BAR_RESOURCES 6
|
|
|
|
|
|
|
|
struct serial_private {
|
2005-07-27 17:34:27 +07:00
|
|
|
struct pci_dev *dev;
|
2005-04-17 05:20:36 +07:00
|
|
|
unsigned int nr;
|
|
|
|
struct pci_serial_quirk *quirk;
|
2016-11-29 04:34:42 +07:00
|
|
|
const struct pciserial_board *board;
|
2005-04-17 05:20:36 +07:00
|
|
|
int line[0];
|
|
|
|
};
|
|
|
|
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
static int pci_default_setup(struct serial_private*,
|
2012-07-12 18:59:50 +07:00
|
|
|
const struct pciserial_board*, struct uart_8250_port *, int);
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
static void moan_device(const char *str, struct pci_dev *dev)
|
|
|
|
{
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_err(&dev->dev,
|
2009-07-07 03:05:40 +07:00
|
|
|
"%s: %s\n"
|
|
|
|
"Please send the output of lspci -vv, this\n"
|
|
|
|
"message (0x%04x,0x%04x,0x%04x,0x%04x), the\n"
|
|
|
|
"manufacturer and name of serial board or\n"
|
2015-03-06 17:49:21 +07:00
|
|
|
"modem board to <linux-serial@vger.kernel.org>.\n",
|
2005-04-17 05:20:36 +07:00
|
|
|
pci_name(dev), str, dev->vendor, dev->device,
|
|
|
|
dev->subsystem_vendor, dev->subsystem_device);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
2012-07-12 18:59:50 +07:00
|
|
|
setup_port(struct serial_private *priv, struct uart_8250_port *port,
|
2005-04-17 05:20:36 +07:00
|
|
|
int bar, int offset, int regshift)
|
|
|
|
{
|
2005-07-27 17:34:27 +07:00
|
|
|
struct pci_dev *dev = priv->dev;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (bar >= PCI_NUM_BAR_RESOURCES)
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
if (pci_resource_flags(dev, bar) & IORESOURCE_MEM) {
|
2016-02-15 23:01:51 +07:00
|
|
|
if (!pcim_iomap(dev, bar, 0) && !pcim_iomap_table(dev))
|
2005-04-17 05:20:36 +07:00
|
|
|
return -ENOMEM;
|
|
|
|
|
2012-07-12 18:59:50 +07:00
|
|
|
port->port.iotype = UPIO_MEM;
|
|
|
|
port->port.iobase = 0;
|
2014-10-31 07:49:45 +07:00
|
|
|
port->port.mapbase = pci_resource_start(dev, bar) + offset;
|
2016-02-15 23:01:51 +07:00
|
|
|
port->port.membase = pcim_iomap_table(dev)[bar] + offset;
|
2012-07-12 18:59:50 +07:00
|
|
|
port->port.regshift = regshift;
|
2005-04-17 05:20:36 +07:00
|
|
|
} else {
|
2012-07-12 18:59:50 +07:00
|
|
|
port->port.iotype = UPIO_PORT;
|
2014-10-31 07:49:45 +07:00
|
|
|
port->port.iobase = pci_resource_start(dev, bar) + offset;
|
2012-07-12 18:59:50 +07:00
|
|
|
port->port.mapbase = 0;
|
|
|
|
port->port.membase = NULL;
|
|
|
|
port->port.regshift = 0;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2008-02-05 13:27:49 +07:00
|
|
|
/*
|
|
|
|
* ADDI-DATA GmbH communication cards <info@addi-data.com>
|
|
|
|
*/
|
|
|
|
static int addidata_apci7800_setup(struct serial_private *priv,
|
2009-01-02 20:44:27 +07:00
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2008-02-05 13:27:49 +07:00
|
|
|
{
|
|
|
|
unsigned int bar = 0, offset = board->first_offset;
|
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
|
|
|
|
if (idx < 2) {
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
} else if ((idx >= 2) && (idx < 4)) {
|
|
|
|
bar += 1;
|
|
|
|
offset += ((idx - 2) * board->uart_offset);
|
|
|
|
} else if ((idx >= 4) && (idx < 6)) {
|
|
|
|
bar += 2;
|
|
|
|
offset += ((idx - 4) * board->uart_offset);
|
|
|
|
} else if (idx >= 6) {
|
|
|
|
bar += 3;
|
|
|
|
offset += ((idx - 6) * board->uart_offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* AFAVLAB uses a different mixture of BARs and offsets
|
|
|
|
* Not that ugly ;) -- HW
|
|
|
|
*/
|
|
|
|
static int
|
2009-01-02 20:44:27 +07:00
|
|
|
afavlab_setup(struct serial_private *priv, const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int bar, offset = board->first_offset;
|
2008-02-08 19:18:51 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
if (idx < 4)
|
|
|
|
bar += idx;
|
|
|
|
else {
|
|
|
|
bar = 4;
|
|
|
|
offset += (idx - 4) * board->uart_offset;
|
|
|
|
}
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* HP's Remote Management Console. The Diva chip came in several
|
|
|
|
* different versions. N-class, L2000 and A500 have two Diva chips, each
|
|
|
|
* with 3 UARTs (the third UART on the second chip is unused). Superdome
|
|
|
|
* and Keystone have one Diva chip with 3 UARTs. Some later machines have
|
|
|
|
* one Diva chip, but it has been expanded to 5 UARTs.
|
|
|
|
*/
|
2006-07-03 21:22:35 +07:00
|
|
|
static int pci_hp_diva_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
int rc = 0;
|
|
|
|
|
|
|
|
switch (dev->subsystem_device) {
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_TOSCA1:
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_HALFDOME:
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_KEYSTONE:
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_EVEREST:
|
|
|
|
rc = 3;
|
|
|
|
break;
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_TOSCA2:
|
|
|
|
rc = 2;
|
|
|
|
break;
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_MAESTRO:
|
|
|
|
rc = 4;
|
|
|
|
break;
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_POWERBAR:
|
2005-10-25 04:16:38 +07:00
|
|
|
case PCI_DEVICE_ID_HP_DIVA_HURRICANE:
|
2005-04-17 05:20:36 +07:00
|
|
|
rc = 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* HP's Diva chip puts the 4th/5th serial port further out, and
|
|
|
|
* some serial ports are supposed to be hidden on certain models.
|
|
|
|
*/
|
|
|
|
static int
|
2009-01-02 20:44:27 +07:00
|
|
|
pci_hp_diva_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int offset = board->first_offset;
|
|
|
|
unsigned int bar = FL_GET_BASE(board->flags);
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
switch (priv->dev->subsystem_device) {
|
2005-04-17 05:20:36 +07:00
|
|
|
case PCI_DEVICE_ID_HP_DIVA_MAESTRO:
|
|
|
|
if (idx == 3)
|
|
|
|
idx++;
|
|
|
|
break;
|
|
|
|
case PCI_DEVICE_ID_HP_DIVA_EVEREST:
|
|
|
|
if (idx > 0)
|
|
|
|
idx++;
|
|
|
|
if (idx > 2)
|
|
|
|
idx++;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (idx > 2)
|
|
|
|
offset = 0x18;
|
|
|
|
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Added for EKF Intel i960 serial boards
|
|
|
|
*/
|
2006-07-03 21:22:35 +07:00
|
|
|
static int pci_inteli960ni_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2015-01-12 18:47:46 +07:00
|
|
|
u32 oldval;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (!(dev->subsystem_device & 0x1000))
|
|
|
|
return -ENODEV;
|
|
|
|
|
|
|
|
/* is firmware started? */
|
2015-01-12 18:47:46 +07:00
|
|
|
pci_read_config_dword(dev, 0x44, &oldval);
|
2008-02-08 19:18:51 +07:00
|
|
|
if (oldval == 0x00001000L) { /* RESET value */
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_dbg(&dev->dev, "Local i960 firmware missing\n");
|
2005-04-17 05:20:36 +07:00
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Some PCI serial cards using the PLX 9050 PCI interface chip require
|
|
|
|
* that the card interrupt be explicitly enabled or disabled. This
|
|
|
|
* seems to be mainly needed on card using the PLX which also use I/O
|
|
|
|
* mapped memory.
|
|
|
|
*/
|
2006-07-03 21:22:35 +07:00
|
|
|
static int pci_plx9050_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
u8 irq_config;
|
|
|
|
void __iomem *p;
|
|
|
|
|
|
|
|
if ((pci_resource_flags(dev, 0) & IORESOURCE_MEM) == 0) {
|
|
|
|
moan_device("no memory in bar 0", dev);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
irq_config = 0x41;
|
2005-10-25 04:11:57 +07:00
|
|
|
if (dev->vendor == PCI_VENDOR_ID_PANACOM ||
|
2008-02-08 19:18:51 +07:00
|
|
|
dev->subsystem_vendor == PCI_SUBVENDOR_ID_EXSYS)
|
2005-04-17 05:20:36 +07:00
|
|
|
irq_config = 0x43;
|
2008-02-08 19:18:51 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
if ((dev->vendor == PCI_VENDOR_ID_PLX) &&
|
2008-02-08 19:18:51 +07:00
|
|
|
(dev->device == PCI_DEVICE_ID_PLX_ROMULUS))
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* As the megawolf cards have the int pins active
|
|
|
|
* high, and have 2 UART chips, both ints must be
|
|
|
|
* enabled on the 9050. Also, the UARTS are set in
|
|
|
|
* 16450 mode by default, so we have to enable the
|
|
|
|
* 16C950 'enhanced' mode so that we can use the
|
|
|
|
* deep FIFOs
|
|
|
|
*/
|
|
|
|
irq_config = 0x5b;
|
|
|
|
/*
|
|
|
|
* enable/disable interrupts
|
|
|
|
*/
|
2008-05-01 18:34:59 +07:00
|
|
|
p = ioremap_nocache(pci_resource_start(dev, 0), 0x80);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
writel(irq_config, p + 0x4c);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Read the register back to ensure that it took effect.
|
|
|
|
*/
|
|
|
|
readl(p + 0x4c);
|
|
|
|
iounmap(p);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-11-20 01:26:18 +07:00
|
|
|
static void pci_plx9050_exit(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
u8 __iomem *p;
|
|
|
|
|
|
|
|
if ((pci_resource_flags(dev, 0) & IORESOURCE_MEM) == 0)
|
|
|
|
return;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* disable interrupts
|
|
|
|
*/
|
2008-05-01 18:34:59 +07:00
|
|
|
p = ioremap_nocache(pci_resource_start(dev, 0), 0x80);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (p != NULL) {
|
|
|
|
writel(0, p + 0x4c);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Read the register back to ensure that it took effect.
|
|
|
|
*/
|
|
|
|
readl(p + 0x4c);
|
|
|
|
iounmap(p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-04-06 23:32:15 +07:00
|
|
|
#define NI8420_INT_ENABLE_REG 0x38
|
|
|
|
#define NI8420_INT_ENABLE_BIT 0x2000
|
|
|
|
|
2012-11-20 01:26:18 +07:00
|
|
|
static void pci_ni8420_exit(struct pci_dev *dev)
|
2009-04-06 23:32:15 +07:00
|
|
|
{
|
|
|
|
void __iomem *p;
|
|
|
|
unsigned int bar = 0;
|
|
|
|
|
|
|
|
if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
|
|
|
|
moan_device("no memory in bar", dev);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-10-31 07:49:45 +07:00
|
|
|
p = pci_ioremap_bar(dev, bar);
|
2009-04-06 23:32:15 +07:00
|
|
|
if (p == NULL)
|
|
|
|
return;
|
|
|
|
|
|
|
|
/* Disable the CPU Interrupt */
|
|
|
|
writel(readl(p + NI8420_INT_ENABLE_REG) & ~(NI8420_INT_ENABLE_BIT),
|
|
|
|
p + NI8420_INT_ENABLE_REG);
|
|
|
|
iounmap(p);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-04-06 23:32:07 +07:00
|
|
|
/* MITE registers */
|
|
|
|
#define MITE_IOWBSR1 0xc4
|
|
|
|
#define MITE_IOWCR1 0xf4
|
|
|
|
#define MITE_LCIMR1 0x08
|
|
|
|
#define MITE_LCIMR2 0x10
|
|
|
|
|
|
|
|
#define MITE_LCIMR2_CLR_CPU_IE (1 << 30)
|
|
|
|
|
2012-11-20 01:26:18 +07:00
|
|
|
static void pci_ni8430_exit(struct pci_dev *dev)
|
2009-04-06 23:32:07 +07:00
|
|
|
{
|
|
|
|
void __iomem *p;
|
|
|
|
unsigned int bar = 0;
|
|
|
|
|
|
|
|
if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
|
|
|
|
moan_device("no memory in bar", dev);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2014-10-31 07:49:45 +07:00
|
|
|
p = pci_ioremap_bar(dev, bar);
|
2009-04-06 23:32:07 +07:00
|
|
|
if (p == NULL)
|
|
|
|
return;
|
|
|
|
|
|
|
|
/* Disable the CPU Interrupt */
|
|
|
|
writel(MITE_LCIMR2_CLR_CPU_IE, p + MITE_LCIMR2);
|
|
|
|
iounmap(p);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/* SBS Technologies Inc. PMC-OCTPRO and P-OCTAL cards */
|
|
|
|
static int
|
2009-01-02 20:44:27 +07:00
|
|
|
sbs_setup(struct serial_private *priv, const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int bar, offset = board->first_offset;
|
|
|
|
|
|
|
|
bar = 0;
|
|
|
|
|
|
|
|
if (idx < 4) {
|
|
|
|
/* first four channels map to 0, 0x100, 0x200, 0x300 */
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
} else if (idx < 8) {
|
|
|
|
/* last four channels map to 0x1000, 0x1100, 0x1200, 0x1300 */
|
|
|
|
offset += idx * board->uart_offset + 0xC00;
|
|
|
|
} else /* we have only 8 ports on PMC-OCTALPRO */
|
|
|
|
return 1;
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This does initialization for PMC OCTALPRO cards:
|
|
|
|
* maps the device memory, resets the UARTs (needed, bc
|
|
|
|
* if the module is removed and inserted again, the card
|
|
|
|
* is in the sleep mode) and enables global interrupt.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* global control register offset for SBS PMC-OctalPro */
|
|
|
|
#define OCT_REG_CR_OFF 0x500
|
|
|
|
|
2006-07-03 21:22:35 +07:00
|
|
|
static int sbs_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
u8 __iomem *p;
|
|
|
|
|
2009-06-25 00:34:58 +07:00
|
|
|
p = pci_ioremap_bar(dev, 0);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
/* Set bit-4 Control Register (UART RESET) in to reset the uarts */
|
2008-02-08 19:18:51 +07:00
|
|
|
writeb(0x10, p + OCT_REG_CR_OFF);
|
2005-04-17 05:20:36 +07:00
|
|
|
udelay(50);
|
2008-02-08 19:18:51 +07:00
|
|
|
writeb(0x0, p + OCT_REG_CR_OFF);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/* Set bit-2 (INTENABLE) of Control Register */
|
|
|
|
writeb(0x4, p + OCT_REG_CR_OFF);
|
|
|
|
iounmap(p);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Disables the global interrupt of PMC-OctalPro
|
|
|
|
*/
|
|
|
|
|
2012-11-20 01:26:18 +07:00
|
|
|
static void sbs_exit(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
u8 __iomem *p;
|
|
|
|
|
2009-06-25 00:34:58 +07:00
|
|
|
p = pci_ioremap_bar(dev, 0);
|
2008-02-08 19:18:51 +07:00
|
|
|
/* FIXME: What if resource_len < OCT_REG_CR_OFF */
|
|
|
|
if (p != NULL)
|
2005-04-17 05:20:36 +07:00
|
|
|
writeb(0, p + OCT_REG_CR_OFF);
|
|
|
|
iounmap(p);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* SIIG serial cards have an PCI interface chip which also controls
|
|
|
|
* the UART clocking frequency. Each UART can be clocked independently
|
2011-03-31 08:57:33 +07:00
|
|
|
* (except cards equipped with 4 UARTs) and initial clocking settings
|
2005-04-17 05:20:36 +07:00
|
|
|
* are stored in the EEPROM chip. It can cause problems because this
|
|
|
|
* version of serial driver doesn't support differently clocked UART's
|
|
|
|
* on single PCI card. To prevent this, initialization functions set
|
|
|
|
* high frequency clocking for all UART's on given card. It is safe (I
|
|
|
|
* hope) because it doesn't touch EEPROM settings to prevent conflicts
|
|
|
|
* with other OSes (like M$ DOS).
|
|
|
|
*
|
|
|
|
* SIIG support added by Andrey Panin <pazke@donpac.ru>, 10/1999
|
2008-02-08 19:18:51 +07:00
|
|
|
*
|
2005-04-17 05:20:36 +07:00
|
|
|
* There is two family of SIIG serial cards with different PCI
|
|
|
|
* interface chip and different configuration methods:
|
|
|
|
* - 10x cards have control registers in IO and/or memory space;
|
|
|
|
* - 20x cards have control registers in standard PCI configuration space.
|
|
|
|
*
|
2005-07-27 17:33:03 +07:00
|
|
|
* Note: all 10x cards have PCI device ids 0x10..
|
|
|
|
* all 20x cards have PCI device ids 0x20..
|
|
|
|
*
|
2005-07-18 17:38:09 +07:00
|
|
|
* There are also Quartet Serial cards which use Oxford Semiconductor
|
|
|
|
* 16954 quad UART PCI chip clocked by 18.432 MHz quartz.
|
|
|
|
*
|
2005-04-17 05:20:36 +07:00
|
|
|
* Note: some SIIG cards are probed by the parport_serial object.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define PCI_DEVICE_ID_SIIG_1S_10x (PCI_DEVICE_ID_SIIG_1S_10x_550 & 0xfffc)
|
|
|
|
#define PCI_DEVICE_ID_SIIG_2S_10x (PCI_DEVICE_ID_SIIG_2S_10x_550 & 0xfff8)
|
|
|
|
|
|
|
|
static int pci_siig10x_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
u16 data;
|
|
|
|
void __iomem *p;
|
|
|
|
|
|
|
|
switch (dev->device & 0xfff8) {
|
|
|
|
case PCI_DEVICE_ID_SIIG_1S_10x: /* 1S */
|
|
|
|
data = 0xffdf;
|
|
|
|
break;
|
|
|
|
case PCI_DEVICE_ID_SIIG_2S_10x: /* 2S, 2S1P */
|
|
|
|
data = 0xf7ff;
|
|
|
|
break;
|
|
|
|
default: /* 1S1P, 4S */
|
|
|
|
data = 0xfffb;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2008-05-01 18:34:59 +07:00
|
|
|
p = ioremap_nocache(pci_resource_start(dev, 0), 0x80);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
writew(readw(p + 0x28) & data, p + 0x28);
|
|
|
|
readw(p + 0x28);
|
|
|
|
iounmap(p);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define PCI_DEVICE_ID_SIIG_2S_20x (PCI_DEVICE_ID_SIIG_2S_20x_550 & 0xfffc)
|
|
|
|
#define PCI_DEVICE_ID_SIIG_2S1P_20x (PCI_DEVICE_ID_SIIG_2S1P_20x_550 & 0xfffc)
|
|
|
|
|
|
|
|
static int pci_siig20x_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
u8 data;
|
|
|
|
|
|
|
|
/* Change clock frequency for the first UART. */
|
|
|
|
pci_read_config_byte(dev, 0x6f, &data);
|
|
|
|
pci_write_config_byte(dev, 0x6f, data & 0xef);
|
|
|
|
|
|
|
|
/* If this card has 2 UART, we have to do the same with second UART. */
|
|
|
|
if (((dev->device & 0xfffc) == PCI_DEVICE_ID_SIIG_2S_20x) ||
|
|
|
|
((dev->device & 0xfffc) == PCI_DEVICE_ID_SIIG_2S1P_20x)) {
|
|
|
|
pci_read_config_byte(dev, 0x73, &data);
|
|
|
|
pci_write_config_byte(dev, 0x73, data & 0xef);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2005-07-27 17:33:03 +07:00
|
|
|
static int pci_siig_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
unsigned int type = dev->device & 0xff00;
|
|
|
|
|
|
|
|
if (type == 0x1000)
|
|
|
|
return pci_siig10x_init(dev);
|
|
|
|
else if (type == 0x2000)
|
|
|
|
return pci_siig20x_init(dev);
|
|
|
|
|
|
|
|
moan_device("Unknown SIIG card", dev);
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
2006-02-03 03:15:09 +07:00
|
|
|
static int pci_siig_setup(struct serial_private *priv,
|
2009-01-02 20:44:27 +07:00
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2006-02-03 03:15:09 +07:00
|
|
|
{
|
|
|
|
unsigned int bar = FL_GET_BASE(board->flags) + idx, offset = 0;
|
|
|
|
|
|
|
|
if (idx > 3) {
|
|
|
|
bar = 4;
|
|
|
|
offset = (idx - 4) * 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
return setup_port(priv, port, bar, offset, 0);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Timedia has an explosion of boards, and to avoid the PCI table from
|
|
|
|
* growing *huge*, we use this function to collapse some 70 entries
|
|
|
|
* in the PCI table into one, for sanity's and compactness's sake.
|
|
|
|
*/
|
2006-08-30 02:57:29 +07:00
|
|
|
static const unsigned short timedia_single_port[] = {
|
2005-04-17 05:20:36 +07:00
|
|
|
0x4025, 0x4027, 0x4028, 0x5025, 0x5027, 0
|
|
|
|
};
|
|
|
|
|
2006-08-30 02:57:29 +07:00
|
|
|
static const unsigned short timedia_dual_port[] = {
|
2005-04-17 05:20:36 +07:00
|
|
|
0x0002, 0x4036, 0x4037, 0x4038, 0x4078, 0x4079, 0x4085,
|
2008-02-08 19:18:51 +07:00
|
|
|
0x4088, 0x4089, 0x5037, 0x5078, 0x5079, 0x5085, 0x6079,
|
|
|
|
0x7079, 0x8079, 0x8137, 0x8138, 0x8237, 0x8238, 0x9079,
|
2005-04-17 05:20:36 +07:00
|
|
|
0x9137, 0x9138, 0x9237, 0x9238, 0xA079, 0xB079, 0xC079,
|
|
|
|
0xD079, 0
|
|
|
|
};
|
|
|
|
|
2006-08-30 02:57:29 +07:00
|
|
|
static const unsigned short timedia_quad_port[] = {
|
2008-02-08 19:18:51 +07:00
|
|
|
0x4055, 0x4056, 0x4095, 0x4096, 0x5056, 0x8156, 0x8157,
|
|
|
|
0x8256, 0x8257, 0x9056, 0x9156, 0x9157, 0x9158, 0x9159,
|
2005-04-17 05:20:36 +07:00
|
|
|
0x9256, 0x9257, 0xA056, 0xA157, 0xA158, 0xA159, 0xB056,
|
|
|
|
0xB157, 0
|
|
|
|
};
|
|
|
|
|
2006-08-30 02:57:29 +07:00
|
|
|
static const unsigned short timedia_eight_port[] = {
|
2008-02-08 19:18:51 +07:00
|
|
|
0x4065, 0x4066, 0x5065, 0x5066, 0x8166, 0x9066, 0x9166,
|
2005-04-17 05:20:36 +07:00
|
|
|
0x9167, 0x9168, 0xA066, 0xA167, 0xA168, 0
|
|
|
|
};
|
|
|
|
|
2005-11-29 04:04:11 +07:00
|
|
|
static const struct timedia_struct {
|
2005-04-17 05:20:36 +07:00
|
|
|
int num;
|
2006-08-30 02:57:29 +07:00
|
|
|
const unsigned short *ids;
|
2005-04-17 05:20:36 +07:00
|
|
|
} timedia_data[] = {
|
|
|
|
{ 1, timedia_single_port },
|
|
|
|
{ 2, timedia_dual_port },
|
|
|
|
{ 4, timedia_quad_port },
|
2006-08-30 02:57:29 +07:00
|
|
|
{ 8, timedia_eight_port }
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
2011-05-30 02:08:04 +07:00
|
|
|
/*
|
|
|
|
* There are nearly 70 different Timedia/SUNIX PCI serial devices. Instead of
|
|
|
|
* listing them individually, this driver merely grabs them all with
|
|
|
|
* PCI_ANY_ID. Some of these devices, however, also feature a parallel port,
|
|
|
|
* and should be left free to be claimed by parport_serial instead.
|
|
|
|
*/
|
|
|
|
static int pci_timedia_probe(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
/*
|
|
|
|
* Check the third digit of the subdevice ID
|
|
|
|
* (0,2,3,5,6: serial only -- 7,8,9: serial + parallel)
|
|
|
|
*/
|
|
|
|
if ((dev->subsystem_device & 0x00f0) >= 0x70) {
|
|
|
|
dev_info(&dev->dev,
|
|
|
|
"ignoring Timedia subdevice %04x for parport_serial\n",
|
|
|
|
dev->subsystem_device);
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-07-03 21:22:35 +07:00
|
|
|
static int pci_timedia_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2006-08-30 02:57:29 +07:00
|
|
|
const unsigned short *ids;
|
2005-04-17 05:20:36 +07:00
|
|
|
int i, j;
|
|
|
|
|
2006-08-30 02:57:29 +07:00
|
|
|
for (i = 0; i < ARRAY_SIZE(timedia_data); i++) {
|
2005-04-17 05:20:36 +07:00
|
|
|
ids = timedia_data[i].ids;
|
|
|
|
for (j = 0; ids[j]; j++)
|
|
|
|
if (dev->subsystem_device == ids[j])
|
|
|
|
return timedia_data[i].num;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Timedia/SUNIX uses a mixture of BARs and offsets
|
|
|
|
* Ugh, this is ugly as all hell --- TYT
|
|
|
|
*/
|
|
|
|
static int
|
2009-01-02 20:44:27 +07:00
|
|
|
pci_timedia_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int bar = 0, offset = board->first_offset;
|
|
|
|
|
|
|
|
switch (idx) {
|
|
|
|
case 0:
|
|
|
|
bar = 0;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
offset = board->uart_offset;
|
|
|
|
bar = 0;
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
bar = 1;
|
|
|
|
break;
|
|
|
|
case 3:
|
|
|
|
offset = board->uart_offset;
|
2005-12-08 01:11:26 +07:00
|
|
|
/* FALLTHROUGH */
|
2005-04-17 05:20:36 +07:00
|
|
|
case 4: /* BAR 2 */
|
|
|
|
case 5: /* BAR 3 */
|
|
|
|
case 6: /* BAR 4 */
|
|
|
|
case 7: /* BAR 5 */
|
|
|
|
bar = idx - 2;
|
|
|
|
}
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Some Titan cards are also a little weird
|
|
|
|
*/
|
|
|
|
static int
|
2005-07-27 17:34:27 +07:00
|
|
|
titan_400l_800l_setup(struct serial_private *priv,
|
2009-01-02 20:44:27 +07:00
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int bar, offset = board->first_offset;
|
|
|
|
|
|
|
|
switch (idx) {
|
|
|
|
case 0:
|
|
|
|
bar = 1;
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
bar = 2;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
bar = 4;
|
|
|
|
offset = (idx - 2) * board->uart_offset;
|
|
|
|
}
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2006-07-03 21:22:35 +07:00
|
|
|
static int pci_xircom_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
msleep(100);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-04-06 23:32:15 +07:00
|
|
|
static int pci_ni8420_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
void __iomem *p;
|
|
|
|
unsigned int bar = 0;
|
|
|
|
|
|
|
|
if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
|
|
|
|
moan_device("no memory in bar", dev);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-10-31 07:49:45 +07:00
|
|
|
p = pci_ioremap_bar(dev, bar);
|
2009-04-06 23:32:15 +07:00
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
/* Enable CPU Interrupt */
|
|
|
|
writel(readl(p + NI8420_INT_ENABLE_REG) | NI8420_INT_ENABLE_BIT,
|
|
|
|
p + NI8420_INT_ENABLE_REG);
|
|
|
|
|
|
|
|
iounmap(p);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-04-06 23:32:07 +07:00
|
|
|
#define MITE_IOWBSR1_WSIZE 0xa
|
|
|
|
#define MITE_IOWBSR1_WIN_OFFSET 0x800
|
|
|
|
#define MITE_IOWBSR1_WENAB (1 << 7)
|
|
|
|
#define MITE_LCIMR1_IO_IE_0 (1 << 24)
|
|
|
|
#define MITE_LCIMR2_SET_CPU_IE (1 << 31)
|
|
|
|
#define MITE_IOWCR1_RAMSEL_MASK 0xfffffffe
|
|
|
|
|
|
|
|
static int pci_ni8430_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
void __iomem *p;
|
2014-10-31 07:49:45 +07:00
|
|
|
struct pci_bus_region region;
|
2009-04-06 23:32:07 +07:00
|
|
|
u32 device_window;
|
|
|
|
unsigned int bar = 0;
|
|
|
|
|
|
|
|
if ((pci_resource_flags(dev, bar) & IORESOURCE_MEM) == 0) {
|
|
|
|
moan_device("no memory in bar", dev);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2014-10-31 07:49:45 +07:00
|
|
|
p = pci_ioremap_bar(dev, bar);
|
2009-04-06 23:32:07 +07:00
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
2014-10-31 07:49:45 +07:00
|
|
|
/*
|
|
|
|
* Set device window address and size in BAR0, while acknowledging that
|
|
|
|
* the resource structure may contain a translated address that differs
|
|
|
|
* from the address the device responds to.
|
|
|
|
*/
|
|
|
|
pcibios_resource_to_bus(dev->bus, ®ion, &dev->resource[bar]);
|
|
|
|
device_window = ((region.start + MITE_IOWBSR1_WIN_OFFSET) & 0xffffff00)
|
2016-01-14 22:08:11 +07:00
|
|
|
| MITE_IOWBSR1_WENAB | MITE_IOWBSR1_WSIZE;
|
2009-04-06 23:32:07 +07:00
|
|
|
writel(device_window, p + MITE_IOWBSR1);
|
|
|
|
|
|
|
|
/* Set window access to go to RAMSEL IO address space */
|
|
|
|
writel((readl(p + MITE_IOWCR1) & MITE_IOWCR1_RAMSEL_MASK),
|
|
|
|
p + MITE_IOWCR1);
|
|
|
|
|
|
|
|
/* Enable IO Bus Interrupt 0 */
|
|
|
|
writel(MITE_LCIMR1_IO_IE_0, p + MITE_LCIMR1);
|
|
|
|
|
|
|
|
/* Enable CPU Interrupt */
|
|
|
|
writel(MITE_LCIMR2_SET_CPU_IE, p + MITE_LCIMR2);
|
|
|
|
|
|
|
|
iounmap(p);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* UART Port Control Register */
|
2019-07-26 14:40:12 +07:00
|
|
|
#define NI16550_PCR_OFFSET 0x0f
|
|
|
|
#define NI16550_PCR_RS422 0x00
|
|
|
|
#define NI16550_PCR_ECHO_RS485 0x01
|
|
|
|
#define NI16550_PCR_DTR_RS485 0x02
|
|
|
|
#define NI16550_PCR_AUTO_RS485 0x03
|
|
|
|
#define NI16550_PCR_WIRE_MODE_MASK 0x03
|
|
|
|
#define NI16550_PCR_TXVR_ENABLE_BIT BIT(3)
|
|
|
|
#define NI16550_PCR_RS485_TERMINATION_BIT BIT(6)
|
|
|
|
#define NI16550_ACR_DTR_AUTO_DTR (0x2 << 3)
|
|
|
|
#define NI16550_ACR_DTR_MANUAL_DTR (0x0 << 3)
|
2009-04-06 23:32:07 +07:00
|
|
|
|
|
|
|
static int
|
2009-04-06 23:35:42 +07:00
|
|
|
pci_ni8430_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2009-04-06 23:32:07 +07:00
|
|
|
{
|
2014-10-31 07:49:45 +07:00
|
|
|
struct pci_dev *dev = priv->dev;
|
2009-04-06 23:32:07 +07:00
|
|
|
void __iomem *p;
|
|
|
|
unsigned int bar, offset = board->first_offset;
|
|
|
|
|
|
|
|
if (idx >= board->num_ports)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
|
2014-10-31 07:49:45 +07:00
|
|
|
p = pci_ioremap_bar(dev, bar);
|
2014-10-31 07:49:52 +07:00
|
|
|
if (!p)
|
|
|
|
return -ENOMEM;
|
2009-04-06 23:32:07 +07:00
|
|
|
|
2011-06-24 01:39:20 +07:00
|
|
|
/* enable the transceiver */
|
2019-07-26 14:40:12 +07:00
|
|
|
writeb(readb(p + offset + NI16550_PCR_OFFSET) | NI16550_PCR_TXVR_ENABLE_BIT,
|
|
|
|
p + offset + NI16550_PCR_OFFSET);
|
2009-04-06 23:32:07 +07:00
|
|
|
|
|
|
|
iounmap(p);
|
|
|
|
|
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
|
|
|
}
|
|
|
|
|
2019-07-26 14:40:12 +07:00
|
|
|
static int pci_ni8431_config_rs485(struct uart_port *port,
|
|
|
|
struct serial_rs485 *rs485)
|
|
|
|
{
|
|
|
|
u8 pcr, acr;
|
|
|
|
struct uart_8250_port *up;
|
|
|
|
|
|
|
|
up = container_of(port, struct uart_8250_port, port);
|
|
|
|
acr = up->acr;
|
|
|
|
pcr = port->serial_in(port, NI16550_PCR_OFFSET);
|
|
|
|
pcr &= ~NI16550_PCR_WIRE_MODE_MASK;
|
|
|
|
|
|
|
|
if (rs485->flags & SER_RS485_ENABLED) {
|
|
|
|
/* RS-485 */
|
|
|
|
if ((rs485->flags & SER_RS485_RX_DURING_TX) &&
|
|
|
|
(rs485->flags & SER_RS485_RTS_ON_SEND)) {
|
|
|
|
dev_dbg(port->dev, "Invalid 2-wire mode\n");
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (rs485->flags & SER_RS485_RX_DURING_TX) {
|
|
|
|
/* Echo */
|
|
|
|
dev_vdbg(port->dev, "2-wire DTR with echo\n");
|
|
|
|
pcr |= NI16550_PCR_ECHO_RS485;
|
|
|
|
acr |= NI16550_ACR_DTR_MANUAL_DTR;
|
|
|
|
} else {
|
|
|
|
/* Auto or DTR */
|
|
|
|
if (rs485->flags & SER_RS485_RTS_ON_SEND) {
|
|
|
|
/* Auto */
|
|
|
|
dev_vdbg(port->dev, "2-wire Auto\n");
|
|
|
|
pcr |= NI16550_PCR_AUTO_RS485;
|
|
|
|
acr |= NI16550_ACR_DTR_AUTO_DTR;
|
|
|
|
} else {
|
|
|
|
/* DTR-controlled */
|
|
|
|
/* No Echo */
|
|
|
|
dev_vdbg(port->dev, "2-wire DTR no echo\n");
|
|
|
|
pcr |= NI16550_PCR_DTR_RS485;
|
|
|
|
acr |= NI16550_ACR_DTR_MANUAL_DTR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
/* RS-422 */
|
|
|
|
dev_vdbg(port->dev, "4-wire\n");
|
|
|
|
pcr |= NI16550_PCR_RS422;
|
|
|
|
acr |= NI16550_ACR_DTR_MANUAL_DTR;
|
|
|
|
}
|
|
|
|
|
|
|
|
dev_dbg(port->dev, "write pcr: 0x%08x\n", pcr);
|
|
|
|
port->serial_out(port, NI16550_PCR_OFFSET, pcr);
|
|
|
|
|
|
|
|
up->acr = acr;
|
|
|
|
port->serial_out(port, UART_SCR, UART_ACR);
|
|
|
|
port->serial_out(port, UART_ICR, up->acr);
|
|
|
|
|
|
|
|
/* Update the cache. */
|
|
|
|
port->rs485 = *rs485;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_ni8431_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *uart, int idx)
|
|
|
|
{
|
|
|
|
u8 pcr, acr;
|
|
|
|
struct pci_dev *dev = priv->dev;
|
|
|
|
void __iomem *addr;
|
|
|
|
unsigned int bar, offset = board->first_offset;
|
|
|
|
|
|
|
|
if (idx >= board->num_ports)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
|
|
|
|
addr = pci_ioremap_bar(dev, bar);
|
|
|
|
if (!addr)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
/* enable the transceiver */
|
|
|
|
writeb(readb(addr + NI16550_PCR_OFFSET) | NI16550_PCR_TXVR_ENABLE_BIT,
|
|
|
|
addr + NI16550_PCR_OFFSET);
|
|
|
|
|
|
|
|
pcr = readb(addr + NI16550_PCR_OFFSET);
|
|
|
|
pcr &= ~NI16550_PCR_WIRE_MODE_MASK;
|
|
|
|
|
|
|
|
/* set wire mode to default RS-422 */
|
|
|
|
pcr |= NI16550_PCR_RS422;
|
|
|
|
acr = NI16550_ACR_DTR_MANUAL_DTR;
|
|
|
|
|
|
|
|
/* write port configuration to register */
|
|
|
|
writeb(pcr, addr + NI16550_PCR_OFFSET);
|
|
|
|
|
|
|
|
/* access and write to UART acr register */
|
|
|
|
writeb(UART_ACR, addr + UART_SCR);
|
|
|
|
writeb(acr, addr + UART_ICR);
|
|
|
|
|
|
|
|
uart->port.rs485_config = &pci_ni8431_config_rs485;
|
|
|
|
|
|
|
|
iounmap(addr);
|
|
|
|
|
|
|
|
return setup_port(priv, uart, bar, offset, board->reg_shift);
|
|
|
|
}
|
|
|
|
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
static int pci_netmos_9900_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
{
|
|
|
|
unsigned int bar;
|
|
|
|
|
serial: 8250_pci: unbreak last serial ports on NetMos 9865 cards
Aparently 9865 uses standard BAR encoding scheme (unlike 99xx cards).
Current pci_netmos_9900_setup() uses wrong BAR indices for the 9865 PCI
device, function 2. Using standard BAR indices makes all 6 ports work
for me. Thus disable the NetMos 9900 quirk for NetMos 9865 pci device.
For the reference, here is the relevant part of lspci for my device:
02:07.0 Serial controller: MosChip Semiconductor Technology Ltd. PCI
9865 Multi-I/O Controller (prog-if 02 [16550])
Subsystem: Device a000:1000
Flags: bus master, medium devsel, latency 32, IRQ 17
I/O ports at ac00 [size=8]
Memory at fcfff000 (32-bit, non-prefetchable) [size=4K]
Memory at fcffe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
Kernel driver in use: serial
02:07.1 Serial controller: MosChip Semiconductor Technology Ltd. PCI
9865 Multi-I/O Controller (prog-if 02 [16550])
Subsystem: Device a000:1000
Flags: bus master, medium devsel, latency 32, IRQ 18
I/O ports at a800 [size=8]
Memory at fcffd000 (32-bit, non-prefetchable) [size=4K]
Memory at fcffc000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
Kernel driver in use: serial
02:07.2 Communication controller: MosChip Semiconductor Technology Ltd.
PCI 9865 Multi-I/O Controller
Subsystem: Device a000:3004
Flags: bus master, medium devsel, latency 32, IRQ 19
I/O ports at a400 [size=8]
I/O ports at a000 [size=8]
I/O ports at 9c00 [size=8]
I/O ports at 9800 [size=8]
Memory at fcffb000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [48] Power Management version 2
Kernel driver in use: serial
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-11 17:18:13 +07:00
|
|
|
if ((priv->dev->device != PCI_DEVICE_ID_NETMOS_9865) &&
|
|
|
|
(priv->dev->subsystem_device & 0xff00) == 0x3000) {
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
/* netmos apparently orders BARs by datasheet layout, so serial
|
|
|
|
* ports get BARs 0 and 3 (or 1 and 4 for memmapped)
|
|
|
|
*/
|
|
|
|
bar = 3 * idx;
|
|
|
|
|
|
|
|
return setup_port(priv, port, bar, 0, board->reg_shift);
|
|
|
|
} else {
|
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* the 99xx series comes with a range of device IDs and a variety
|
|
|
|
* of capabilities:
|
|
|
|
*
|
|
|
|
* 9900 has varying capabilities and can cascade to sub-controllers
|
|
|
|
* (cascading should be purely internal)
|
|
|
|
* 9904 is hardwired with 4 serial ports
|
|
|
|
* 9912 and 9922 are hardwired with 2 serial ports
|
|
|
|
*/
|
|
|
|
static int pci_netmos_9900_numports(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
unsigned int c = dev->class;
|
|
|
|
unsigned int pi;
|
|
|
|
unsigned short sub_serports;
|
|
|
|
|
2016-01-14 22:08:17 +07:00
|
|
|
pi = c & 0xff;
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
|
2016-01-14 22:08:14 +07:00
|
|
|
if (pi == 2)
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
return 1;
|
2016-01-14 22:08:14 +07:00
|
|
|
|
|
|
|
if ((pi == 0) && (dev->device == PCI_DEVICE_ID_NETMOS_9900)) {
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
/* two possibilities: 0x30ps encodes number of parallel and
|
|
|
|
* serial ports, or 0x1000 indicates *something*. This is not
|
|
|
|
* immediately obvious, since the 2s1p+4s configuration seems
|
|
|
|
* to offer all functionality on functions 0..2, while still
|
|
|
|
* advertising the same function 3 as the 4s+2s1p config.
|
|
|
|
*/
|
|
|
|
sub_serports = dev->subsystem_device & 0xf;
|
2016-01-14 22:08:14 +07:00
|
|
|
if (sub_serports > 0)
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
return sub_serports;
|
2016-01-14 22:08:14 +07:00
|
|
|
|
|
|
|
dev_err(&dev->dev,
|
|
|
|
"NetMos/Mostech serial driver ignoring port on ambiguous config.\n");
|
|
|
|
return 0;
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
moan_device("unknown NetMos/Mostech program interface", dev);
|
|
|
|
return 0;
|
|
|
|
}
|
2009-04-06 23:32:07 +07:00
|
|
|
|
2006-07-03 21:22:35 +07:00
|
|
|
static int pci_netmos_init(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
/* subdevice 0x00PS means <P> parallel, <S> serial */
|
|
|
|
unsigned int num_serial = dev->subsystem_device & 0xf;
|
|
|
|
|
2009-12-22 07:26:45 +07:00
|
|
|
if ((dev->device == PCI_DEVICE_ID_NETMOS_9901) ||
|
|
|
|
(dev->device == PCI_DEVICE_ID_NETMOS_9865))
|
parport/serial: add support for NetMos 9901 Multi-IO card
Add support for the PCI-Express NetMos 9901 Multi-IO card.
0001:06:00.0 Serial controller [0700]: NetMos Technology Device [9710:9901] (prog-if 02 [16550])
Subsystem: Device [a000:1000]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 65
Region 0: I/O ports at 0030 [size=8]
Region 1: Memory at 80105000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at 80104000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
Kernel modules: 8250_pci
0001:06:00.1 Serial controller [0700]: NetMos Technology Device [9710:9901] (prog-if 02 [16550])
Subsystem: Device [a000:1000]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 65
Region 0: I/O ports at 0020 [size=8]
Region 1: Memory at 80103000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at 80102000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
Kernel modules: 8250_pci
0001:06:00.2 Parallel controller [0701]: NetMos Technology Device [9710:9901] (prog-if 03 [IEEE1284])
Subsystem: Device [a000:2000]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin C routed to IRQ 65
Region 0: I/O ports at 0010 [size=8]
Region 1: I/O ports at <unassigned>
Region 2: Memory at 80101000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at 80100000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: parport_pc
Kernel modules: parport_pc
[ 16.760181] PCI parallel port detected: 416c:0100, I/O at 0x812010(0x0), IRQ 65
[ 16.760225] parport0: PC-style at 0x812010, irq 65 [PCSPP,TRISTATE,EPP]
[ 16.851842] serial 0001:06:00.0: enabling device (0004 -> 0007)
[ 16.883776] 0001:06:00.0: ttyS0 at I/O 0x812030 (irq = 65) is a ST16650V2
[ 16.893832] serial 0001:06:00.1: enabling device (0004 -> 0007)
[ 16.926537] 0001:06:00.1: ttyS1 at I/O 0x812020 (irq = 65) is a ST16650V2
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-07-01 01:41:21 +07:00
|
|
|
return 0;
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
|
2009-01-15 20:30:34 +07:00
|
|
|
if (dev->subsystem_vendor == PCI_VENDOR_ID_IBM &&
|
|
|
|
dev->subsystem_device == 0x0299)
|
|
|
|
return 0;
|
|
|
|
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
switch (dev->device) { /* FALLTHROUGH on all */
|
2016-01-14 22:08:23 +07:00
|
|
|
case PCI_DEVICE_ID_NETMOS_9904:
|
|
|
|
case PCI_DEVICE_ID_NETMOS_9912:
|
|
|
|
case PCI_DEVICE_ID_NETMOS_9922:
|
|
|
|
case PCI_DEVICE_ID_NETMOS_9900:
|
|
|
|
num_serial = pci_netmos_9900_numports(dev);
|
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
|
|
break;
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
}
|
|
|
|
|
2016-01-14 22:08:22 +07:00
|
|
|
if (num_serial == 0) {
|
|
|
|
moan_device("unknown NetMos/Mostech device", dev);
|
2005-04-17 05:20:36 +07:00
|
|
|
return -ENODEV;
|
2016-01-14 22:08:22 +07:00
|
|
|
}
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
return num_serial;
|
|
|
|
}
|
|
|
|
|
2007-08-23 04:01:14 +07:00
|
|
|
/*
|
|
|
|
* These chips are available with optionally one parallel port and up to
|
|
|
|
* two serial ports. Unfortunately they all have the same product id.
|
|
|
|
*
|
|
|
|
* Basic configuration is done over a region of 32 I/O ports. The base
|
|
|
|
* ioport is called INTA or INTC, depending on docs/other drivers.
|
|
|
|
*
|
|
|
|
* The region of the 32 I/O ports is configured in POSIO0R...
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* registers */
|
|
|
|
#define ITE_887x_MISCR 0x9c
|
|
|
|
#define ITE_887x_INTCBAR 0x78
|
|
|
|
#define ITE_887x_UARTBAR 0x7c
|
|
|
|
#define ITE_887x_PS0BAR 0x10
|
|
|
|
#define ITE_887x_POSIO0 0x60
|
|
|
|
|
|
|
|
/* I/O space size */
|
|
|
|
#define ITE_887x_IOSIZE 32
|
|
|
|
/* I/O space size (bits 26-24; 8 bytes = 011b) */
|
|
|
|
#define ITE_887x_POSIO_IOSIZE_8 (3 << 24)
|
|
|
|
/* I/O space size (bits 26-24; 32 bytes = 101b) */
|
|
|
|
#define ITE_887x_POSIO_IOSIZE_32 (5 << 24)
|
|
|
|
/* Decoding speed (1 = slow, 2 = medium, 3 = fast) */
|
|
|
|
#define ITE_887x_POSIO_SPEED (3 << 29)
|
|
|
|
/* enable IO_Space bit */
|
|
|
|
#define ITE_887x_POSIO_ENABLE (1 << 31)
|
|
|
|
|
2007-08-31 13:56:31 +07:00
|
|
|
static int pci_ite887x_init(struct pci_dev *dev)
|
2007-08-23 04:01:14 +07:00
|
|
|
{
|
|
|
|
/* inta_addr are the configuration addresses of the ITE */
|
|
|
|
static const short inta_addr[] = { 0x2a0, 0x2c0, 0x220, 0x240, 0x1e0,
|
|
|
|
0x200, 0x280, 0 };
|
|
|
|
int ret, i, type;
|
|
|
|
struct resource *iobase = NULL;
|
|
|
|
u32 miscr, uartbar, ioport;
|
|
|
|
|
|
|
|
/* search for the base-ioport */
|
|
|
|
i = 0;
|
|
|
|
while (inta_addr[i] && iobase == NULL) {
|
|
|
|
iobase = request_region(inta_addr[i], ITE_887x_IOSIZE,
|
|
|
|
"ite887x");
|
|
|
|
if (iobase != NULL) {
|
|
|
|
/* write POSIO0R - speed | size | ioport */
|
|
|
|
pci_write_config_dword(dev, ITE_887x_POSIO0,
|
|
|
|
ITE_887x_POSIO_ENABLE | ITE_887x_POSIO_SPEED |
|
|
|
|
ITE_887x_POSIO_IOSIZE_32 | inta_addr[i]);
|
|
|
|
/* write INTCBAR - ioport */
|
2008-02-08 19:18:51 +07:00
|
|
|
pci_write_config_dword(dev, ITE_887x_INTCBAR,
|
|
|
|
inta_addr[i]);
|
2007-08-23 04:01:14 +07:00
|
|
|
ret = inb(inta_addr[i]);
|
|
|
|
if (ret != 0xff) {
|
|
|
|
/* ioport connected */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
release_region(iobase->start, ITE_887x_IOSIZE);
|
|
|
|
iobase = NULL;
|
|
|
|
}
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!inta_addr[i]) {
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_err(&dev->dev, "ite887x: could not find iobase\n");
|
2007-08-23 04:01:14 +07:00
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* start of undocumented type checking (see parport_pc.c) */
|
|
|
|
type = inb(iobase->start + 0x18) & 0x0f;
|
|
|
|
|
|
|
|
switch (type) {
|
|
|
|
case 0x2: /* ITE8871 (1P) */
|
|
|
|
case 0xa: /* ITE8875 (1P) */
|
|
|
|
ret = 0;
|
|
|
|
break;
|
|
|
|
case 0xe: /* ITE8872 (2S1P) */
|
|
|
|
ret = 2;
|
|
|
|
break;
|
|
|
|
case 0x6: /* ITE8873 (1S) */
|
|
|
|
ret = 1;
|
|
|
|
break;
|
|
|
|
case 0x8: /* ITE8874 (2S) */
|
|
|
|
ret = 2;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
moan_device("Unknown ITE887x", dev);
|
|
|
|
ret = -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* configure all serial ports */
|
|
|
|
for (i = 0; i < ret; i++) {
|
|
|
|
/* read the I/O port from the device */
|
|
|
|
pci_read_config_dword(dev, ITE_887x_PS0BAR + (0x4 * (i + 1)),
|
|
|
|
&ioport);
|
|
|
|
ioport &= 0x0000FF00; /* the actual base address */
|
|
|
|
pci_write_config_dword(dev, ITE_887x_POSIO0 + (0x4 * (i + 1)),
|
|
|
|
ITE_887x_POSIO_ENABLE | ITE_887x_POSIO_SPEED |
|
|
|
|
ITE_887x_POSIO_IOSIZE_8 | ioport);
|
|
|
|
|
|
|
|
/* write the ioport to the UARTBAR */
|
|
|
|
pci_read_config_dword(dev, ITE_887x_UARTBAR, &uartbar);
|
|
|
|
uartbar &= ~(0xffff << (16 * i)); /* clear half the reg */
|
|
|
|
uartbar |= (ioport << (16 * i)); /* set the ioport */
|
|
|
|
pci_write_config_dword(dev, ITE_887x_UARTBAR, uartbar);
|
|
|
|
|
|
|
|
/* get current config */
|
|
|
|
pci_read_config_dword(dev, ITE_887x_MISCR, &miscr);
|
|
|
|
/* disable interrupts (UARTx_Routing[3:0]) */
|
|
|
|
miscr &= ~(0xf << (12 - 4 * i));
|
|
|
|
/* activate the UART (UARTx_En) */
|
|
|
|
miscr |= 1 << (23 - i);
|
|
|
|
/* write new config with activated UART */
|
|
|
|
pci_write_config_dword(dev, ITE_887x_MISCR, miscr);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ret <= 0) {
|
|
|
|
/* the device has no UARTs if we get here */
|
|
|
|
release_region(iobase->start, ITE_887x_IOSIZE);
|
|
|
|
}
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2012-11-20 01:26:18 +07:00
|
|
|
static void pci_ite887x_exit(struct pci_dev *dev)
|
2007-08-23 04:01:14 +07:00
|
|
|
{
|
|
|
|
u32 ioport;
|
|
|
|
/* the ioport is bit 0-15 in POSIO0R */
|
|
|
|
pci_read_config_dword(dev, ITE_887x_POSIO0, &ioport);
|
|
|
|
ioport &= 0xffff;
|
|
|
|
release_region(ioport, ITE_887x_IOSIZE);
|
|
|
|
}
|
|
|
|
|
2014-10-17 03:10:01 +07:00
|
|
|
/*
|
|
|
|
* EndRun Technologies.
|
|
|
|
* Determine the number of ports available on the device.
|
|
|
|
*/
|
|
|
|
#define PCI_VENDOR_ID_ENDRUN 0x7401
|
|
|
|
#define PCI_DEVICE_ID_ENDRUN_1588 0xe100
|
|
|
|
|
|
|
|
static int pci_endrun_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
u8 __iomem *p;
|
|
|
|
unsigned long deviceID;
|
|
|
|
unsigned int number_uarts = 0;
|
|
|
|
|
|
|
|
/* EndRun device is all 0xexxx */
|
|
|
|
if (dev->vendor == PCI_VENDOR_ID_ENDRUN &&
|
|
|
|
(dev->device & 0xf000) != 0xe000)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
p = pci_iomap(dev, 0, 5);
|
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
deviceID = ioread32(p);
|
|
|
|
/* EndRun device */
|
|
|
|
if (deviceID == 0x07000200) {
|
|
|
|
number_uarts = ioread8(p + 4);
|
|
|
|
dev_dbg(&dev->dev,
|
|
|
|
"%d ports detected on EndRun PCI Express device\n",
|
|
|
|
number_uarts);
|
|
|
|
}
|
|
|
|
pci_iounmap(dev, p);
|
|
|
|
return number_uarts;
|
|
|
|
}
|
|
|
|
|
2009-01-02 20:44:20 +07:00
|
|
|
/*
|
|
|
|
* Oxford Semiconductor Inc.
|
|
|
|
* Check that device is part of the Tornado range of devices, then determine
|
|
|
|
* the number of ports available on the device.
|
|
|
|
*/
|
|
|
|
static int pci_oxsemi_tornado_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
u8 __iomem *p;
|
|
|
|
unsigned long deviceID;
|
|
|
|
unsigned int number_uarts = 0;
|
|
|
|
|
|
|
|
/* OxSemi Tornado devices are all 0xCxxx */
|
|
|
|
if (dev->vendor == PCI_VENDOR_ID_OXSEMI &&
|
|
|
|
(dev->device & 0xF000) != 0xC000)
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
p = pci_iomap(dev, 0, 5);
|
|
|
|
if (p == NULL)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
deviceID = ioread32(p);
|
|
|
|
/* Tornado device */
|
|
|
|
if (deviceID == 0x07000200) {
|
|
|
|
number_uarts = ioread8(p + 4);
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_dbg(&dev->dev,
|
2009-01-02 20:44:20 +07:00
|
|
|
"%d ports detected on Oxford PCI Express device\n",
|
2013-09-29 03:01:59 +07:00
|
|
|
number_uarts);
|
2009-01-02 20:44:20 +07:00
|
|
|
}
|
|
|
|
pci_iounmap(dev, p);
|
|
|
|
return number_uarts;
|
|
|
|
}
|
|
|
|
|
2012-07-12 19:00:31 +07:00
|
|
|
static int pci_asix_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
port->bugs |= UART_BUG_PARITY;
|
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2012-11-29 05:33:00 +07:00
|
|
|
/* Quatech devices have their own extra interface features */
|
|
|
|
|
|
|
|
struct quatech_feature {
|
|
|
|
u16 devid;
|
|
|
|
bool amcc;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define QPCR_TEST_FOR1 0x3F
|
|
|
|
#define QPCR_TEST_GET1 0x00
|
|
|
|
#define QPCR_TEST_FOR2 0x40
|
|
|
|
#define QPCR_TEST_GET2 0x40
|
|
|
|
#define QPCR_TEST_FOR3 0x80
|
|
|
|
#define QPCR_TEST_GET3 0x40
|
|
|
|
#define QPCR_TEST_FOR4 0xC0
|
|
|
|
#define QPCR_TEST_GET4 0x80
|
|
|
|
|
|
|
|
#define QOPR_CLOCK_X1 0x0000
|
|
|
|
#define QOPR_CLOCK_X2 0x0001
|
|
|
|
#define QOPR_CLOCK_X4 0x0002
|
|
|
|
#define QOPR_CLOCK_X8 0x0003
|
|
|
|
#define QOPR_CLOCK_RATE_MASK 0x0003
|
|
|
|
|
|
|
|
|
|
|
|
static struct quatech_feature quatech_cards[] = {
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_QSC100, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSC100, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSC100E, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSC200, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSC200E, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_ESC100D, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_ESC100M, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_QSCP100, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSCP100, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_QSCP200, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSCP200, 1 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_ESCLP100, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_QSCLP100, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSCLP100, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_SSCLP100, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_QSCLP200, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_DSCLP200, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_SSCLP200, 0 },
|
|
|
|
{ PCI_DEVICE_ID_QUATECH_SPPXP_100, 0 },
|
|
|
|
{ 0, }
|
|
|
|
};
|
|
|
|
|
|
|
|
static int pci_quatech_amcc(u16 devid)
|
|
|
|
{
|
|
|
|
struct quatech_feature *qf = &quatech_cards[0];
|
|
|
|
while (qf->devid) {
|
|
|
|
if (qf->devid == devid)
|
|
|
|
return qf->amcc;
|
|
|
|
qf++;
|
|
|
|
}
|
|
|
|
pr_err("quatech: unknown port type '0x%04X'.\n", devid);
|
|
|
|
return 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
static int pci_quatech_rqopr(struct uart_8250_port *port)
|
|
|
|
{
|
|
|
|
unsigned long base = port->port.iobase;
|
|
|
|
u8 LCR, val;
|
|
|
|
|
|
|
|
LCR = inb(base + UART_LCR);
|
|
|
|
outb(0xBF, base + UART_LCR);
|
|
|
|
val = inb(base + UART_SCR);
|
|
|
|
outb(LCR, base + UART_LCR);
|
|
|
|
return val;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void pci_quatech_wqopr(struct uart_8250_port *port, u8 qopr)
|
|
|
|
{
|
|
|
|
unsigned long base = port->port.iobase;
|
2016-06-23 18:34:22 +07:00
|
|
|
u8 LCR;
|
2012-11-29 05:33:00 +07:00
|
|
|
|
|
|
|
LCR = inb(base + UART_LCR);
|
|
|
|
outb(0xBF, base + UART_LCR);
|
2016-06-23 18:34:22 +07:00
|
|
|
inb(base + UART_SCR);
|
2012-11-29 05:33:00 +07:00
|
|
|
outb(qopr, base + UART_SCR);
|
|
|
|
outb(LCR, base + UART_LCR);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_rqmcr(struct uart_8250_port *port)
|
|
|
|
{
|
|
|
|
unsigned long base = port->port.iobase;
|
|
|
|
u8 LCR, val, qmcr;
|
|
|
|
|
|
|
|
LCR = inb(base + UART_LCR);
|
|
|
|
outb(0xBF, base + UART_LCR);
|
|
|
|
val = inb(base + UART_SCR);
|
|
|
|
outb(val | 0x10, base + UART_SCR);
|
|
|
|
qmcr = inb(base + UART_MCR);
|
|
|
|
outb(val, base + UART_SCR);
|
|
|
|
outb(LCR, base + UART_LCR);
|
|
|
|
|
|
|
|
return qmcr;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void pci_quatech_wqmcr(struct uart_8250_port *port, u8 qmcr)
|
|
|
|
{
|
|
|
|
unsigned long base = port->port.iobase;
|
|
|
|
u8 LCR, val;
|
|
|
|
|
|
|
|
LCR = inb(base + UART_LCR);
|
|
|
|
outb(0xBF, base + UART_LCR);
|
|
|
|
val = inb(base + UART_SCR);
|
|
|
|
outb(val | 0x10, base + UART_SCR);
|
|
|
|
outb(qmcr, base + UART_MCR);
|
|
|
|
outb(val, base + UART_SCR);
|
|
|
|
outb(LCR, base + UART_LCR);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_has_qmcr(struct uart_8250_port *port)
|
|
|
|
{
|
|
|
|
unsigned long base = port->port.iobase;
|
|
|
|
u8 LCR, val;
|
|
|
|
|
|
|
|
LCR = inb(base + UART_LCR);
|
|
|
|
outb(0xBF, base + UART_LCR);
|
|
|
|
val = inb(base + UART_SCR);
|
|
|
|
if (val & 0x20) {
|
|
|
|
outb(0x80, UART_LCR);
|
|
|
|
if (!(inb(UART_SCR) & 0x20)) {
|
|
|
|
outb(LCR, base + UART_LCR);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_test(struct uart_8250_port *port)
|
|
|
|
{
|
2016-01-14 22:08:10 +07:00
|
|
|
u8 reg, qopr;
|
|
|
|
|
|
|
|
qopr = pci_quatech_rqopr(port);
|
2012-11-29 05:33:00 +07:00
|
|
|
pci_quatech_wqopr(port, qopr & QPCR_TEST_FOR1);
|
|
|
|
reg = pci_quatech_rqopr(port) & 0xC0;
|
|
|
|
if (reg != QPCR_TEST_GET1)
|
|
|
|
return -EINVAL;
|
|
|
|
pci_quatech_wqopr(port, (qopr & QPCR_TEST_FOR1)|QPCR_TEST_FOR2);
|
|
|
|
reg = pci_quatech_rqopr(port) & 0xC0;
|
|
|
|
if (reg != QPCR_TEST_GET2)
|
|
|
|
return -EINVAL;
|
|
|
|
pci_quatech_wqopr(port, (qopr & QPCR_TEST_FOR1)|QPCR_TEST_FOR3);
|
|
|
|
reg = pci_quatech_rqopr(port) & 0xC0;
|
|
|
|
if (reg != QPCR_TEST_GET3)
|
|
|
|
return -EINVAL;
|
|
|
|
pci_quatech_wqopr(port, (qopr & QPCR_TEST_FOR1)|QPCR_TEST_FOR4);
|
|
|
|
reg = pci_quatech_rqopr(port) & 0xC0;
|
|
|
|
if (reg != QPCR_TEST_GET4)
|
|
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
pci_quatech_wqopr(port, qopr);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_clock(struct uart_8250_port *port)
|
|
|
|
{
|
|
|
|
u8 qopr, reg, set;
|
|
|
|
unsigned long clock;
|
|
|
|
|
|
|
|
if (pci_quatech_test(port) < 0)
|
|
|
|
return 1843200;
|
|
|
|
|
|
|
|
qopr = pci_quatech_rqopr(port);
|
|
|
|
|
|
|
|
pci_quatech_wqopr(port, qopr & ~QOPR_CLOCK_X8);
|
|
|
|
reg = pci_quatech_rqopr(port);
|
|
|
|
if (reg & QOPR_CLOCK_X8) {
|
|
|
|
clock = 1843200;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
pci_quatech_wqopr(port, qopr | QOPR_CLOCK_X8);
|
|
|
|
reg = pci_quatech_rqopr(port);
|
|
|
|
if (!(reg & QOPR_CLOCK_X8)) {
|
|
|
|
clock = 1843200;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
reg &= QOPR_CLOCK_X8;
|
|
|
|
if (reg == QOPR_CLOCK_X2) {
|
|
|
|
clock = 3685400;
|
|
|
|
set = QOPR_CLOCK_X2;
|
|
|
|
} else if (reg == QOPR_CLOCK_X4) {
|
|
|
|
clock = 7372800;
|
|
|
|
set = QOPR_CLOCK_X4;
|
|
|
|
} else if (reg == QOPR_CLOCK_X8) {
|
|
|
|
clock = 14745600;
|
|
|
|
set = QOPR_CLOCK_X8;
|
|
|
|
} else {
|
|
|
|
clock = 1843200;
|
|
|
|
set = QOPR_CLOCK_X1;
|
|
|
|
}
|
|
|
|
qopr &= ~QOPR_CLOCK_RATE_MASK;
|
|
|
|
qopr |= set;
|
|
|
|
|
|
|
|
out:
|
|
|
|
pci_quatech_wqopr(port, qopr);
|
|
|
|
return clock;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_rs422(struct uart_8250_port *port)
|
|
|
|
{
|
|
|
|
u8 qmcr;
|
|
|
|
int rs422 = 0;
|
|
|
|
|
|
|
|
if (!pci_quatech_has_qmcr(port))
|
|
|
|
return 0;
|
|
|
|
qmcr = pci_quatech_rqmcr(port);
|
|
|
|
pci_quatech_wqmcr(port, 0xFF);
|
|
|
|
if (pci_quatech_rqmcr(port))
|
|
|
|
rs422 = 1;
|
|
|
|
pci_quatech_wqmcr(port, qmcr);
|
|
|
|
return rs422;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
if (pci_quatech_amcc(dev->device)) {
|
|
|
|
unsigned long base = pci_resource_start(dev, 0);
|
|
|
|
if (base) {
|
|
|
|
u32 tmp;
|
2016-01-14 22:08:10 +07:00
|
|
|
|
2013-12-09 13:03:08 +07:00
|
|
|
outl(inl(base + 0x38) | 0x00002000, base + 0x38);
|
2012-11-29 05:33:00 +07:00
|
|
|
tmp = inl(base + 0x3c);
|
|
|
|
outl(tmp | 0x01000000, base + 0x3c);
|
2013-12-09 13:03:08 +07:00
|
|
|
outl(tmp &= ~0x01000000, base + 0x3c);
|
2012-11-29 05:33:00 +07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_quatech_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
/* Needed by pci_quatech calls below */
|
|
|
|
port->port.iobase = pci_resource_start(priv->dev, FL_GET_BASE(board->flags));
|
|
|
|
/* Set up the clocking */
|
|
|
|
port->port.uartclk = pci_quatech_clock(port);
|
|
|
|
/* For now just warn about RS422 */
|
|
|
|
if (pci_quatech_rs422(port))
|
|
|
|
pr_warn("quatech: software control of RS422 features not currently supported.\n");
|
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2013-01-16 13:44:48 +07:00
|
|
|
static void pci_quatech_exit(struct pci_dev *dev)
|
2012-11-29 05:33:00 +07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-07-12 19:00:31 +07:00
|
|
|
static int pci_default_setup(struct serial_private *priv,
|
2009-01-02 20:44:27 +07:00
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
unsigned int bar, offset = board->first_offset, maxnr;
|
|
|
|
|
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
if (board->flags & FL_BASE_BARS)
|
|
|
|
bar += idx;
|
|
|
|
else
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
|
2006-06-13 07:07:52 +07:00
|
|
|
maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
|
|
|
|
(board->reg_shift + 3);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (board->flags & FL_REGION_SZ_CAP && idx >= maxnr)
|
|
|
|
return 1;
|
2008-02-08 19:18:51 +07:00
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
2019-06-18 18:23:51 +07:00
|
|
|
static void
|
2019-06-11 18:47:15 +07:00
|
|
|
pericom_do_set_divisor(struct uart_port *port, unsigned int baud,
|
|
|
|
unsigned int quot, unsigned int quot_frac)
|
|
|
|
{
|
|
|
|
int scr;
|
|
|
|
int lcr;
|
|
|
|
int actual_baud;
|
|
|
|
int tolerance;
|
|
|
|
|
|
|
|
for (scr = 5 ; scr <= 15 ; scr++) {
|
|
|
|
actual_baud = 921600 * 16 / scr;
|
|
|
|
tolerance = actual_baud / 50;
|
|
|
|
|
|
|
|
if ((baud < actual_baud + tolerance) &&
|
|
|
|
(baud > actual_baud - tolerance)) {
|
|
|
|
|
|
|
|
lcr = serial_port_in(port, UART_LCR);
|
|
|
|
serial_port_out(port, UART_LCR, lcr | 0x80);
|
|
|
|
|
|
|
|
serial_port_out(port, UART_DLL, 1);
|
|
|
|
serial_port_out(port, UART_DLM, 0);
|
|
|
|
serial_port_out(port, 2, 16 - scr);
|
|
|
|
serial_port_out(port, UART_LCR, lcr);
|
|
|
|
return;
|
|
|
|
} else if (baud > actual_baud) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
serial8250_do_set_divisor(port, baud, quot, quot_frac);
|
|
|
|
}
|
2016-11-07 22:39:03 +07:00
|
|
|
static int pci_pericom_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
unsigned int bar, offset = board->first_offset, maxnr;
|
|
|
|
|
2019-06-11 18:47:15 +07:00
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
if (board->flags & FL_BASE_BARS)
|
|
|
|
bar += idx;
|
|
|
|
else
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
|
|
|
|
|
|
|
|
maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
|
|
|
|
(board->reg_shift + 3);
|
|
|
|
|
|
|
|
if (board->flags & FL_REGION_SZ_CAP && idx >= maxnr)
|
|
|
|
return 1;
|
|
|
|
|
|
|
|
port->port.set_divisor = pericom_do_set_divisor;
|
|
|
|
|
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_pericom_setup_four_at_eight(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
unsigned int bar, offset = board->first_offset, maxnr;
|
|
|
|
|
2016-11-07 22:39:03 +07:00
|
|
|
bar = FL_GET_BASE(board->flags);
|
|
|
|
if (board->flags & FL_BASE_BARS)
|
|
|
|
bar += idx;
|
|
|
|
else
|
|
|
|
offset += idx * board->uart_offset;
|
|
|
|
|
|
|
|
if (idx==3)
|
|
|
|
offset = 0x38;
|
|
|
|
|
|
|
|
maxnr = (pci_resource_len(priv->dev, bar) - board->first_offset) >>
|
|
|
|
(board->reg_shift + 3);
|
|
|
|
|
|
|
|
if (board->flags & FL_REGION_SZ_CAP && idx >= maxnr)
|
|
|
|
return 1;
|
|
|
|
|
2019-06-11 18:47:15 +07:00
|
|
|
port->port.set_divisor = pericom_do_set_divisor;
|
|
|
|
|
2016-11-07 22:39:03 +07:00
|
|
|
return setup_port(priv, port, bar, offset, board->reg_shift);
|
|
|
|
}
|
|
|
|
|
2010-11-17 22:35:20 +07:00
|
|
|
static int
|
|
|
|
ce4100_serial_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2010-11-17 22:35:20 +07:00
|
|
|
{
|
|
|
|
int ret;
|
|
|
|
|
2012-10-19 15:45:07 +07:00
|
|
|
ret = setup_port(priv, port, idx, 0, board->reg_shift);
|
2012-07-12 18:59:50 +07:00
|
|
|
port->port.iotype = UPIO_MEM32;
|
|
|
|
port->port.type = PORT_XSCALE;
|
|
|
|
port->port.flags = (port->port.flags | UPF_FIXED_PORT | UPF_FIXED_TYPE);
|
|
|
|
port->port.regshift = 2;
|
2010-11-17 22:35:20 +07:00
|
|
|
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2011-05-19 01:38:30 +07:00
|
|
|
static int
|
|
|
|
pci_omegapci_setup(struct serial_private *priv,
|
2011-05-24 18:35:48 +07:00
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2011-05-19 01:38:30 +07:00
|
|
|
{
|
|
|
|
return setup_port(priv, port, 2, idx * 8, 0);
|
|
|
|
}
|
|
|
|
|
2013-01-18 05:14:53 +07:00
|
|
|
static int
|
|
|
|
pci_brcm_trumanage_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
int ret = pci_default_setup(priv, board, port, idx);
|
|
|
|
|
|
|
|
port->port.type = PORT_BRCM_TRUMANAGE;
|
|
|
|
port->port.flags = (port->port.flags | UPF_FIXED_PORT | UPF_FIXED_TYPE);
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
2015-07-28 10:59:24 +07:00
|
|
|
/* RTS will control by MCR if this bit is 0 */
|
|
|
|
#define FINTEK_RTS_CONTROL_BY_HW BIT(4)
|
|
|
|
/* only worked with FINTEK_RTS_CONTROL_BY_HW on */
|
|
|
|
#define FINTEK_RTS_INVERT BIT(5)
|
|
|
|
|
|
|
|
/* We should do proper H/W transceiver setting before change to RS485 mode */
|
|
|
|
static int pci_fintek_rs485_config(struct uart_port *port,
|
|
|
|
struct serial_rs485 *rs485)
|
|
|
|
{
|
2015-12-27 21:29:42 +07:00
|
|
|
struct pci_dev *pci_dev = to_pci_dev(port->dev);
|
2015-07-28 10:59:24 +07:00
|
|
|
u8 setting;
|
|
|
|
u8 *index = (u8 *) port->private_data;
|
|
|
|
|
|
|
|
pci_read_config_byte(pci_dev, 0x40 + 8 * *index + 7, &setting);
|
|
|
|
|
2015-08-05 13:44:53 +07:00
|
|
|
if (!rs485)
|
|
|
|
rs485 = &port->rs485;
|
|
|
|
else if (rs485->flags & SER_RS485_ENABLED)
|
2015-07-28 10:59:24 +07:00
|
|
|
memset(rs485->padding, 0, sizeof(rs485->padding));
|
|
|
|
else
|
|
|
|
memset(rs485, 0, sizeof(*rs485));
|
|
|
|
|
|
|
|
/* F81504/508/512 not support RTS delay before or after send */
|
|
|
|
rs485->flags &= SER_RS485_ENABLED | SER_RS485_RTS_ON_SEND;
|
|
|
|
|
|
|
|
if (rs485->flags & SER_RS485_ENABLED) {
|
|
|
|
/* Enable RTS H/W control mode */
|
|
|
|
setting |= FINTEK_RTS_CONTROL_BY_HW;
|
|
|
|
|
|
|
|
if (rs485->flags & SER_RS485_RTS_ON_SEND) {
|
|
|
|
/* RTS driving high on TX */
|
|
|
|
setting &= ~FINTEK_RTS_INVERT;
|
|
|
|
} else {
|
|
|
|
/* RTS driving low on TX */
|
|
|
|
setting |= FINTEK_RTS_INVERT;
|
|
|
|
}
|
|
|
|
|
|
|
|
rs485->delay_rts_after_send = 0;
|
|
|
|
rs485->delay_rts_before_send = 0;
|
|
|
|
} else {
|
|
|
|
/* Disable RTS H/W control mode */
|
|
|
|
setting &= ~(FINTEK_RTS_CONTROL_BY_HW | FINTEK_RTS_INVERT);
|
|
|
|
}
|
|
|
|
|
|
|
|
pci_write_config_byte(pci_dev, 0x40 + 8 * *index + 7, setting);
|
2015-08-05 13:44:53 +07:00
|
|
|
|
|
|
|
if (rs485 != &port->rs485)
|
|
|
|
port->rs485 = *rs485;
|
|
|
|
|
2015-07-28 10:59:24 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2013-10-18 00:44:26 +07:00
|
|
|
static int pci_fintek_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
struct pci_dev *pdev = priv->dev;
|
2015-07-28 10:59:24 +07:00
|
|
|
u8 *data;
|
2013-10-18 00:44:26 +07:00
|
|
|
u8 config_base;
|
2015-04-01 13:00:21 +07:00
|
|
|
u16 iobase;
|
|
|
|
|
|
|
|
config_base = 0x40 + 0x08 * idx;
|
|
|
|
|
|
|
|
/* Get the io address from configuration space */
|
|
|
|
pci_read_config_word(pdev, config_base + 4, &iobase);
|
|
|
|
|
|
|
|
dev_dbg(&pdev->dev, "%s: idx=%d iobase=0x%x", __func__, idx, iobase);
|
|
|
|
|
|
|
|
port->port.iotype = UPIO_PORT;
|
|
|
|
port->port.iobase = iobase;
|
2015-07-28 10:59:24 +07:00
|
|
|
port->port.rs485_config = pci_fintek_rs485_config;
|
|
|
|
|
|
|
|
data = devm_kzalloc(&pdev->dev, sizeof(u8), GFP_KERNEL);
|
|
|
|
if (!data)
|
|
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
/* preserve index in PCI configuration space */
|
|
|
|
*data = idx;
|
|
|
|
port->port.private_data = data;
|
2015-04-01 13:00:21 +07:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int pci_fintek_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
unsigned long iobase;
|
|
|
|
u32 max_port, i;
|
2016-12-23 08:41:20 +07:00
|
|
|
resource_size_t bar_data[3];
|
2015-04-01 13:00:21 +07:00
|
|
|
u8 config_base;
|
2015-08-05 13:44:53 +07:00
|
|
|
struct serial_private *priv = pci_get_drvdata(dev);
|
|
|
|
struct uart_8250_port *port;
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2016-12-23 08:41:20 +07:00
|
|
|
if (!(pci_resource_flags(dev, 5) & IORESOURCE_IO) ||
|
|
|
|
!(pci_resource_flags(dev, 4) & IORESOURCE_IO) ||
|
|
|
|
!(pci_resource_flags(dev, 3) & IORESOURCE_IO))
|
|
|
|
return -ENODEV;
|
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
switch (dev->device) {
|
|
|
|
case 0x1104: /* 4 ports */
|
|
|
|
case 0x1108: /* 8 ports */
|
|
|
|
max_port = dev->device & 0xff;
|
2014-11-19 12:22:27 +07:00
|
|
|
break;
|
2015-04-01 13:00:21 +07:00
|
|
|
case 0x1112: /* 12 ports */
|
|
|
|
max_port = 12;
|
2014-11-19 12:22:27 +07:00
|
|
|
break;
|
2013-10-18 00:44:26 +07:00
|
|
|
default:
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
2014-11-19 12:22:27 +07:00
|
|
|
/* Get the io address dispatch from the BIOS */
|
2016-12-23 08:41:20 +07:00
|
|
|
bar_data[0] = pci_resource_start(dev, 5);
|
|
|
|
bar_data[1] = pci_resource_start(dev, 4);
|
|
|
|
bar_data[2] = pci_resource_start(dev, 3);
|
2014-11-19 12:22:27 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
for (i = 0; i < max_port; ++i) {
|
|
|
|
/* UART0 configuration offset start from 0x40 */
|
|
|
|
config_base = 0x40 + 0x08 * i;
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
/* Calculate Real IO Port */
|
|
|
|
iobase = (bar_data[i / 4] & 0xffffffe0) + (i % 4) * 8;
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
/* Enable UART I/O port */
|
|
|
|
pci_write_config_byte(dev, config_base + 0x00, 0x01);
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
/* Select 128-byte FIFO and 8x FIFO threshold */
|
|
|
|
pci_write_config_byte(dev, config_base + 0x01, 0x33);
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
/* LSB UART */
|
|
|
|
pci_write_config_byte(dev, config_base + 0x04,
|
|
|
|
(u8)(iobase & 0xff));
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
/* MSB UART */
|
|
|
|
pci_write_config_byte(dev, config_base + 0x05,
|
|
|
|
(u8)((iobase & 0xff00) >> 8));
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
pci_write_config_byte(dev, config_base + 0x06, dev->irq);
|
2015-07-28 10:59:24 +07:00
|
|
|
|
2015-08-05 13:44:53 +07:00
|
|
|
if (priv) {
|
|
|
|
/* re-apply RS232/485 mode when
|
|
|
|
* pciserial_resume_ports()
|
|
|
|
*/
|
|
|
|
port = serial8250_get_port(priv->line[i]);
|
|
|
|
pci_fintek_rs485_config(&port->port, NULL);
|
|
|
|
} else {
|
|
|
|
/* First init without port data
|
|
|
|
* force init to RS232 Mode
|
|
|
|
*/
|
|
|
|
pci_write_config_byte(dev, config_base + 0x07, 0x01);
|
|
|
|
}
|
2015-04-01 13:00:21 +07:00
|
|
|
}
|
2013-10-18 00:44:26 +07:00
|
|
|
|
2015-04-01 13:00:21 +07:00
|
|
|
return max_port;
|
2013-10-18 00:44:26 +07:00
|
|
|
}
|
|
|
|
|
8250: fix boot hang with serial console when using with Serial Over Lan port
Intel 8257x Ethernet boards have a feature called Serial Over Lan.
This feature works by emulating a serial port, and it is detected by
kernel as a normal 8250 port. However, this emulation is not perfect, as
also noticed on changeset 7500b1f602aad75901774a67a687ee985d85893f.
Before this patch, the kernel were trying to check if the serial TX is
capable of work using IRQ's.
This were done with a code similar this:
serial_outp(up, UART_IER, UART_IER_THRI);
lsr = serial_in(up, UART_LSR);
iir = serial_in(up, UART_IIR);
serial_outp(up, UART_IER, 0);
if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT)
up->bugs |= UART_BUG_TXEN;
This works fine for other 8250 ports, but, on 8250-emulated SoL port, the
chip is a little lazy to down UART_IIR_NO_INT at UART_IIR register.
Due to that, UART_BUG_TXEN is sometimes enabled. However, as TX IRQ keeps
working, and the TX polling is now enabled, the driver miss-interprets the
IRQ received later, hanging up the machine until a key is pressed at the
serial console.
This is the 6 version of this patch. Previous versions were trying to
introduce a large enough delay between serial_outp and serial_in(up,
UART_IIR), but not taking forever. However, the needed delay couldn't be
safely determined.
At the experimental tests, a delay of 1us solves most of the cases, but
still hangs sometimes. Increasing the delay to 5us was better, but still
doesn't solve. A very high delay of 50 ms seemed to work every time.
However, poking around with delays and pray for it to be enough doesn't
seem to be a good approach, even for a quirk.
So, instead of playing with random large arbitrary delays, let's just
disable UART_BUG_TXEN for all SoL ports.
[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-02-21 06:38:52 +07:00
|
|
|
static int skip_tx_en_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
8250: fix boot hang with serial console when using with Serial Over Lan port
Intel 8257x Ethernet boards have a feature called Serial Over Lan.
This feature works by emulating a serial port, and it is detected by
kernel as a normal 8250 port. However, this emulation is not perfect, as
also noticed on changeset 7500b1f602aad75901774a67a687ee985d85893f.
Before this patch, the kernel were trying to check if the serial TX is
capable of work using IRQ's.
This were done with a code similar this:
serial_outp(up, UART_IER, UART_IER_THRI);
lsr = serial_in(up, UART_LSR);
iir = serial_in(up, UART_IIR);
serial_outp(up, UART_IER, 0);
if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT)
up->bugs |= UART_BUG_TXEN;
This works fine for other 8250 ports, but, on 8250-emulated SoL port, the
chip is a little lazy to down UART_IIR_NO_INT at UART_IIR register.
Due to that, UART_BUG_TXEN is sometimes enabled. However, as TX IRQ keeps
working, and the TX polling is now enabled, the driver miss-interprets the
IRQ received later, hanging up the machine until a key is pressed at the
serial console.
This is the 6 version of this patch. Previous versions were trying to
introduce a large enough delay between serial_outp and serial_in(up,
UART_IIR), but not taking forever. However, the needed delay couldn't be
safely determined.
At the experimental tests, a delay of 1us solves most of the cases, but
still hangs sometimes. Increasing the delay to 5us was better, but still
doesn't solve. A very high delay of 50 ms seemed to work every time.
However, poking around with delays and pray for it to be enough doesn't
seem to be a good approach, even for a quirk.
So, instead of playing with random large arbitrary delays, let's just
disable UART_BUG_TXEN for all SoL ports.
[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-02-21 06:38:52 +07:00
|
|
|
{
|
2017-07-26 00:39:58 +07:00
|
|
|
port->port.quirks |= UPQ_NO_TXEN_TEST;
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_dbg(&priv->dev->dev,
|
|
|
|
"serial8250: skipping TxEn test for device [%04x:%04x] subsystem [%04x:%04x]\n",
|
|
|
|
priv->dev->vendor, priv->dev->device,
|
|
|
|
priv->dev->subsystem_vendor, priv->dev->subsystem_device);
|
8250: fix boot hang with serial console when using with Serial Over Lan port
Intel 8257x Ethernet boards have a feature called Serial Over Lan.
This feature works by emulating a serial port, and it is detected by
kernel as a normal 8250 port. However, this emulation is not perfect, as
also noticed on changeset 7500b1f602aad75901774a67a687ee985d85893f.
Before this patch, the kernel were trying to check if the serial TX is
capable of work using IRQ's.
This were done with a code similar this:
serial_outp(up, UART_IER, UART_IER_THRI);
lsr = serial_in(up, UART_LSR);
iir = serial_in(up, UART_IIR);
serial_outp(up, UART_IER, 0);
if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT)
up->bugs |= UART_BUG_TXEN;
This works fine for other 8250 ports, but, on 8250-emulated SoL port, the
chip is a little lazy to down UART_IIR_NO_INT at UART_IIR register.
Due to that, UART_BUG_TXEN is sometimes enabled. However, as TX IRQ keeps
working, and the TX polling is now enabled, the driver miss-interprets the
IRQ received later, hanging up the machine until a key is pressed at the
serial console.
This is the 6 version of this patch. Previous versions were trying to
introduce a large enough delay between serial_outp and serial_in(up,
UART_IIR), but not taking forever. However, the needed delay couldn't be
safely determined.
At the experimental tests, a delay of 1us solves most of the cases, but
still hangs sometimes. Increasing the delay to 5us was better, but still
doesn't solve. A very high delay of 50 ms seemed to work every time.
However, poking around with delays and pray for it to be enough doesn't
seem to be a good approach, even for a quirk.
So, instead of playing with random large arbitrary delays, let's just
disable UART_BUG_TXEN for all SoL ports.
[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-02-21 06:38:52 +07:00
|
|
|
|
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2012-04-11 04:10:58 +07:00
|
|
|
static void kt_handle_break(struct uart_port *p)
|
|
|
|
{
|
2014-07-14 18:26:14 +07:00
|
|
|
struct uart_8250_port *up = up_to_u8250p(p);
|
2012-04-11 04:10:58 +07:00
|
|
|
/*
|
|
|
|
* On receipt of a BI, serial device in Intel ME (Intel
|
|
|
|
* management engine) needs to have its fifos cleared for sane
|
|
|
|
* SOL (Serial Over Lan) output.
|
|
|
|
*/
|
|
|
|
serial8250_clear_and_reinit_fifos(up);
|
|
|
|
}
|
|
|
|
|
|
|
|
static unsigned int kt_serial_in(struct uart_port *p, int offset)
|
|
|
|
{
|
2014-07-14 18:26:14 +07:00
|
|
|
struct uart_8250_port *up = up_to_u8250p(p);
|
2012-04-11 04:10:58 +07:00
|
|
|
unsigned int val;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* When the Intel ME (management engine) gets reset its serial
|
|
|
|
* port registers could return 0 momentarily. Functions like
|
|
|
|
* serial8250_console_write, read and save the IER, perform
|
|
|
|
* some operation and then restore it. In order to avoid
|
|
|
|
* setting IER register inadvertently to 0, if the value read
|
|
|
|
* is 0, double check with ier value in uart_8250_port and use
|
|
|
|
* that instead. up->ier should be the same value as what is
|
|
|
|
* currently configured.
|
|
|
|
*/
|
|
|
|
val = inb(p->iobase + offset);
|
|
|
|
if (offset == UART_IER) {
|
|
|
|
if (val == 0)
|
|
|
|
val = up->ier;
|
|
|
|
}
|
|
|
|
return val;
|
|
|
|
}
|
|
|
|
|
2012-04-07 01:49:50 +07:00
|
|
|
static int kt_serial_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port *port, int idx)
|
2012-04-07 01:49:50 +07:00
|
|
|
{
|
2012-07-12 18:59:50 +07:00
|
|
|
port->port.flags |= UPF_BUG_THRE;
|
|
|
|
port->port.serial_in = kt_serial_in;
|
|
|
|
port->port.handle_break = kt_handle_break;
|
2012-04-07 01:49:50 +07:00
|
|
|
return skip_tx_en_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2011-06-02 09:31:29 +07:00
|
|
|
static int pci_eg20t_init(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
#if defined(CONFIG_SERIAL_PCH_UART) || defined(CONFIG_SERIAL_PCH_UART_MODULE)
|
|
|
|
return -ENODEV;
|
|
|
|
#else
|
|
|
|
return 0;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
2012-09-04 21:56:12 +07:00
|
|
|
static int
|
|
|
|
pci_wch_ch353_setup(struct serial_private *priv,
|
2016-01-14 22:08:11 +07:00
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
2012-09-04 21:56:12 +07:00
|
|
|
{
|
|
|
|
port->port.flags |= UPF_FIXED_TYPE;
|
|
|
|
port->port.type = PORT_16550A;
|
2011-09-03 03:55:37 +07:00
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2016-05-23 14:04:54 +07:00
|
|
|
static int
|
|
|
|
pci_wch_ch355_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
port->port.flags |= UPF_FIXED_TYPE;
|
|
|
|
port->port.type = PORT_16550A;
|
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2014-11-06 18:36:31 +07:00
|
|
|
static int
|
2014-12-30 20:16:50 +07:00
|
|
|
pci_wch_ch38x_setup(struct serial_private *priv,
|
2016-01-14 22:08:11 +07:00
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
2014-11-06 18:36:31 +07:00
|
|
|
{
|
|
|
|
port->port.flags |= UPF_FIXED_TYPE;
|
|
|
|
port->port.type = PORT_16850;
|
|
|
|
return pci_default_setup(priv, board, port, idx);
|
|
|
|
}
|
|
|
|
|
2019-08-10 02:01:29 +07:00
|
|
|
static int
|
|
|
|
pci_sunix_setup(struct serial_private *priv,
|
|
|
|
const struct pciserial_board *board,
|
|
|
|
struct uart_8250_port *port, int idx)
|
|
|
|
{
|
|
|
|
int bar;
|
|
|
|
int offset;
|
|
|
|
|
|
|
|
port->port.flags |= UPF_FIXED_TYPE;
|
|
|
|
port->port.type = PORT_SUNIX;
|
|
|
|
|
|
|
|
if (idx < 4) {
|
|
|
|
bar = 0;
|
|
|
|
offset = idx * board->uart_offset;
|
|
|
|
} else {
|
|
|
|
bar = 1;
|
|
|
|
idx -= 4;
|
|
|
|
idx = div_s64_rem(idx, 4, &offset);
|
|
|
|
offset = idx * 64 + offset * board->uart_offset;
|
|
|
|
}
|
|
|
|
|
|
|
|
return setup_port(priv, port, bar, offset, 0);
|
|
|
|
}
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
#define PCI_VENDOR_ID_SBSMODULARIO 0x124B
|
|
|
|
#define PCI_SUBVENDOR_ID_SBSMODULARIO 0x124B
|
|
|
|
#define PCI_DEVICE_ID_OCTPRO 0x0001
|
|
|
|
#define PCI_SUBDEVICE_ID_OCTPRO232 0x0108
|
|
|
|
#define PCI_SUBDEVICE_ID_OCTPRO422 0x0208
|
|
|
|
#define PCI_SUBDEVICE_ID_POCTAL232 0x0308
|
|
|
|
#define PCI_SUBDEVICE_ID_POCTAL422 0x0408
|
2012-09-22 07:04:34 +07:00
|
|
|
#define PCI_SUBDEVICE_ID_SIIG_DUAL_00 0x2500
|
|
|
|
#define PCI_SUBDEVICE_ID_SIIG_DUAL_30 0x2530
|
2009-01-27 18:51:16 +07:00
|
|
|
#define PCI_VENDOR_ID_ADVANTECH 0x13fe
|
2010-11-17 22:35:20 +07:00
|
|
|
#define PCI_DEVICE_ID_INTEL_CE4100_UART 0x2e66
|
2009-01-27 18:51:16 +07:00
|
|
|
#define PCI_DEVICE_ID_ADVANTECH_PCI3620 0x3620
|
2014-05-20 03:30:51 +07:00
|
|
|
#define PCI_DEVICE_ID_ADVANTECH_PCI3618 0x3618
|
|
|
|
#define PCI_DEVICE_ID_ADVANTECH_PCIf618 0xf618
|
serial: add support for various Titan PCI cards
serial: add support for various Titan PCI cards
Models: 200I, 400I, 800I, 400EH, 800EH, 800EHB,
100E, 200E, 400E, 800E, 200EI, 200EISI
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 14:58:18 +07:00
|
|
|
#define PCI_DEVICE_ID_TITAN_200I 0x8028
|
|
|
|
#define PCI_DEVICE_ID_TITAN_400I 0x8048
|
|
|
|
#define PCI_DEVICE_ID_TITAN_800I 0x8088
|
|
|
|
#define PCI_DEVICE_ID_TITAN_800EH 0xA007
|
|
|
|
#define PCI_DEVICE_ID_TITAN_800EHB 0xA008
|
|
|
|
#define PCI_DEVICE_ID_TITAN_400EH 0xA009
|
|
|
|
#define PCI_DEVICE_ID_TITAN_100E 0xA010
|
|
|
|
#define PCI_DEVICE_ID_TITAN_200E 0xA012
|
|
|
|
#define PCI_DEVICE_ID_TITAN_400E 0xA013
|
|
|
|
#define PCI_DEVICE_ID_TITAN_800E 0xA014
|
|
|
|
#define PCI_DEVICE_ID_TITAN_200EI 0xA016
|
|
|
|
#define PCI_DEVICE_ID_TITAN_200EISI 0xA017
|
2013-12-09 18:11:15 +07:00
|
|
|
#define PCI_DEVICE_ID_TITAN_200V3 0xA306
|
2011-12-27 21:47:37 +07:00
|
|
|
#define PCI_DEVICE_ID_TITAN_400V3 0xA310
|
|
|
|
#define PCI_DEVICE_ID_TITAN_410V3 0xA312
|
|
|
|
#define PCI_DEVICE_ID_TITAN_800V3 0xA314
|
|
|
|
#define PCI_DEVICE_ID_TITAN_800V3B 0xA315
|
2010-07-26 13:02:26 +07:00
|
|
|
#define PCI_DEVICE_ID_OXSEMI_16PCI958 0x9538
|
2011-05-12 03:41:59 +07:00
|
|
|
#define PCIE_DEVICE_ID_NEO_2_OX_IBM 0x00F6
|
2011-05-19 01:38:30 +07:00
|
|
|
#define PCI_DEVICE_ID_PLX_CRONYX_OMEGA 0xc001
|
2012-04-07 01:49:50 +07:00
|
|
|
#define PCI_DEVICE_ID_INTEL_PATSBURG_KT 0x1d3d
|
2012-09-04 22:21:06 +07:00
|
|
|
#define PCI_VENDOR_ID_WCH 0x4348
|
2013-03-05 22:16:48 +07:00
|
|
|
#define PCI_DEVICE_ID_WCH_CH352_2S 0x3253
|
2012-09-04 22:21:06 +07:00
|
|
|
#define PCI_DEVICE_ID_WCH_CH353_4S 0x3453
|
|
|
|
#define PCI_DEVICE_ID_WCH_CH353_2S1PF 0x5046
|
2014-05-25 01:24:51 +07:00
|
|
|
#define PCI_DEVICE_ID_WCH_CH353_1S1P 0x5053
|
2012-09-04 22:21:06 +07:00
|
|
|
#define PCI_DEVICE_ID_WCH_CH353_2S1P 0x7053
|
2016-05-23 14:04:54 +07:00
|
|
|
#define PCI_DEVICE_ID_WCH_CH355_4S 0x7173
|
2012-08-16 18:01:33 +07:00
|
|
|
#define PCI_VENDOR_ID_AGESTAR 0x5372
|
|
|
|
#define PCI_DEVICE_ID_AGESTAR_9375 0x6872
|
2012-07-12 19:00:31 +07:00
|
|
|
#define PCI_VENDOR_ID_ASIX 0x9710
|
2013-01-18 05:14:53 +07:00
|
|
|
#define PCI_DEVICE_ID_BROADCOM_TRUMANAGE 0x160a
|
2013-07-16 22:14:40 +07:00
|
|
|
#define PCI_DEVICE_ID_AMCC_ADDIDATA_APCI7800 0x818e
|
2012-11-21 23:35:15 +07:00
|
|
|
|
2014-11-06 18:36:31 +07:00
|
|
|
#define PCIE_VENDOR_ID_WCH 0x1c00
|
|
|
|
#define PCIE_DEVICE_ID_WCH_CH382_2S1P 0x3250
|
2014-12-30 20:16:50 +07:00
|
|
|
#define PCIE_DEVICE_ID_WCH_CH384_4S 0x3470
|
2016-02-03 04:00:45 +07:00
|
|
|
#define PCIE_DEVICE_ID_WCH_CH382_2S 0x3253
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2015-08-03 12:28:13 +07:00
|
|
|
#define PCI_VENDOR_ID_PERICOM 0x12D8
|
|
|
|
#define PCI_DEVICE_ID_PERICOM_PI7C9X7951 0x7951
|
|
|
|
#define PCI_DEVICE_ID_PERICOM_PI7C9X7952 0x7952
|
|
|
|
#define PCI_DEVICE_ID_PERICOM_PI7C9X7954 0x7954
|
|
|
|
#define PCI_DEVICE_ID_PERICOM_PI7C9X7958 0x7958
|
|
|
|
|
2016-07-21 07:00:40 +07:00
|
|
|
#define PCI_VENDOR_ID_ACCESIO 0x494f
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM_2SDB 0x1051
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_COM_2S 0x1053
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SDB 0x105C
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_COM_4S 0x105E
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM232_2DB 0x1091
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_COM232_2 0x1093
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM232_4DB 0x1099
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_COM232_4 0x109B
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM_2SMDB 0x10D1
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_COM_2SM 0x10D3
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SMDB 0x10DA
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_COM_4SM 0x10DC
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_1 0x1108
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM422_2 0x1110
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_2 0x1111
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM422_4 0x1118
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_4 0x1119
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_ICM_2S 0x1152
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4S 0x115A
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_2 0x1190
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM232_2 0x1191
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_4 0x1198
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_MPCIE_ICM232_4 0x1199
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_ICM_2SM 0x11D0
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM422_4 0x105A
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM485_4 0x105B
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM422_8 0x106A
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM485_8 0x106B
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM232_4 0x1098
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM232_8 0x10A9
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SM 0x10D9
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_COM_8SM 0x10E9
|
|
|
|
#define PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4SM 0x11D8
|
|
|
|
|
2019-07-26 14:40:12 +07:00
|
|
|
#define PCIE_DEVICE_ID_NI_PXIE8430_2328 0x74C2
|
|
|
|
#define PCIE_DEVICE_ID_NI_PXIE8430_23216 0x74C1
|
|
|
|
#define PCI_DEVICE_ID_NI_PXI8431_4852 0x7081
|
|
|
|
#define PCI_DEVICE_ID_NI_PXI8431_4854 0x70DE
|
|
|
|
#define PCI_DEVICE_ID_NI_PXI8431_4858 0x70E3
|
|
|
|
#define PCI_DEVICE_ID_NI_PXI8433_4852 0x70E9
|
|
|
|
#define PCI_DEVICE_ID_NI_PXI8433_4854 0x70ED
|
|
|
|
#define PCIE_DEVICE_ID_NI_PXIE8431_4858 0x74C4
|
|
|
|
#define PCIE_DEVICE_ID_NI_PXIE8431_48516 0x74C3
|
2016-07-21 07:00:40 +07:00
|
|
|
|
|
|
|
|
2008-07-24 11:29:46 +07:00
|
|
|
/* Unknown vendors/cards - this should not be in linux/pci_ids.h */
|
|
|
|
#define PCI_SUBDEVICE_ID_UNKNOWN_0x1584 0x1584
|
2013-03-04 04:35:06 +07:00
|
|
|
#define PCI_SUBDEVICE_ID_UNKNOWN_0x1588 0x1588
|
2008-07-24 11:29:46 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Master list of serial port init/setup/exit quirks.
|
|
|
|
* This does not describe the general nature of the port.
|
|
|
|
* (ie, baud base, number and location of ports, etc)
|
|
|
|
*
|
|
|
|
* This list is ordered alphabetically by vendor then device.
|
|
|
|
* Specific entries must come before more generic entries.
|
|
|
|
*/
|
2008-04-28 16:14:02 +07:00
|
|
|
static struct pci_serial_quirk pci_serial_quirks[] __refdata = {
|
2008-02-05 13:27:49 +07:00
|
|
|
/*
|
|
|
|
* ADDI-DATA GmbH communication cards <info@addi-data.com>
|
|
|
|
*/
|
|
|
|
{
|
2013-07-16 22:14:39 +07:00
|
|
|
.vendor = PCI_VENDOR_ID_AMCC,
|
2013-07-16 22:14:40 +07:00
|
|
|
.device = PCI_DEVICE_ID_AMCC_ADDIDATA_APCI7800,
|
2008-02-05 13:27:49 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = addidata_apci7800_setup,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
2006-07-03 21:22:35 +07:00
|
|
|
* AFAVLAB cards - these may be called via parport_serial
|
2005-04-17 05:20:36 +07:00
|
|
|
* It is not clear whether this applies to all products.
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_AFAVLAB,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = afavlab_setup,
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
* HP Diva
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_HP,
|
|
|
|
.device = PCI_DEVICE_ID_HP_DIVA,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_hp_diva_init,
|
|
|
|
.setup = pci_hp_diva_setup,
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
* Intel
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = PCI_DEVICE_ID_INTEL_80960_RP,
|
|
|
|
.subvendor = 0xe4bf,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_inteli960ni_init,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
},
|
8250: fix boot hang with serial console when using with Serial Over Lan port
Intel 8257x Ethernet boards have a feature called Serial Over Lan.
This feature works by emulating a serial port, and it is detected by
kernel as a normal 8250 port. However, this emulation is not perfect, as
also noticed on changeset 7500b1f602aad75901774a67a687ee985d85893f.
Before this patch, the kernel were trying to check if the serial TX is
capable of work using IRQ's.
This were done with a code similar this:
serial_outp(up, UART_IER, UART_IER_THRI);
lsr = serial_in(up, UART_LSR);
iir = serial_in(up, UART_IIR);
serial_outp(up, UART_IER, 0);
if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT)
up->bugs |= UART_BUG_TXEN;
This works fine for other 8250 ports, but, on 8250-emulated SoL port, the
chip is a little lazy to down UART_IIR_NO_INT at UART_IIR register.
Due to that, UART_BUG_TXEN is sometimes enabled. However, as TX IRQ keeps
working, and the TX polling is now enabled, the driver miss-interprets the
IRQ received later, hanging up the machine until a key is pressed at the
serial console.
This is the 6 version of this patch. Previous versions were trying to
introduce a large enough delay between serial_outp and serial_in(up,
UART_IIR), but not taking forever. However, the needed delay couldn't be
safely determined.
At the experimental tests, a delay of 1us solves most of the cases, but
still hangs sometimes. Increasing the delay to 5us was better, but still
doesn't solve. A very high delay of 50 ms seemed to work every time.
However, poking around with delays and pray for it to be enough doesn't
seem to be a good approach, even for a quirk.
So, instead of playing with random large arbitrary delays, let's just
disable UART_BUG_TXEN for all SoL ports.
[akpm@linux-foundation.org: fix warnings]
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-02-21 06:38:52 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = PCI_DEVICE_ID_INTEL_8257X_SOL,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = skip_tx_en_setup,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = PCI_DEVICE_ID_INTEL_82573L_SOL,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = skip_tx_en_setup,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = PCI_DEVICE_ID_INTEL_82573E_SOL,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = skip_tx_en_setup,
|
|
|
|
},
|
2010-11-17 22:35:20 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = PCI_DEVICE_ID_INTEL_CE4100_UART,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = ce4100_serial_setup,
|
|
|
|
},
|
2012-04-07 01:49:50 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = PCI_DEVICE_ID_INTEL_PATSBURG_KT,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = kt_serial_setup,
|
|
|
|
},
|
2007-08-23 04:01:14 +07:00
|
|
|
/*
|
|
|
|
* ITE
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ITE,
|
|
|
|
.device = PCI_DEVICE_ID_ITE_8872,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ite887x_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ite887x_exit,
|
2007-08-23 04:01:14 +07:00
|
|
|
},
|
2009-04-06 23:32:07 +07:00
|
|
|
/*
|
|
|
|
* National Instruments
|
|
|
|
*/
|
2009-04-06 23:32:15 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PCI23216,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PCI2328,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PCI2324,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PCI2322,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PCI2324I,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PCI2322I,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8420_23216,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8420_2328,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8420_2324,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8420_2322,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8422_2324,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8422_2322,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8420_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8420_exit,
|
2009-04-06 23:32:15 +07:00
|
|
|
},
|
2009-04-06 23:32:07 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8430_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_ni8430_exit,
|
2009-04-06 23:32:07 +07:00
|
|
|
},
|
2019-07-26 14:40:12 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCIE_DEVICE_ID_NI_PXIE8430_2328,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8430_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCIE_DEVICE_ID_NI_PXIE8430_23216,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8430_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8431_4852,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8431_4854,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8431_4858,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8433_4852,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCI_DEVICE_ID_NI_PXI8433_4854,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCIE_DEVICE_ID_NI_PXIE8431_4858,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NI,
|
|
|
|
.device = PCIE_DEVICE_ID_NI_PXIE8431_48516,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_ni8430_init,
|
|
|
|
.setup = pci_ni8431_setup,
|
|
|
|
.exit = pci_ni8430_exit,
|
|
|
|
},
|
2012-11-29 05:33:00 +07:00
|
|
|
/* Quatech */
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_QUATECH,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_quatech_init,
|
|
|
|
.setup = pci_quatech_setup,
|
2013-01-16 13:44:48 +07:00
|
|
|
.exit = pci_quatech_exit,
|
2012-11-29 05:33:00 +07:00
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Panacom
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PANACOM,
|
|
|
|
.device = PCI_DEVICE_ID_PANACOM_QUADMODEM,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_plx9050_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_plx9050_exit,
|
2008-02-08 19:18:51 +07:00
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PANACOM,
|
|
|
|
.device = PCI_DEVICE_ID_PANACOM_DUALMODEM,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_plx9050_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_plx9050_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
2016-11-07 22:39:03 +07:00
|
|
|
/*
|
|
|
|
* Pericom (Only 7954 - It have a offset jump for port 4)
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PERICOM,
|
|
|
|
.device = PCI_DEVICE_ID_PERICOM_PI7C9X7954,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2016-11-07 22:39:03 +07:00
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* PLX
|
|
|
|
*/
|
2005-10-25 04:11:57 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PLX,
|
|
|
|
.device = PCI_DEVICE_ID_PLX_9050,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_EXSYS,
|
|
|
|
.subdevice = PCI_SUBDEVICE_ID_EXSYS_4055,
|
|
|
|
.init = pci_plx9050_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_plx9050_exit,
|
2005-10-25 04:11:57 +07:00
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PLX,
|
|
|
|
.device = PCI_DEVICE_ID_PLX_9050,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_KEYSPAN,
|
|
|
|
.subdevice = PCI_SUBDEVICE_ID_KEYSPAN_SX2,
|
|
|
|
.init = pci_plx9050_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_plx9050_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PLX,
|
|
|
|
.device = PCI_DEVICE_ID_PLX_ROMULUS,
|
|
|
|
.subvendor = PCI_VENDOR_ID_PLX,
|
|
|
|
.subdevice = PCI_DEVICE_ID_PLX_ROMULUS,
|
|
|
|
.init = pci_plx9050_init,
|
|
|
|
.setup = pci_default_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = pci_plx9050_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
2019-02-13 12:43:12 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SDB,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_MPCIE_COM_4S,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM232_4DB,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_MPCIE_COM232_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SMDB,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_MPCIE_COM_4SM,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_MPCIE_ICM422_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4S,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_MPCIE_ICM232_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM422_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM485_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM232_4,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SM,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4SM,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-06-11 18:47:15 +07:00
|
|
|
.setup = pci_pericom_setup_four_at_eight,
|
2019-02-13 12:43:12 +07:00
|
|
|
},
|
2019-06-11 18:47:15 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ACCESIO,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_pericom_setup,
|
|
|
|
}, /*
|
2005-04-17 05:20:36 +07:00
|
|
|
* SBS Technologies, Inc., PMC-OCTALPRO 232
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_SBSMODULARIO,
|
|
|
|
.device = PCI_DEVICE_ID_OCTPRO,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
|
|
|
|
.subdevice = PCI_SUBDEVICE_ID_OCTPRO232,
|
|
|
|
.init = sbs_init,
|
|
|
|
.setup = sbs_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = sbs_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
|
|
|
/*
|
|
|
|
* SBS Technologies, Inc., PMC-OCTALPRO 422
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_SBSMODULARIO,
|
|
|
|
.device = PCI_DEVICE_ID_OCTPRO,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
|
|
|
|
.subdevice = PCI_SUBDEVICE_ID_OCTPRO422,
|
|
|
|
.init = sbs_init,
|
|
|
|
.setup = sbs_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = sbs_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
|
|
|
/*
|
|
|
|
* SBS Technologies, Inc., P-Octal 232
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_SBSMODULARIO,
|
|
|
|
.device = PCI_DEVICE_ID_OCTPRO,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
|
|
|
|
.subdevice = PCI_SUBDEVICE_ID_POCTAL232,
|
|
|
|
.init = sbs_init,
|
|
|
|
.setup = sbs_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = sbs_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
|
|
|
/*
|
|
|
|
* SBS Technologies, Inc., P-Octal 422
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_SBSMODULARIO,
|
|
|
|
.device = PCI_DEVICE_ID_OCTPRO,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_SBSMODULARIO,
|
|
|
|
.subdevice = PCI_SUBDEVICE_ID_POCTAL422,
|
|
|
|
.init = sbs_init,
|
|
|
|
.setup = sbs_setup,
|
2012-11-20 01:21:34 +07:00
|
|
|
.exit = sbs_exit,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
|
|
|
/*
|
2006-07-03 21:22:35 +07:00
|
|
|
* SIIG cards - these may be called via parport_serial
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_SIIG,
|
2005-07-27 17:33:03 +07:00
|
|
|
.device = PCI_ANY_ID,
|
2005-04-17 05:20:36 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2005-07-27 17:33:03 +07:00
|
|
|
.init = pci_siig_init,
|
2006-02-03 03:15:09 +07:00
|
|
|
.setup = pci_siig_setup,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
|
|
|
/*
|
|
|
|
* Titan cards
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_TITAN,
|
|
|
|
.device = PCI_DEVICE_ID_TITAN_400L,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = titan_400l_800l_setup,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_TITAN,
|
|
|
|
.device = PCI_DEVICE_ID_TITAN_800L,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = titan_400l_800l_setup,
|
|
|
|
},
|
|
|
|
/*
|
|
|
|
* Timedia cards
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_TIMEDIA,
|
|
|
|
.device = PCI_DEVICE_ID_TIMEDIA_1889,
|
|
|
|
.subvendor = PCI_VENDOR_ID_TIMEDIA,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-05-30 02:08:04 +07:00
|
|
|
.probe = pci_timedia_probe,
|
2005-04-17 05:20:36 +07:00
|
|
|
.init = pci_timedia_init,
|
|
|
|
.setup = pci_timedia_setup,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_TIMEDIA,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_timedia_setup,
|
|
|
|
},
|
2013-01-28 15:49:20 +07:00
|
|
|
/*
|
2019-08-10 02:01:29 +07:00
|
|
|
* Sunix PCI serial boards
|
2013-01-28 15:49:20 +07:00
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_SUNIX,
|
|
|
|
.device = PCI_DEVICE_ID_SUNIX_1999,
|
|
|
|
.subvendor = PCI_VENDOR_ID_SUNIX,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2019-08-10 02:01:29 +07:00
|
|
|
.setup = pci_sunix_setup,
|
2013-01-28 15:49:20 +07:00
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Xircom cards
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_XIRCOM,
|
|
|
|
.device = PCI_DEVICE_ID_XIRCOM_X3201_MDM,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_xircom_init,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
},
|
|
|
|
/*
|
2006-07-03 21:22:35 +07:00
|
|
|
* Netmos cards - these may be called via parport_serial
|
2005-04-17 05:20:36 +07:00
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_NETMOS,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_netmos_init,
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
.setup = pci_netmos_9900_setup,
|
2005-04-17 05:20:36 +07:00
|
|
|
},
|
2014-10-17 03:10:01 +07:00
|
|
|
/*
|
|
|
|
* EndRun Technologies
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ENDRUN,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_endrun_init,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
},
|
2009-01-02 20:44:20 +07:00
|
|
|
/*
|
2011-05-12 03:41:59 +07:00
|
|
|
* For Oxford Semiconductor Tornado based devices
|
2009-01-02 20:44:20 +07:00
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_OXSEMI,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_oxsemi_tornado_init,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_MAINPINE,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_oxsemi_tornado_init,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
},
|
2011-05-12 03:41:59 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_DIGI,
|
|
|
|
.device = PCIE_DEVICE_ID_NEO_2_OX_IBM,
|
|
|
|
.subvendor = PCI_SUBVENDOR_ID_IBM,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.init = pci_oxsemi_tornado_init,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
},
|
2011-06-02 09:31:29 +07:00
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = 0x8811,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = 0x8812,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = 0x8813,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.device = 0x8814,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x10DB,
|
|
|
|
.device = 0x8027,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x10DB,
|
|
|
|
.device = 0x8028,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x10DB,
|
|
|
|
.device = 0x8029,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x10DB,
|
|
|
|
.device = 0x800C,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x10DB,
|
|
|
|
.device = 0x800D,
|
2012-04-25 17:17:24 +07:00
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2011-06-02 09:31:29 +07:00
|
|
|
.init = pci_eg20t_init,
|
2011-10-07 11:39:49 +07:00
|
|
|
.setup = pci_default_setup,
|
2011-06-02 09:31:29 +07:00
|
|
|
},
|
2011-05-19 01:38:30 +07:00
|
|
|
/*
|
|
|
|
* Cronyx Omega PCI (PLX-chip based)
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_PLX,
|
|
|
|
.device = PCI_DEVICE_ID_PLX_CRONYX_OMEGA,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_omegapci_setup,
|
2012-07-12 19:00:31 +07:00
|
|
|
},
|
2014-05-25 01:24:51 +07:00
|
|
|
/* WCH CH353 1S1P card (16550 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_WCH,
|
|
|
|
.device = PCI_DEVICE_ID_WCH_CH353_1S1P,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch353_setup,
|
|
|
|
},
|
2012-09-04 21:56:12 +07:00
|
|
|
/* WCH CH353 2S1P card (16550 clone) */
|
|
|
|
{
|
2012-09-04 22:21:06 +07:00
|
|
|
.vendor = PCI_VENDOR_ID_WCH,
|
|
|
|
.device = PCI_DEVICE_ID_WCH_CH353_2S1P,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch353_setup,
|
|
|
|
},
|
|
|
|
/* WCH CH353 4S card (16550 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_WCH,
|
|
|
|
.device = PCI_DEVICE_ID_WCH_CH353_4S,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch353_setup,
|
|
|
|
},
|
|
|
|
/* WCH CH353 2S1PF card (16550 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_WCH,
|
|
|
|
.device = PCI_DEVICE_ID_WCH_CH353_2S1PF,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2012-09-04 21:56:12 +07:00
|
|
|
.setup = pci_wch_ch353_setup,
|
|
|
|
},
|
2013-03-05 22:16:48 +07:00
|
|
|
/* WCH CH352 2S card (16550 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_WCH,
|
|
|
|
.device = PCI_DEVICE_ID_WCH_CH352_2S,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch353_setup,
|
|
|
|
},
|
2016-05-23 14:04:54 +07:00
|
|
|
/* WCH CH355 4S card (16550 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_WCH,
|
|
|
|
.device = PCI_DEVICE_ID_WCH_CH355_4S,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch355_setup,
|
|
|
|
},
|
2016-02-03 04:00:45 +07:00
|
|
|
/* WCH CH382 2S card (16850 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCIE_VENDOR_ID_WCH,
|
|
|
|
.device = PCIE_DEVICE_ID_WCH_CH382_2S,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch38x_setup,
|
|
|
|
},
|
2014-12-30 20:16:50 +07:00
|
|
|
/* WCH CH382 2S1P card (16850 clone) */
|
2014-11-06 18:36:31 +07:00
|
|
|
{
|
|
|
|
.vendor = PCIE_VENDOR_ID_WCH,
|
|
|
|
.device = PCIE_DEVICE_ID_WCH_CH382_2S1P,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
2014-12-30 20:16:50 +07:00
|
|
|
.setup = pci_wch_ch38x_setup,
|
|
|
|
},
|
|
|
|
/* WCH CH384 4S card (16850 clone) */
|
|
|
|
{
|
|
|
|
.vendor = PCIE_VENDOR_ID_WCH,
|
|
|
|
.device = PCIE_DEVICE_ID_WCH_CH384_4S,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_wch_ch38x_setup,
|
2014-11-06 18:36:31 +07:00
|
|
|
},
|
2012-07-12 19:00:31 +07:00
|
|
|
/*
|
|
|
|
* ASIX devices with FIFO bug
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_ASIX,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_asix_setup,
|
|
|
|
},
|
2013-01-18 05:14:53 +07:00
|
|
|
/*
|
|
|
|
* Broadcom TruManage (NetXtreme)
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_VENDOR_ID_BROADCOM,
|
|
|
|
.device = PCI_DEVICE_ID_BROADCOM_TRUMANAGE,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_brcm_trumanage_setup,
|
|
|
|
},
|
2013-10-18 00:44:26 +07:00
|
|
|
{
|
|
|
|
.vendor = 0x1c29,
|
|
|
|
.device = 0x1104,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_fintek_setup,
|
2015-04-01 13:00:21 +07:00
|
|
|
.init = pci_fintek_init,
|
2013-10-18 00:44:26 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x1c29,
|
|
|
|
.device = 0x1108,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_fintek_setup,
|
2015-04-01 13:00:21 +07:00
|
|
|
.init = pci_fintek_init,
|
2013-10-18 00:44:26 +07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
.vendor = 0x1c29,
|
|
|
|
.device = 0x1112,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_fintek_setup,
|
2015-04-01 13:00:21 +07:00
|
|
|
.init = pci_fintek_init,
|
2013-10-18 00:44:26 +07:00
|
|
|
},
|
2013-01-18 05:14:53 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Default "match everything" terminator entry
|
|
|
|
*/
|
|
|
|
{
|
|
|
|
.vendor = PCI_ANY_ID,
|
|
|
|
.device = PCI_ANY_ID,
|
|
|
|
.subvendor = PCI_ANY_ID,
|
|
|
|
.subdevice = PCI_ANY_ID,
|
|
|
|
.setup = pci_default_setup,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
static inline int quirk_id_matches(u32 quirk_id, u32 dev_id)
|
|
|
|
{
|
|
|
|
return quirk_id == PCI_ANY_ID || quirk_id == dev_id;
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct pci_serial_quirk *find_quirk(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
struct pci_serial_quirk *quirk;
|
|
|
|
|
|
|
|
for (quirk = pci_serial_quirks; ; quirk++)
|
|
|
|
if (quirk_id_matches(quirk->vendor, dev->vendor) &&
|
|
|
|
quirk_id_matches(quirk->device, dev->device) &&
|
|
|
|
quirk_id_matches(quirk->subvendor, dev->subsystem_vendor) &&
|
|
|
|
quirk_id_matches(quirk->subdevice, dev->subsystem_device))
|
2008-02-08 19:18:51 +07:00
|
|
|
break;
|
2005-04-17 05:20:36 +07:00
|
|
|
return quirk;
|
|
|
|
}
|
|
|
|
|
2006-01-05 17:55:26 +07:00
|
|
|
static inline int get_pci_irq(struct pci_dev *dev,
|
2009-01-02 20:44:27 +07:00
|
|
|
const struct pciserial_board *board)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
if (board->flags & FL_NOIRQ)
|
|
|
|
return 0;
|
|
|
|
else
|
|
|
|
return dev->irq;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the configuration table for all of the PCI serial boards
|
|
|
|
* which we support. It is directly indexed by the pci_board_num_t enum
|
|
|
|
* value, which is encoded in the pci_device_id PCI probe table's
|
|
|
|
* driver_data member.
|
|
|
|
*
|
|
|
|
* The makeup of these names are:
|
2006-01-05 00:00:42 +07:00
|
|
|
* pbn_bn{_bt}_n_baud{_offsetinhex}
|
2005-04-17 05:20:36 +07:00
|
|
|
*
|
2006-01-05 00:00:42 +07:00
|
|
|
* bn = PCI BAR number
|
|
|
|
* bt = Index using PCI BARs
|
|
|
|
* n = number of serial ports
|
|
|
|
* baud = baud rate
|
|
|
|
* offsetinhex = offset for each sequential port (in hex)
|
2005-04-17 05:20:36 +07:00
|
|
|
*
|
2006-01-05 00:00:42 +07:00
|
|
|
* This table is sorted by (in order): bn, bt, baud, offsetindex, n.
|
2005-05-06 16:19:09 +07:00
|
|
|
*
|
2005-04-17 05:20:36 +07:00
|
|
|
* Please note: in theory if n = 1, _bt infix should make no difference.
|
|
|
|
* ie, pbn_b0_1_115200 is the same as pbn_b0_bt_1_115200
|
|
|
|
*/
|
|
|
|
enum pci_board_num_t {
|
|
|
|
pbn_default = 0,
|
|
|
|
|
|
|
|
pbn_b0_1_115200,
|
|
|
|
pbn_b0_2_115200,
|
|
|
|
pbn_b0_4_115200,
|
|
|
|
pbn_b0_5_115200,
|
2007-10-16 15:24:00 +07:00
|
|
|
pbn_b0_8_115200,
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
pbn_b0_1_921600,
|
|
|
|
pbn_b0_2_921600,
|
|
|
|
pbn_b0_4_921600,
|
|
|
|
|
2005-07-28 01:43:55 +07:00
|
|
|
pbn_b0_2_1130000,
|
|
|
|
|
2005-07-18 17:38:09 +07:00
|
|
|
pbn_b0_4_1152000,
|
|
|
|
|
2017-02-04 03:25:00 +07:00
|
|
|
pbn_b0_4_1250000,
|
|
|
|
|
2006-01-05 00:00:42 +07:00
|
|
|
pbn_b0_2_1843200,
|
|
|
|
pbn_b0_4_1843200,
|
|
|
|
|
2008-10-21 19:48:58 +07:00
|
|
|
pbn_b0_1_4000000,
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_bt_1_115200,
|
|
|
|
pbn_b0_bt_2_115200,
|
2009-12-22 07:26:45 +07:00
|
|
|
pbn_b0_bt_4_115200,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_bt_8_115200,
|
|
|
|
|
|
|
|
pbn_b0_bt_1_460800,
|
|
|
|
pbn_b0_bt_2_460800,
|
|
|
|
pbn_b0_bt_4_460800,
|
|
|
|
|
|
|
|
pbn_b0_bt_1_921600,
|
|
|
|
pbn_b0_bt_2_921600,
|
|
|
|
pbn_b0_bt_4_921600,
|
|
|
|
pbn_b0_bt_8_921600,
|
|
|
|
|
|
|
|
pbn_b1_1_115200,
|
|
|
|
pbn_b1_2_115200,
|
|
|
|
pbn_b1_4_115200,
|
|
|
|
pbn_b1_8_115200,
|
2009-04-06 23:32:15 +07:00
|
|
|
pbn_b1_16_115200,
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
pbn_b1_1_921600,
|
|
|
|
pbn_b1_2_921600,
|
|
|
|
pbn_b1_4_921600,
|
|
|
|
pbn_b1_8_921600,
|
|
|
|
|
2006-01-05 00:00:42 +07:00
|
|
|
pbn_b1_2_1250000,
|
|
|
|
|
2007-08-23 04:01:14 +07:00
|
|
|
pbn_b1_bt_1_115200,
|
2009-04-06 23:32:15 +07:00
|
|
|
pbn_b1_bt_2_115200,
|
|
|
|
pbn_b1_bt_4_115200,
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b1_bt_2_921600,
|
|
|
|
|
|
|
|
pbn_b1_1_1382400,
|
|
|
|
pbn_b1_2_1382400,
|
|
|
|
pbn_b1_4_1382400,
|
|
|
|
pbn_b1_8_1382400,
|
|
|
|
|
|
|
|
pbn_b2_1_115200,
|
2006-08-26 15:07:36 +07:00
|
|
|
pbn_b2_2_115200,
|
2007-02-10 16:46:05 +07:00
|
|
|
pbn_b2_4_115200,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_8_115200,
|
|
|
|
|
|
|
|
pbn_b2_1_460800,
|
|
|
|
pbn_b2_4_460800,
|
|
|
|
pbn_b2_8_460800,
|
|
|
|
pbn_b2_16_460800,
|
|
|
|
|
|
|
|
pbn_b2_1_921600,
|
|
|
|
pbn_b2_4_921600,
|
|
|
|
pbn_b2_8_921600,
|
|
|
|
|
2010-07-26 13:02:26 +07:00
|
|
|
pbn_b2_8_1152000,
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_bt_1_115200,
|
|
|
|
pbn_b2_bt_2_115200,
|
|
|
|
pbn_b2_bt_4_115200,
|
|
|
|
|
|
|
|
pbn_b2_bt_2_921600,
|
|
|
|
pbn_b2_bt_4_921600,
|
|
|
|
|
2006-01-18 18:47:33 +07:00
|
|
|
pbn_b3_2_115200,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b3_4_115200,
|
|
|
|
pbn_b3_8_115200,
|
|
|
|
|
serial: add support for various Titan PCI cards
serial: add support for various Titan PCI cards
Models: 200I, 400I, 800I, 400EH, 800EH, 800EHB,
100E, 200E, 400E, 800E, 200EI, 200EISI
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 14:58:18 +07:00
|
|
|
pbn_b4_bt_2_921600,
|
|
|
|
pbn_b4_bt_4_921600,
|
|
|
|
pbn_b4_bt_8_921600,
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Board-specific versions.
|
|
|
|
*/
|
|
|
|
pbn_panacom,
|
|
|
|
pbn_panacom2,
|
|
|
|
pbn_panacom4,
|
|
|
|
pbn_plx_romulus,
|
2014-10-17 03:10:01 +07:00
|
|
|
pbn_endrun_2_4000000,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_oxsemi,
|
2008-10-21 19:48:58 +07:00
|
|
|
pbn_oxsemi_1_4000000,
|
|
|
|
pbn_oxsemi_2_4000000,
|
|
|
|
pbn_oxsemi_4_4000000,
|
|
|
|
pbn_oxsemi_8_4000000,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_intel_i960,
|
|
|
|
pbn_sgi_ioc3,
|
|
|
|
pbn_computone_4,
|
|
|
|
pbn_computone_6,
|
|
|
|
pbn_computone_8,
|
|
|
|
pbn_sbsxrsio,
|
2007-08-23 04:01:55 +07:00
|
|
|
pbn_pasemi_1682M,
|
2009-04-06 23:32:07 +07:00
|
|
|
pbn_ni8430_2,
|
|
|
|
pbn_ni8430_4,
|
|
|
|
pbn_ni8430_8,
|
|
|
|
pbn_ni8430_16,
|
2019-07-26 14:40:12 +07:00
|
|
|
pbn_ni8430_pxie_8,
|
|
|
|
pbn_ni8430_pxie_16,
|
|
|
|
pbn_ni8431_2,
|
|
|
|
pbn_ni8431_4,
|
|
|
|
pbn_ni8431_8,
|
|
|
|
pbn_ni8431_pxie_8,
|
|
|
|
pbn_ni8431_pxie_16,
|
2009-10-27 06:50:04 +07:00
|
|
|
pbn_ADDIDATA_PCIe_1_3906250,
|
|
|
|
pbn_ADDIDATA_PCIe_2_3906250,
|
|
|
|
pbn_ADDIDATA_PCIe_4_3906250,
|
|
|
|
pbn_ADDIDATA_PCIe_8_3906250,
|
2010-11-17 22:35:20 +07:00
|
|
|
pbn_ce4100_1_115200,
|
2011-05-19 01:38:30 +07:00
|
|
|
pbn_omegapci,
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
pbn_NETMOS9900_2s_115200,
|
2013-01-18 05:14:53 +07:00
|
|
|
pbn_brcm_trumanage,
|
2013-10-18 00:44:26 +07:00
|
|
|
pbn_fintek_4,
|
|
|
|
pbn_fintek_8,
|
|
|
|
pbn_fintek_12,
|
2016-02-03 04:00:45 +07:00
|
|
|
pbn_wch382_2,
|
2014-12-30 20:16:50 +07:00
|
|
|
pbn_wch384_4,
|
2015-08-03 12:28:13 +07:00
|
|
|
pbn_pericom_PI7C9X7951,
|
|
|
|
pbn_pericom_PI7C9X7952,
|
|
|
|
pbn_pericom_PI7C9X7954,
|
|
|
|
pbn_pericom_PI7C9X7958,
|
2019-08-10 02:01:29 +07:00
|
|
|
pbn_sunix_pci_1s,
|
|
|
|
pbn_sunix_pci_2s,
|
|
|
|
pbn_sunix_pci_4s,
|
|
|
|
pbn_sunix_pci_8s,
|
|
|
|
pbn_sunix_pci_16s,
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* uart_offset - the space between channels
|
|
|
|
* reg_shift - describes how the UART registers are mapped
|
|
|
|
* to PCI memory by the card.
|
|
|
|
* For example IER register on SBS, Inc. PMC-OctPro is located at
|
|
|
|
* offset 0x10 from the UART base, while UART_IER is defined as 1
|
|
|
|
* in include/linux/serial_reg.h,
|
|
|
|
* see first lines of serial_in() and serial_out() in 8250.c
|
|
|
|
*/
|
|
|
|
|
2012-11-20 01:24:32 +07:00
|
|
|
static struct pciserial_board pci_boards[] = {
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_default] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_1_115200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_2_115200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_4_115200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_5_115200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 5,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2007-10-16 15:24:00 +07:00
|
|
|
[pbn_b0_8_115200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b0_1_921600] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_2_921600] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_4_921600] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-07-28 01:43:55 +07:00
|
|
|
|
|
|
|
[pbn_b0_2_1130000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 1130000,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2005-07-18 17:38:09 +07:00
|
|
|
[pbn_b0_4_1152000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 1152000,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2017-02-04 03:25:00 +07:00
|
|
|
[pbn_b0_4_1250000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 1250000,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2006-01-05 00:00:42 +07:00
|
|
|
[pbn_b0_2_1843200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 1843200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_4_1843200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 1843200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2008-10-21 19:48:58 +07:00
|
|
|
[pbn_b0_1_4000000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 4000000,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2006-01-05 00:00:42 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b0_bt_1_115200] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_bt_2_115200] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2009-12-22 07:26:45 +07:00
|
|
|
[pbn_b0_bt_4_115200] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b0_bt_8_115200] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b0_bt_1_460800] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_bt_2_460800] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_bt_4_460800] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b0_bt_1_921600] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_bt_2_921600] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_bt_4_921600] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b0_bt_8_921600] = {
|
|
|
|
.flags = FL_BASE0|FL_BASE_BARS,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b1_1_115200] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_2_115200] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_4_115200] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_8_115200] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2009-04-06 23:32:15 +07:00
|
|
|
[pbn_b1_16_115200] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 16,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
[pbn_b1_1_921600] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_2_921600] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_4_921600] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_8_921600] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2006-01-05 00:00:42 +07:00
|
|
|
[pbn_b1_2_1250000] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 1250000,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2007-08-23 04:01:14 +07:00
|
|
|
[pbn_b1_bt_1_115200] = {
|
|
|
|
.flags = FL_BASE1|FL_BASE_BARS,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2009-04-06 23:32:15 +07:00
|
|
|
[pbn_b1_bt_2_115200] = {
|
|
|
|
.flags = FL_BASE1|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_bt_4_115200] = {
|
|
|
|
.flags = FL_BASE1|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2007-08-23 04:01:14 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b1_bt_2_921600] = {
|
|
|
|
.flags = FL_BASE1|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b1_1_1382400] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 1382400,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_2_1382400] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 1382400,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_4_1382400] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 1382400,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b1_8_1382400] = {
|
|
|
|
.flags = FL_BASE1,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 1382400,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b2_1_115200] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2006-08-26 15:07:36 +07:00
|
|
|
[pbn_b2_2_115200] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2007-02-10 16:46:05 +07:00
|
|
|
[pbn_b2_4_115200] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b2_8_115200] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b2_1_460800] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_4_460800] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_8_460800] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_16_460800] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 16,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b2_1_921600] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_4_921600] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_8_921600] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2010-07-26 13:02:26 +07:00
|
|
|
[pbn_b2_8_1152000] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 1152000,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b2_bt_1_115200] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_bt_2_115200] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_bt_4_115200] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
|
|
|
[pbn_b2_bt_2_921600] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b2_bt_4_921600] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2006-01-18 18:47:33 +07:00
|
|
|
[pbn_b3_2_115200] = {
|
|
|
|
.flags = FL_BASE3,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
[pbn_b3_4_115200] = {
|
|
|
|
.flags = FL_BASE3,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b3_8_115200] = {
|
|
|
|
.flags = FL_BASE3,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
serial: add support for various Titan PCI cards
serial: add support for various Titan PCI cards
Models: 200I, 400I, 800I, 400EH, 800EH, 800EHB,
100E, 200E, 400E, 800E, 200EI, 200EISI
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 14:58:18 +07:00
|
|
|
[pbn_b4_bt_2_921600] = {
|
|
|
|
.flags = FL_BASE4,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b4_bt_4_921600] = {
|
|
|
|
.flags = FL_BASE4,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
[pbn_b4_bt_8_921600] = {
|
|
|
|
.flags = FL_BASE4,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Entries following this are board-specific.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Panacom - IOMEM
|
|
|
|
*/
|
|
|
|
[pbn_panacom] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x400,
|
|
|
|
.reg_shift = 7,
|
|
|
|
},
|
|
|
|
[pbn_panacom2] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x400,
|
|
|
|
.reg_shift = 7,
|
|
|
|
},
|
|
|
|
[pbn_panacom4] = {
|
|
|
|
.flags = FL_BASE2|FL_BASE_BARS,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x400,
|
|
|
|
.reg_shift = 7,
|
|
|
|
},
|
|
|
|
|
|
|
|
/* I think this entry is broken - the first_offset looks wrong --rmk */
|
|
|
|
[pbn_plx_romulus] = {
|
|
|
|
.flags = FL_BASE2,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8 << 2,
|
|
|
|
.reg_shift = 2,
|
|
|
|
.first_offset = 0x03,
|
|
|
|
},
|
|
|
|
|
2014-10-17 03:10:01 +07:00
|
|
|
/*
|
|
|
|
* EndRun Technologies
|
|
|
|
* Uses the size of PCI Base region 0 to
|
|
|
|
* signal now many ports are available
|
|
|
|
* 2 port 952 Uart support
|
|
|
|
*/
|
|
|
|
[pbn_endrun_2_4000000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 4000000,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* This board uses the size of PCI Base region 0 to
|
|
|
|
* signal now many ports are available
|
|
|
|
*/
|
|
|
|
[pbn_oxsemi] = {
|
|
|
|
.flags = FL_BASE0|FL_REGION_SZ_CAP,
|
|
|
|
.num_ports = 32,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
},
|
2008-10-21 19:48:58 +07:00
|
|
|
[pbn_oxsemi_1_4000000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 4000000,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
[pbn_oxsemi_2_4000000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 4000000,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
[pbn_oxsemi_4_4000000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 4000000,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
[pbn_oxsemi_8_4000000] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 4000000,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* EKF addition for i960 Boards form EKF with serial port.
|
|
|
|
* Max 256 ports.
|
|
|
|
*/
|
|
|
|
[pbn_intel_i960] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 32,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 8 << 2,
|
|
|
|
.reg_shift = 2,
|
|
|
|
.first_offset = 0x10000,
|
|
|
|
},
|
|
|
|
[pbn_sgi_ioc3] = {
|
|
|
|
.flags = FL_BASE0|FL_NOIRQ,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 458333,
|
|
|
|
.uart_offset = 8,
|
|
|
|
.reg_shift = 0,
|
|
|
|
.first_offset = 0x20178,
|
|
|
|
},
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Computone - uses IOMEM.
|
|
|
|
*/
|
|
|
|
[pbn_computone_4] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x40,
|
|
|
|
.reg_shift = 2,
|
|
|
|
.first_offset = 0x200,
|
|
|
|
},
|
|
|
|
[pbn_computone_6] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 6,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x40,
|
|
|
|
.reg_shift = 2,
|
|
|
|
.first_offset = 0x200,
|
|
|
|
},
|
|
|
|
[pbn_computone_8] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x40,
|
|
|
|
.reg_shift = 2,
|
|
|
|
.first_offset = 0x200,
|
|
|
|
},
|
|
|
|
[pbn_sbsxrsio] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 460800,
|
|
|
|
.uart_offset = 256,
|
|
|
|
.reg_shift = 4,
|
|
|
|
},
|
2007-08-23 04:01:55 +07:00
|
|
|
/*
|
|
|
|
* PA Semi PWRficient PA6T-1682M on-chip UART
|
|
|
|
*/
|
|
|
|
[pbn_pasemi_1682M] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 8333333,
|
|
|
|
},
|
2009-04-06 23:32:07 +07:00
|
|
|
/*
|
|
|
|
* National Instruments 843x
|
|
|
|
*/
|
|
|
|
[pbn_ni8430_16] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 16,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8430_8] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8430_4] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8430_2] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
2019-07-26 14:40:12 +07:00
|
|
|
[pbn_ni8430_pxie_16] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 16,
|
|
|
|
.base_baud = 3125000,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8430_pxie_8] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 3125000,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8431_8] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8431_4] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8431_2] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 3686400,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8431_pxie_16] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 16,
|
|
|
|
.base_baud = 3125000,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
|
|
|
[pbn_ni8431_pxie_8] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 3125000,
|
|
|
|
.uart_offset = 0x10,
|
|
|
|
.first_offset = 0x800,
|
|
|
|
},
|
2009-10-27 06:50:04 +07:00
|
|
|
/*
|
|
|
|
* ADDI-DATA GmbH PCI-Express communication cards <info@addi-data.com>
|
|
|
|
*/
|
|
|
|
[pbn_ADDIDATA_PCIe_1_3906250] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 3906250,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
[pbn_ADDIDATA_PCIe_2_3906250] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 3906250,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
[pbn_ADDIDATA_PCIe_4_3906250] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 3906250,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
|
|
|
[pbn_ADDIDATA_PCIe_8_3906250] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 3906250,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
.first_offset = 0x1000,
|
|
|
|
},
|
2010-11-17 22:35:20 +07:00
|
|
|
[pbn_ce4100_1_115200] = {
|
2012-10-19 15:45:07 +07:00
|
|
|
.flags = FL_BASE_BARS,
|
|
|
|
.num_ports = 2,
|
2010-11-17 22:35:20 +07:00
|
|
|
.base_baud = 921600,
|
|
|
|
.reg_shift = 2,
|
|
|
|
},
|
2011-05-19 01:38:30 +07:00
|
|
|
[pbn_omegapci] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 0x200,
|
|
|
|
},
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
[pbn_NETMOS9900_2s_115200] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
},
|
2013-01-18 05:14:53 +07:00
|
|
|
[pbn_brcm_trumanage] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.reg_shift = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
},
|
2013-10-18 00:44:26 +07:00
|
|
|
[pbn_fintek_4] = {
|
|
|
|
.num_ports = 4,
|
|
|
|
.uart_offset = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.first_offset = 0x40,
|
|
|
|
},
|
|
|
|
[pbn_fintek_8] = {
|
|
|
|
.num_ports = 8,
|
|
|
|
.uart_offset = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.first_offset = 0x40,
|
|
|
|
},
|
|
|
|
[pbn_fintek_12] = {
|
|
|
|
.num_ports = 12,
|
|
|
|
.uart_offset = 8,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.first_offset = 0x40,
|
|
|
|
},
|
2016-02-03 04:00:45 +07:00
|
|
|
[pbn_wch382_2] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
.first_offset = 0xC0,
|
|
|
|
},
|
2014-12-30 20:16:50 +07:00
|
|
|
[pbn_wch384_4] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 115200,
|
|
|
|
.uart_offset = 8,
|
|
|
|
.first_offset = 0xC0,
|
|
|
|
},
|
2015-08-03 12:28:13 +07:00
|
|
|
/*
|
|
|
|
* Pericom PI7C9X795[1248] Uno/Dual/Quad/Octal UART
|
|
|
|
*/
|
|
|
|
[pbn_pericom_PI7C9X7951] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_pericom_PI7C9X7952] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_pericom_PI7C9X7954] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_pericom_PI7C9X7958] = {
|
|
|
|
.flags = FL_BASE0,
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
2019-08-10 02:01:29 +07:00
|
|
|
[pbn_sunix_pci_1s] = {
|
|
|
|
.num_ports = 1,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_sunix_pci_2s] = {
|
|
|
|
.num_ports = 2,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_sunix_pci_4s] = {
|
|
|
|
.num_ports = 4,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_sunix_pci_8s] = {
|
|
|
|
.num_ports = 8,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
|
|
|
[pbn_sunix_pci_16s] = {
|
|
|
|
.num_ports = 16,
|
|
|
|
.base_baud = 921600,
|
|
|
|
.uart_offset = 0x8,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
2012-09-04 21:56:12 +07:00
|
|
|
static const struct pci_device_id blacklist[] = {
|
|
|
|
/* softmodems */
|
2008-02-08 19:18:51 +07:00
|
|
|
{ PCI_VDEVICE(AL, 0x5457), }, /* ALi Corporation M5457 AC'97 Modem */
|
2010-10-27 02:48:21 +07:00
|
|
|
{ PCI_VDEVICE(MOTOROLA, 0x3052), }, /* Motorola Si3052-based modem */
|
|
|
|
{ PCI_DEVICE(0x1543, 0x3052), }, /* Si3052-based modem, default IDs */
|
2012-09-04 21:56:12 +07:00
|
|
|
|
|
|
|
/* multi-io cards handled by parport_serial */
|
|
|
|
{ PCI_DEVICE(0x4348, 0x7053), }, /* WCH CH353 2S1P */
|
2014-05-25 01:24:51 +07:00
|
|
|
{ PCI_DEVICE(0x4348, 0x5053), }, /* WCH CH353 1S1P */
|
2014-11-06 18:36:31 +07:00
|
|
|
{ PCI_DEVICE(0x1c00, 0x3250), }, /* WCH CH382 2S1P */
|
2015-10-13 17:29:02 +07:00
|
|
|
|
2016-02-25 02:10:22 +07:00
|
|
|
/* Moxa Smartio MUE boards handled by 8250_moxa */
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1024), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1025), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1045), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1144), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1160), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1161), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1182), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1183), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1322), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1342), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1381), },
|
|
|
|
{ PCI_VDEVICE(MOXA, 0x1683), },
|
|
|
|
|
2015-10-13 17:29:02 +07:00
|
|
|
/* Intel platforms with MID UART */
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x081b), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x081c), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x081d), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x1191), },
|
2017-09-22 19:11:56 +07:00
|
|
|
{ PCI_VDEVICE(INTEL, 0x18d8), },
|
2015-10-13 17:29:06 +07:00
|
|
|
{ PCI_VDEVICE(INTEL, 0x19d8), },
|
2016-08-17 23:20:27 +07:00
|
|
|
|
|
|
|
/* Intel platforms with DesignWare UART */
|
2016-08-17 23:20:28 +07:00
|
|
|
{ PCI_VDEVICE(INTEL, 0x0936), },
|
2016-08-17 23:20:27 +07:00
|
|
|
{ PCI_VDEVICE(INTEL, 0x0f0a), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x0f0c), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x228a), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x228c), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x9ce3), },
|
|
|
|
{ PCI_VDEVICE(INTEL, 0x9ce4), },
|
2017-01-31 05:28:22 +07:00
|
|
|
|
|
|
|
/* Exar devices */
|
|
|
|
{ PCI_VDEVICE(EXAR, PCI_ANY_ID), },
|
2017-02-08 23:09:06 +07:00
|
|
|
{ PCI_VDEVICE(COMMTECH, PCI_ANY_ID), },
|
2019-01-25 04:51:22 +07:00
|
|
|
|
|
|
|
/* End of the black list */
|
|
|
|
{ }
|
2007-08-23 04:01:19 +07:00
|
|
|
};
|
|
|
|
|
2017-07-25 00:28:32 +07:00
|
|
|
static int serial_pci_is_class_communication(struct pci_dev *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
/*
|
|
|
|
* If it is not a communications device or the programming
|
|
|
|
* interface is greater than 6, give up.
|
|
|
|
*/
|
|
|
|
if ((((dev->class >> 8) != PCI_CLASS_COMMUNICATION_SERIAL) &&
|
2018-02-03 01:39:13 +07:00
|
|
|
((dev->class >> 8) != PCI_CLASS_COMMUNICATION_MULTISERIAL) &&
|
2005-04-17 05:20:36 +07:00
|
|
|
((dev->class >> 8) != PCI_CLASS_COMMUNICATION_MODEM)) ||
|
|
|
|
(dev->class & 0xff) > 6)
|
|
|
|
return -ENODEV;
|
|
|
|
|
2017-07-25 00:28:32 +07:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Given a complete unknown PCI device, try to use some heuristics to
|
|
|
|
* guess what the configuration might be, based on the pitiful PCI
|
|
|
|
* serial specs. Returns 0 on success, -ENODEV on failure.
|
|
|
|
*/
|
|
|
|
static int
|
|
|
|
serial_pci_guess_board(struct pci_dev *dev, struct pciserial_board *board)
|
|
|
|
{
|
|
|
|
int num_iomem, num_port, first_port = -1, i;
|
2019-01-25 04:51:21 +07:00
|
|
|
int rc;
|
|
|
|
|
|
|
|
rc = serial_pci_is_class_communication(dev);
|
|
|
|
if (rc)
|
|
|
|
return rc;
|
2017-07-25 00:28:32 +07:00
|
|
|
|
2018-02-03 01:39:13 +07:00
|
|
|
/*
|
|
|
|
* Should we try to make guesses for multiport serial devices later?
|
|
|
|
*/
|
|
|
|
if ((dev->class >> 8) == PCI_CLASS_COMMUNICATION_MULTISERIAL)
|
|
|
|
return -ENODEV;
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
num_iomem = num_port = 0;
|
|
|
|
for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
|
|
|
|
if (pci_resource_flags(dev, i) & IORESOURCE_IO) {
|
|
|
|
num_port++;
|
|
|
|
if (first_port == -1)
|
|
|
|
first_port = i;
|
|
|
|
}
|
|
|
|
if (pci_resource_flags(dev, i) & IORESOURCE_MEM)
|
|
|
|
num_iomem++;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If there is 1 or 0 iomem regions, and exactly one port,
|
|
|
|
* use it. We guess the number of ports based on the IO
|
|
|
|
* region size.
|
|
|
|
*/
|
|
|
|
if (num_iomem <= 1 && num_port == 1) {
|
|
|
|
board->flags = first_port;
|
|
|
|
board->num_ports = pci_resource_len(dev, first_port) / 8;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Now guess if we've got a board which indexes by BARs.
|
|
|
|
* Each IO BAR should be 8 bytes, and they should follow
|
|
|
|
* consecutively.
|
|
|
|
*/
|
|
|
|
first_port = -1;
|
|
|
|
num_port = 0;
|
|
|
|
for (i = 0; i < PCI_NUM_BAR_RESOURCES; i++) {
|
|
|
|
if (pci_resource_flags(dev, i) & IORESOURCE_IO &&
|
|
|
|
pci_resource_len(dev, i) == 8 &&
|
|
|
|
(first_port == -1 || (first_port + num_port) == i)) {
|
|
|
|
num_port++;
|
|
|
|
if (first_port == -1)
|
|
|
|
first_port = i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (num_port > 1) {
|
|
|
|
board->flags = first_port | FL_BASE_BARS;
|
|
|
|
board->num_ports = num_port;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
return -ENODEV;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int
|
2009-01-02 20:44:27 +07:00
|
|
|
serial_pci_matches(const struct pciserial_board *board,
|
|
|
|
const struct pciserial_board *guessed)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
|
|
|
return
|
|
|
|
board->num_ports == guessed->num_ports &&
|
|
|
|
board->base_baud == guessed->base_baud &&
|
|
|
|
board->uart_offset == guessed->uart_offset &&
|
|
|
|
board->reg_shift == guessed->reg_shift &&
|
|
|
|
board->first_offset == guessed->first_offset;
|
|
|
|
}
|
|
|
|
|
2005-07-27 17:35:54 +07:00
|
|
|
struct serial_private *
|
2009-01-02 20:44:27 +07:00
|
|
|
pciserial_init_ports(struct pci_dev *dev, const struct pciserial_board *board)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2012-07-12 18:59:50 +07:00
|
|
|
struct uart_8250_port uart;
|
2005-04-17 05:20:36 +07:00
|
|
|
struct serial_private *priv;
|
|
|
|
struct pci_serial_quirk *quirk;
|
|
|
|
int rc, nr_ports, i;
|
|
|
|
|
|
|
|
nr_ports = board->num_ports;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Find an init and setup quirks.
|
|
|
|
*/
|
|
|
|
quirk = find_quirk(dev);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Run the new-style initialization function.
|
|
|
|
* The initialization function returns:
|
|
|
|
* <0 - error
|
|
|
|
* 0 - use board->num_ports
|
|
|
|
* >0 - number of ports
|
|
|
|
*/
|
|
|
|
if (quirk->init) {
|
|
|
|
rc = quirk->init(dev);
|
2005-07-27 17:35:54 +07:00
|
|
|
if (rc < 0) {
|
|
|
|
priv = ERR_PTR(rc);
|
|
|
|
goto err_out;
|
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
if (rc)
|
|
|
|
nr_ports = rc;
|
|
|
|
}
|
|
|
|
|
2007-02-14 15:33:07 +07:00
|
|
|
priv = kzalloc(sizeof(struct serial_private) +
|
2005-04-17 05:20:36 +07:00
|
|
|
sizeof(unsigned int) * nr_ports,
|
|
|
|
GFP_KERNEL);
|
|
|
|
if (!priv) {
|
2005-07-27 17:35:54 +07:00
|
|
|
priv = ERR_PTR(-ENOMEM);
|
|
|
|
goto err_deinit;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2005-07-27 17:34:27 +07:00
|
|
|
priv->dev = dev;
|
2005-04-17 05:20:36 +07:00
|
|
|
priv->quirk = quirk;
|
|
|
|
|
2012-07-12 18:59:50 +07:00
|
|
|
memset(&uart, 0, sizeof(uart));
|
|
|
|
uart.port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ;
|
|
|
|
uart.port.uartclk = board->base_baud * 16;
|
|
|
|
uart.port.irq = get_pci_irq(dev, board);
|
|
|
|
uart.port.dev = &dev->dev;
|
2005-07-27 17:32:04 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
for (i = 0; i < nr_ports; i++) {
|
2012-07-12 18:59:50 +07:00
|
|
|
if (quirk->setup(priv, board, &uart, i))
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
2005-07-27 17:32:04 +07:00
|
|
|
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_dbg(&dev->dev, "Setup PCI port: port %lx, irq %d, type %d\n",
|
|
|
|
uart.port.iobase, uart.port.irq, uart.port.iotype);
|
2008-02-08 19:18:51 +07:00
|
|
|
|
2012-07-12 18:59:50 +07:00
|
|
|
priv->line[i] = serial8250_register_8250_port(&uart);
|
2005-04-17 05:20:36 +07:00
|
|
|
if (priv->line[i] < 0) {
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_err(&dev->dev,
|
|
|
|
"Couldn't register serial port %lx, irq %d, type %d, error %d\n",
|
|
|
|
uart.port.iobase, uart.port.irq,
|
|
|
|
uart.port.iotype, priv->line[i]);
|
2005-04-17 05:20:36 +07:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
priv->nr = i;
|
2016-11-29 04:34:42 +07:00
|
|
|
priv->board = board;
|
2005-07-27 17:35:54 +07:00
|
|
|
return priv;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2008-02-08 19:18:51 +07:00
|
|
|
err_deinit:
|
2005-04-17 05:20:36 +07:00
|
|
|
if (quirk->exit)
|
|
|
|
quirk->exit(dev);
|
2008-02-08 19:18:51 +07:00
|
|
|
err_out:
|
2005-07-27 17:35:54 +07:00
|
|
|
return priv;
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
2005-07-27 17:35:54 +07:00
|
|
|
EXPORT_SYMBOL_GPL(pciserial_init_ports);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2017-02-05 23:12:34 +07:00
|
|
|
static void pciserial_detach_ports(struct serial_private *priv)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2005-07-22 16:15:04 +07:00
|
|
|
struct pci_serial_quirk *quirk;
|
|
|
|
int i;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-07-22 16:15:04 +07:00
|
|
|
for (i = 0; i < priv->nr; i++)
|
|
|
|
serial8250_unregister_port(priv->line[i]);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-07-22 16:15:04 +07:00
|
|
|
/*
|
|
|
|
* Find the exit quirks.
|
|
|
|
*/
|
2005-07-27 17:35:54 +07:00
|
|
|
quirk = find_quirk(priv->dev);
|
2005-07-22 16:15:04 +07:00
|
|
|
if (quirk->exit)
|
2005-07-27 17:35:54 +07:00
|
|
|
quirk->exit(priv->dev);
|
2016-11-29 04:34:42 +07:00
|
|
|
}
|
2005-07-27 17:35:54 +07:00
|
|
|
|
2016-11-29 04:34:42 +07:00
|
|
|
void pciserial_remove_ports(struct serial_private *priv)
|
|
|
|
{
|
|
|
|
pciserial_detach_ports(priv);
|
2005-07-27 17:35:54 +07:00
|
|
|
kfree(priv);
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL_GPL(pciserial_remove_ports);
|
|
|
|
|
|
|
|
void pciserial_suspend_ports(struct serial_private *priv)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < priv->nr; i++)
|
|
|
|
if (priv->line[i] >= 0)
|
|
|
|
serial8250_suspend_port(priv->line[i]);
|
2012-04-11 04:11:03 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Ensure that every init quirk is properly torn down
|
|
|
|
*/
|
|
|
|
if (priv->quirk->exit)
|
|
|
|
priv->quirk->exit(priv->dev);
|
2005-07-27 17:35:54 +07:00
|
|
|
}
|
|
|
|
EXPORT_SYMBOL_GPL(pciserial_suspend_ports);
|
|
|
|
|
|
|
|
void pciserial_resume_ports(struct serial_private *priv)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Ensure that the board is correctly configured.
|
|
|
|
*/
|
|
|
|
if (priv->quirk->init)
|
|
|
|
priv->quirk->init(priv->dev);
|
|
|
|
|
|
|
|
for (i = 0; i < priv->nr; i++)
|
|
|
|
if (priv->line[i] >= 0)
|
|
|
|
serial8250_resume_port(priv->line[i]);
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL_GPL(pciserial_resume_ports);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Probe one serial board. Unfortunately, there is no rhyme nor reason
|
|
|
|
* to the arrangement of serial ports on a PCI card.
|
|
|
|
*/
|
2012-11-20 01:21:50 +07:00
|
|
|
static int
|
2005-07-27 17:35:54 +07:00
|
|
|
pciserial_init_one(struct pci_dev *dev, const struct pci_device_id *ent)
|
|
|
|
{
|
2011-05-30 02:08:03 +07:00
|
|
|
struct pci_serial_quirk *quirk;
|
2005-07-27 17:35:54 +07:00
|
|
|
struct serial_private *priv;
|
2009-01-02 20:44:27 +07:00
|
|
|
const struct pciserial_board *board;
|
2019-01-25 04:51:22 +07:00
|
|
|
const struct pci_device_id *exclude;
|
2009-01-02 20:44:27 +07:00
|
|
|
struct pciserial_board tmp;
|
2005-07-27 17:35:54 +07:00
|
|
|
int rc;
|
|
|
|
|
2011-05-30 02:08:03 +07:00
|
|
|
quirk = find_quirk(dev);
|
|
|
|
if (quirk->probe) {
|
|
|
|
rc = quirk->probe(dev);
|
|
|
|
if (rc)
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2005-07-27 17:35:54 +07:00
|
|
|
if (ent->driver_data >= ARRAY_SIZE(pci_boards)) {
|
2013-09-29 03:01:59 +07:00
|
|
|
dev_err(&dev->dev, "invalid driver_data: %ld\n",
|
2005-07-27 17:35:54 +07:00
|
|
|
ent->driver_data);
|
|
|
|
return -EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
board = &pci_boards[ent->driver_data];
|
|
|
|
|
2019-01-25 04:51:22 +07:00
|
|
|
exclude = pci_match_id(blacklist, dev);
|
|
|
|
if (exclude)
|
|
|
|
return -ENODEV;
|
2017-07-25 00:28:32 +07:00
|
|
|
|
2016-02-15 23:01:51 +07:00
|
|
|
rc = pcim_enable_device(dev);
|
2011-06-01 00:06:28 +07:00
|
|
|
pci_save_state(dev);
|
2005-07-27 17:35:54 +07:00
|
|
|
if (rc)
|
|
|
|
return rc;
|
|
|
|
|
|
|
|
if (ent->driver_data == pbn_default) {
|
|
|
|
/*
|
|
|
|
* Use a copy of the pci_board entry for this;
|
|
|
|
* avoid changing entries in the table.
|
|
|
|
*/
|
|
|
|
memcpy(&tmp, board, sizeof(struct pciserial_board));
|
|
|
|
board = &tmp;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We matched one of our class entries. Try to
|
|
|
|
* determine the parameters of this board.
|
|
|
|
*/
|
2009-01-02 20:44:27 +07:00
|
|
|
rc = serial_pci_guess_board(dev, &tmp);
|
2005-07-27 17:35:54 +07:00
|
|
|
if (rc)
|
2016-02-15 23:01:51 +07:00
|
|
|
return rc;
|
2005-07-27 17:35:54 +07:00
|
|
|
} else {
|
|
|
|
/*
|
|
|
|
* We matched an explicit entry. If we are able to
|
|
|
|
* detect this boards settings with our heuristic,
|
|
|
|
* then we no longer need this entry.
|
|
|
|
*/
|
|
|
|
memcpy(&tmp, &pci_boards[pbn_default],
|
|
|
|
sizeof(struct pciserial_board));
|
|
|
|
rc = serial_pci_guess_board(dev, &tmp);
|
|
|
|
if (rc == 0 && serial_pci_matches(board, &tmp))
|
|
|
|
moan_device("Redundant entry in serial pci_table.",
|
|
|
|
dev);
|
|
|
|
}
|
|
|
|
|
|
|
|
priv = pciserial_init_ports(dev, board);
|
2016-02-15 23:01:51 +07:00
|
|
|
if (IS_ERR(priv))
|
|
|
|
return PTR_ERR(priv);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2016-02-15 23:01:51 +07:00
|
|
|
pci_set_drvdata(dev, priv);
|
|
|
|
return 0;
|
2005-07-27 17:35:54 +07:00
|
|
|
}
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2012-11-20 01:26:18 +07:00
|
|
|
static void pciserial_remove_one(struct pci_dev *dev)
|
2005-07-27 17:35:54 +07:00
|
|
|
{
|
|
|
|
struct serial_private *priv = pci_get_drvdata(dev);
|
|
|
|
|
|
|
|
pciserial_remove_ports(priv);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
|
2015-02-02 19:53:26 +07:00
|
|
|
#ifdef CONFIG_PM_SLEEP
|
|
|
|
static int pciserial_suspend_one(struct device *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2019-07-24 20:17:58 +07:00
|
|
|
struct serial_private *priv = dev_get_drvdata(dev);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2005-07-27 17:35:54 +07:00
|
|
|
if (priv)
|
|
|
|
pciserial_suspend_ports(priv);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2015-02-02 19:53:26 +07:00
|
|
|
static int pciserial_resume_one(struct device *dev)
|
2005-04-17 05:20:36 +07:00
|
|
|
{
|
2015-02-02 19:53:26 +07:00
|
|
|
struct pci_dev *pdev = to_pci_dev(dev);
|
|
|
|
struct serial_private *priv = pci_get_drvdata(pdev);
|
2007-10-29 20:28:17 +07:00
|
|
|
int err;
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
if (priv) {
|
|
|
|
/*
|
|
|
|
* The device may have been disabled. Re-enable it.
|
|
|
|
*/
|
2015-02-02 19:53:26 +07:00
|
|
|
err = pci_enable_device(pdev);
|
2008-10-13 16:36:11 +07:00
|
|
|
/* FIXME: We cannot simply error out here */
|
2007-10-29 20:28:17 +07:00
|
|
|
if (err)
|
2015-02-02 19:53:26 +07:00
|
|
|
dev_err(dev, "Unable to re-enable ports, trying to continue.\n");
|
2005-07-27 17:35:54 +07:00
|
|
|
pciserial_resume_ports(priv);
|
2005-04-17 05:20:36 +07:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
2006-09-26 06:51:27 +07:00
|
|
|
#endif
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2015-02-02 19:53:26 +07:00
|
|
|
static SIMPLE_DEV_PM_OPS(pciserial_pm_ops, pciserial_suspend_one,
|
|
|
|
pciserial_resume_one);
|
|
|
|
|
2017-07-23 17:01:06 +07:00
|
|
|
static const struct pci_device_id serial_pci_tbl[] = {
|
2009-01-27 18:51:16 +07:00
|
|
|
/* Advantech use PCI_DEVICE_ID_ADVANTECH_PCI3620 (0x3620) as 'PCI_SUBVENDOR_ID' */
|
|
|
|
{ PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI3620,
|
|
|
|
PCI_DEVICE_ID_ADVANTECH_PCI3620, 0x0001, 0, 0,
|
|
|
|
pbn_b2_8_921600 },
|
2014-05-20 03:30:51 +07:00
|
|
|
/* Advantech also use 0x3618 and 0xf618 */
|
|
|
|
{ PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCI3618,
|
|
|
|
PCI_DEVICE_ID_ADVANTECH_PCI3618, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_ADVANTECH, PCI_DEVICE_ID_ADVANTECH_PCIf618,
|
|
|
|
PCI_DEVICE_ID_ADVANTECH_PCI3618, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232, 0, 0,
|
|
|
|
pbn_b1_8_1382400 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232, 0, 0,
|
|
|
|
pbn_b1_4_1382400 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V960,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232, 0, 0,
|
|
|
|
pbn_b1_2_1382400 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_232, 0, 0,
|
|
|
|
pbn_b1_8_1382400 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_232, 0, 0,
|
|
|
|
pbn_b1_4_1382400 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_232, 0, 0,
|
|
|
|
pbn_b1_2_1382400 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485, 0, 0,
|
|
|
|
pbn_b1_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_4_4, 0, 0,
|
|
|
|
pbn_b1_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485, 0, 0,
|
|
|
|
pbn_b1_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH4_485_2_2, 0, 0,
|
|
|
|
pbn_b1_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_485, 0, 0,
|
|
|
|
pbn_b1_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH8_485_2_6, 0, 0,
|
|
|
|
pbn_b1_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH081101V1, 0, 0,
|
|
|
|
pbn_b1_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH041101V1, 0, 0,
|
|
|
|
pbn_b1_4_921600 },
|
2006-01-05 00:00:42 +07:00
|
|
|
{ PCI_VENDOR_ID_V3, PCI_DEVICE_ID_V3_V351,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_BH2_20MHZ, 0, 0,
|
|
|
|
pbn_b1_2_1250000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_2, 0, 0,
|
|
|
|
pbn_b0_2_1843200 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
|
|
|
|
PCI_SUBVENDOR_ID_CONNECT_TECH,
|
|
|
|
PCI_SUBDEVICE_ID_CONNECT_TECH_TITAN_4, 0, 0,
|
|
|
|
pbn_b0_4_1843200 },
|
2006-02-09 04:46:24 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
|
|
|
|
PCI_VENDOR_ID_AFAVLAB,
|
|
|
|
PCI_SUBDEVICE_ID_AFAVLAB_P061, 0, 0,
|
|
|
|
pbn_b0_4_1152000 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_U530,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_bt_1_115200 },
|
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM2,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM422,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_bt_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM232,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_COMM4,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_bt_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_COMM8,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_8_115200 },
|
2009-01-02 20:50:43 +07:00
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_7803,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_8_460800 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_SEALEVEL, PCI_DEVICE_ID_SEALEVEL_UCOMM8,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_8_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_GTEK_SERIAL2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_SPCOM200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_2_921600 },
|
|
|
|
/*
|
|
|
|
* VScom SPCOM800, from sl@s.pl
|
|
|
|
*/
|
2008-02-08 19:18:51 +07:00
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_SPCOM800,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_1077,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_4_921600 },
|
2008-07-24 11:29:46 +07:00
|
|
|
/* Unknown card - subdevice 0x1584 */
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_VENDOR_ID_PLX,
|
|
|
|
PCI_SUBDEVICE_ID_UNKNOWN_0x1584, 0, 0,
|
2013-03-04 04:35:06 +07:00
|
|
|
pbn_b2_4_115200 },
|
|
|
|
/* Unknown card - subdevice 0x1588 */
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_VENDOR_ID_PLX,
|
|
|
|
PCI_SUBDEVICE_ID_UNKNOWN_0x1588, 0, 0,
|
|
|
|
pbn_b2_8_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_KEYSPAN,
|
|
|
|
PCI_SUBDEVICE_ID_KEYSPAN_SX2, 0, 0,
|
|
|
|
pbn_panacom },
|
|
|
|
{ PCI_VENDOR_ID_PANACOM, PCI_DEVICE_ID_PANACOM_QUADMODEM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_panacom4 },
|
|
|
|
{ PCI_VENDOR_ID_PANACOM, PCI_DEVICE_ID_PANACOM_DUALMODEM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_panacom2 },
|
2007-02-10 16:46:05 +07:00
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
|
|
|
|
PCI_VENDOR_ID_ESDGMBH,
|
|
|
|
PCI_DEVICE_ID_ESDGMBH_CPCIASIO4, 0, 0,
|
|
|
|
pbn_b2_4_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_CHASE_PCIFAST,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBDEVICE_ID_CHASE_PCIFAST4, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_4_460800 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_CHASE_PCIFAST,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBDEVICE_ID_CHASE_PCIFAST8, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_8_460800 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_CHASE_PCIFAST,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBDEVICE_ID_CHASE_PCIFAST16, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_16_460800 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_CHASE_PCIFAST,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBDEVICE_ID_CHASE_PCIFAST16FMC, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_16_460800 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_CHASE_PCIRAS,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBDEVICE_ID_CHASE_PCIRAS4, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_4_460800 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_CHASE_PCIRAS,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBDEVICE_ID_CHASE_PCIRAS8, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b2_8_460800 },
|
2005-10-25 04:11:57 +07:00
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9050,
|
|
|
|
PCI_SUBVENDOR_ID_EXSYS,
|
|
|
|
PCI_SUBDEVICE_ID_EXSYS_4055, 0, 0,
|
2012-05-29 03:20:47 +07:00
|
|
|
pbn_b2_4_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Megawolf Romulus PCI Serial Card, from Mike Hudson
|
|
|
|
* (Exoray@isys.ca)
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_ROMULUS,
|
|
|
|
0x10b5, 0x106a, 0, 0,
|
|
|
|
pbn_plx_romulus },
|
2014-10-17 03:10:01 +07:00
|
|
|
/*
|
|
|
|
* EndRun Technologies. PCI express device range.
|
|
|
|
* EndRun PTP/1588 has 2 Native UARTs.
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_ENDRUN, PCI_DEVICE_ID_ENDRUN_1588,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_endrun_2_4000000 },
|
2012-11-29 05:33:00 +07:00
|
|
|
/*
|
|
|
|
* Quatech cards. These actually have configurable clocks but for
|
|
|
|
* now we just use the default.
|
|
|
|
*
|
|
|
|
* 100 series are RS232, 200 series RS422,
|
|
|
|
*/
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSC100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSC100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_2_115200 },
|
2012-11-29 05:33:00 +07:00
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSC100E,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSC200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSC200E,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSC200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_4_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_ESC100D,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_8_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_ESC100M,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_8_115200 },
|
2012-11-29 05:33:00 +07:00
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSCP100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSCP100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSCP200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSCP200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSCLP100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSCLP100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SSCLP100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_1_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_QSCLP200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_DSCLP200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_SSCLP200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_1_115200 },
|
|
|
|
{ PCI_VENDOR_ID_QUATECH, PCI_DEVICE_ID_QUATECH_ESCLP100,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_8_115200 },
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_SPECIALIX, PCI_DEVICE_ID_OXSEMI_16PCI954,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_VENDOR_ID_SPECIALIX, PCI_SUBDEVICE_ID_SPECIALIX_SPEED4,
|
|
|
|
0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_4_921600 },
|
2005-07-18 17:38:09 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_SUBVENDOR_ID_SIIG, PCI_SUBDEVICE_ID_SIIG_QUARTET_SERIAL,
|
|
|
|
0, 0,
|
2005-07-18 17:38:09 +07:00
|
|
|
pbn_b0_4_1152000 },
|
2010-10-27 01:20:48 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0x9505,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_921600 },
|
2005-07-28 01:43:55 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* The below card is a little controversial since it is the
|
|
|
|
* subject of a PCI vendor/device ID clash. (See
|
|
|
|
* www.ussg.iu.edu/hypermail/linux/kernel/0303.1/0516.html).
|
|
|
|
* For now just used the hex ID 0x950a.
|
|
|
|
*/
|
2009-01-02 20:46:58 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0x950a,
|
2012-09-22 07:04:34 +07:00
|
|
|
PCI_SUBVENDOR_ID_SIIG, PCI_SUBDEVICE_ID_SIIG_DUAL_00,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0x950a,
|
|
|
|
PCI_SUBVENDOR_ID_SIIG, PCI_SUBDEVICE_ID_SIIG_DUAL_30,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
2005-07-28 01:43:55 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0x950a,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_2_1130000 },
|
2009-06-11 18:41:57 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_C950,
|
|
|
|
PCI_VENDOR_ID_OXSEMI, PCI_SUBDEVICE_ID_OXSEMI_C950, 0, 0,
|
|
|
|
pbn_b0_1_921600 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI954,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI952,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_921600 },
|
2010-07-26 13:02:26 +07:00
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI958,
|
2016-01-14 22:08:10 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2010-07-26 13:02:26 +07:00
|
|
|
pbn_b2_8_1152000 },
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2008-10-21 19:48:58 +07:00
|
|
|
/*
|
|
|
|
* Oxford Semiconductor Inc. Tornado PCI express device range.
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc101, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc105, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc11b, /* OXPCIe952 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc11f, /* OXPCIe952 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc120, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc124, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc138, /* OXPCIe952 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc13d, /* OXPCIe952 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc140, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc141, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc144, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc145, /* OXPCIe952 1 Legacy UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc158, /* OXPCIe952 2 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc15d, /* OXPCIe952 2 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc208, /* OXPCIe954 4 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_4_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc20d, /* OXPCIe954 4 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_4_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc308, /* OXPCIe958 8 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_8_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc30d, /* OXPCIe958 8 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_8_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc40b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc40f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc41b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc41f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc42b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc42f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc43b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc43f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc44b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc44f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc45b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc45f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc46b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc46f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc47b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc47f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc48b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc48f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc49b, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc49f, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc4ab, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc4af, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc4bb, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc4bf, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc4cb, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, 0xc4cf, /* OXPCIe200 1 Native UART */
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
2008-10-21 19:50:14 +07:00
|
|
|
/*
|
|
|
|
* Mainpine Inc. IQ Express "Rev3" utilizing OxSemi Tornado
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 1 Port V.34 Super-G3 Fax */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x4001, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 2 Port V.34 Super-G3 Fax */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x4002, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 4 Port V.34 Super-G3 Fax */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x4004, 0, 0,
|
|
|
|
pbn_oxsemi_4_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_MAINPINE, 0x4000, /* IQ Express 8 Port V.34 Super-G3 Fax */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x4008, 0, 0,
|
|
|
|
pbn_oxsemi_8_4000000 },
|
2011-05-12 03:41:59 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Digi/IBM PCIe 2-port Async EIA-232 Adapter utilizing OxSemi Tornado
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_DIGI, PCIE_DEVICE_ID_NEO_2_OX_IBM,
|
|
|
|
PCI_SUBVENDOR_ID_IBM, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* SBS Technologies, Inc. P-Octal and PMC-OCTPRO cards,
|
|
|
|
* from skokodyn@yahoo.com
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
|
|
|
|
PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_OCTPRO232, 0, 0,
|
|
|
|
pbn_sbsxrsio },
|
|
|
|
{ PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
|
|
|
|
PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_OCTPRO422, 0, 0,
|
|
|
|
pbn_sbsxrsio },
|
|
|
|
{ PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
|
|
|
|
PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_POCTAL232, 0, 0,
|
|
|
|
pbn_sbsxrsio },
|
|
|
|
{ PCI_VENDOR_ID_SBSMODULARIO, PCI_DEVICE_ID_OCTPRO,
|
|
|
|
PCI_SUBVENDOR_ID_SBSMODULARIO, PCI_SUBDEVICE_ID_POCTAL422, 0, 0,
|
|
|
|
pbn_sbsxrsio },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Digitan DS560-558, from jimd@esoft.com
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_ATT, PCI_DEVICE_ID_ATT_VENUS_MODEM,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b1_1_115200 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Titan Electronic cards
|
|
|
|
* The 400L and 800L have a custom setup quirk.
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_100,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_1_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800B,
|
2008-02-08 19:18:51 +07:00
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2005-04-17 05:20:36 +07:00
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_100L,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_1_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200L,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400L,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800L,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_8_921600 },
|
serial: add support for various Titan PCI cards
serial: add support for various Titan PCI cards
Models: 200I, 400I, 800I, 400EH, 800EH, 800EHB,
100E, 200E, 400E, 800E, 200EI, 200EISI
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-06-04 14:58:18 +07:00
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200I,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b4_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400I,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b4_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800I,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b4_bt_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400EH,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800EH,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800EHB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_100E,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_1_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200E,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400E,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_4_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800E,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_8_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200EI,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200EISI,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi_2_4000000 },
|
2013-12-09 18:11:15 +07:00
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_200V3,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_921600 },
|
2011-12-27 21:47:37 +07:00
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_400V3,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_410V3,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800V3,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_TITAN, PCI_DEVICE_ID_TITAN_800V3B,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_10x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_1_460800 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_10x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_1_460800 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_10x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_1_460800 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_10x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_10x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_20x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_20x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_1S_20x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_2S_20x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_4S_20x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_4_921600 },
|
2006-02-03 03:15:09 +07:00
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_8S_20x_550,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_8S_20x_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_8_921600 },
|
|
|
|
{ PCI_VENDOR_ID_SIIG, PCI_DEVICE_ID_SIIG_8S_20x_850,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_8_921600 },
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Computone devices submitted by Doug McNash dmcnash@computone.com
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_PG,
|
|
|
|
PCI_SUBVENDOR_ID_COMPUTONE, PCI_SUBDEVICE_ID_COMPUTONE_PG4,
|
|
|
|
0, 0, pbn_computone_4 },
|
|
|
|
{ PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_PG,
|
|
|
|
PCI_SUBVENDOR_ID_COMPUTONE, PCI_SUBDEVICE_ID_COMPUTONE_PG8,
|
|
|
|
0, 0, pbn_computone_8 },
|
|
|
|
{ PCI_VENDOR_ID_COMPUTONE, PCI_DEVICE_ID_COMPUTONE_PG,
|
|
|
|
PCI_SUBVENDOR_ID_COMPUTONE, PCI_SUBDEVICE_ID_COMPUTONE_PG6,
|
|
|
|
0, 0, pbn_computone_6 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_OXSEMI, PCI_DEVICE_ID_OXSEMI_16PCI95N,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_oxsemi },
|
|
|
|
{ PCI_VENDOR_ID_TIMEDIA, PCI_DEVICE_ID_TIMEDIA_1889,
|
|
|
|
PCI_VENDOR_ID_TIMEDIA, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_1_921600 },
|
|
|
|
|
2013-01-28 15:49:20 +07:00
|
|
|
/*
|
2019-08-10 02:01:29 +07:00
|
|
|
* Sunix PCI serial boards
|
2013-01-28 15:49:20 +07:00
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
2019-08-10 02:01:29 +07:00
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0001, 0, 0,
|
|
|
|
pbn_sunix_pci_1s },
|
2013-01-28 15:49:20 +07:00
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
2019-08-10 02:01:29 +07:00
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0002, 0, 0,
|
|
|
|
pbn_sunix_pci_2s },
|
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0004, 0, 0,
|
|
|
|
pbn_sunix_pci_4s },
|
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0084, 0, 0,
|
|
|
|
pbn_sunix_pci_4s },
|
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0008, 0, 0,
|
|
|
|
pbn_sunix_pci_8s },
|
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0088, 0, 0,
|
|
|
|
pbn_sunix_pci_8s },
|
|
|
|
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999,
|
|
|
|
PCI_VENDOR_ID_SUNIX, 0x0010, 0, 0,
|
|
|
|
pbn_sunix_pci_16s },
|
2013-01-28 15:49:20 +07:00
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* AFAVLAB serial card, from Harald Welte <laforge@gnumonks.org>
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_P028,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_8_115200 },
|
|
|
|
{ PCI_VENDOR_ID_AFAVLAB, PCI_DEVICE_ID_AFAVLAB_P030,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_8_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_DSERIAL,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUATRO_A,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUATRO_B,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_115200 },
|
2009-11-12 05:26:42 +07:00
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUATTRO_A,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUATTRO_B,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_OCTO_A,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_4_460800 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_OCTO_B,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_4_460800 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_PORT_PLUS,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_460800 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUAD_A,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_460800 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_QUAD_B,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_2_460800 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_SSERIAL,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_1_115200 },
|
|
|
|
{ PCI_VENDOR_ID_LAVA, PCI_DEVICE_ID_LAVA_PORT_650,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_bt_1_460800 },
|
|
|
|
|
2006-12-13 21:45:46 +07:00
|
|
|
/*
|
|
|
|
* Korenix Jetcard F0/F1 cards (JC1204, JC1208, JC1404, JC1408).
|
|
|
|
* Cards are identified by their subsystem vendor IDs, which
|
|
|
|
* (in hex) match the model number.
|
|
|
|
*
|
|
|
|
* Note that JC140x are RS422/485 cards which require ox950
|
|
|
|
* ACR = 0x10, and as such are not currently fully supported.
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
|
|
|
|
0x1204, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
|
|
|
|
0x1208, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
/* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
|
|
|
|
0x1402, 0x0002, 0, 0,
|
|
|
|
pbn_b0_2_921600 }, */
|
|
|
|
/* { PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF0,
|
|
|
|
0x1404, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 }, */
|
|
|
|
{ PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF1,
|
|
|
|
0x1208, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
|
2009-12-22 07:26:48 +07:00
|
|
|
{ PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF2,
|
|
|
|
0x1204, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF2,
|
|
|
|
0x1208, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_KORENIX, PCI_DEVICE_ID_KORENIX_JETCARDF3,
|
|
|
|
0x1208, 0x0004, 0, 0,
|
|
|
|
pbn_b0_4_921600 },
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Dell Remote Access Card 4 - Tim_T_Murphy@Dell.com
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_DELL_RAC4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_1_1382400 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Dell Remote Access Card III - Tim_T_Murphy@Dell.com
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_DELL, PCI_DEVICE_ID_DELL_RACIII,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_1_1382400 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* RAStel 2 port modem, gerg@moreton.com.au
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_MORETON, PCI_DEVICE_ID_RASTEL_2PORT,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_bt_2_115200 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* EKF addition for i960 Boards form EKF with serial port
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_80960_RP,
|
|
|
|
0xE4BF, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_intel_i960 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Xircom Cardbus/Ethernet combos
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_XIRCOM, PCI_DEVICE_ID_XIRCOM_X3201_MDM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_115200 },
|
|
|
|
/*
|
|
|
|
* Xircom RBM56G cardbus modem - Dirk Arnold (temp entry)
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_XIRCOM, PCI_DEVICE_ID_XIRCOM_RBM56G,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Untested PCI modems, sent in from various folks...
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Elsa Model 56K PCI Modem, from Andreas Rath <arh@01019freenet.de>
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_ROCKWELL, 0x1004,
|
|
|
|
0x1048, 0x1500, 0, 0,
|
|
|
|
pbn_b1_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_SGI, PCI_DEVICE_ID_SGI_IOC3,
|
|
|
|
0xFF00, 0, 0, 0,
|
|
|
|
pbn_sgi_ioc3 },
|
|
|
|
|
|
|
|
/*
|
|
|
|
* HP Diva card
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA,
|
|
|
|
PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_RMP3, 0, 0,
|
|
|
|
pbn_b1_1_115200 },
|
|
|
|
{ PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_5_115200 },
|
|
|
|
{ PCI_VENDOR_ID_HP, PCI_DEVICE_ID_HP_DIVA_AUX,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b2_1_115200 },
|
|
|
|
|
2006-01-18 18:47:33 +07:00
|
|
|
{ PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b3_2_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
{ PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b3_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_DCI, PCI_DEVICE_ID_DCI_PCCOM8,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b3_8_115200 },
|
2015-08-03 12:28:13 +07:00
|
|
|
/*
|
|
|
|
* Pericom PI7C9X795[1248] Uno/Dual/Quad/Octal UART
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_PERICOM, PCI_DEVICE_ID_PERICOM_PI7C9X7951,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0, pbn_pericom_PI7C9X7951 },
|
|
|
|
{ PCI_VENDOR_ID_PERICOM, PCI_DEVICE_ID_PERICOM_PI7C9X7952,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0, pbn_pericom_PI7C9X7952 },
|
|
|
|
{ PCI_VENDOR_ID_PERICOM, PCI_DEVICE_ID_PERICOM_PI7C9X7954,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0, pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_PERICOM, PCI_DEVICE_ID_PERICOM_PI7C9X7958,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0, pbn_pericom_PI7C9X7958 },
|
2016-07-21 07:00:40 +07:00
|
|
|
/*
|
|
|
|
* ACCES I/O Products quad
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM_2SDB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_COM_2S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SDB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_COM_4S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM232_2DB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_COM232_2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM232_4DB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_COM232_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM_2SMDB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_COM_2SM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SMDB,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_COM_4SM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_1,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7951 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM422_2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM422_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM485_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_ICM_2S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM232_2,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_ICM232_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_MPCIE_ICM232_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7954 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_ICM_2SM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7952 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM422_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7954 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM485_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7954 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM422_8,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7958 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM485_8,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7958 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM232_4,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7954 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM232_8,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7958 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM_4SM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7954 },
|
2016-07-21 07:00:40 +07:00
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_COM_8SM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pericom_PI7C9X7958 },
|
|
|
|
{ PCI_VENDOR_ID_ACCESIO, PCI_DEVICE_ID_ACCESIO_PCIE_ICM_4SM,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
2019-02-13 12:43:11 +07:00
|
|
|
pbn_pericom_PI7C9X7954 },
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* Topic TP560 Data/Fax/Voice 56k modem (reported by Evan Clarke)
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_TOPIC, PCI_DEVICE_ID_TOPIC_TP560,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b0_1_115200 },
|
2007-08-23 04:01:14 +07:00
|
|
|
/*
|
|
|
|
* ITE
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_ITE, PCI_DEVICE_ID_ITE_8872,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0,
|
|
|
|
pbn_b1_bt_1_115200 },
|
2005-04-17 05:20:36 +07:00
|
|
|
|
2006-08-26 15:07:36 +07:00
|
|
|
/*
|
|
|
|
* IntaShield IS-200
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_IS200,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0, /* 135a.0811 */
|
|
|
|
pbn_b2_2_115200 },
|
2008-05-24 03:04:28 +07:00
|
|
|
/*
|
|
|
|
* IntaShield IS-400
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_IS400,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0, /* 135a.0dc0 */
|
|
|
|
pbn_b2_4_115200 },
|
2018-02-13 21:04:46 +07:00
|
|
|
/*
|
|
|
|
* BrainBoxes UC-260
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_INTASHIELD, 0x0D21,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_CLASS_COMMUNICATION_MULTISERIAL << 8, 0xffff00,
|
|
|
|
pbn_b2_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_INTASHIELD, 0x0E34,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_CLASS_COMMUNICATION_MULTISERIAL << 8, 0xffff00,
|
|
|
|
pbn_b2_4_115200 },
|
2007-02-10 16:46:05 +07:00
|
|
|
/*
|
|
|
|
* Perle PCI-RAS cards
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
|
|
|
|
PCI_SUBVENDOR_ID_PERLE, PCI_SUBDEVICE_ID_PCI_RAS4,
|
|
|
|
0, 0, pbn_b2_4_921600 },
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_9030,
|
|
|
|
PCI_SUBVENDOR_ID_PERLE, PCI_SUBDEVICE_ID_PCI_RAS8,
|
|
|
|
0, 0, pbn_b2_8_921600 },
|
2007-10-16 15:24:00 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Mainpine series cards: Fairly standard layout but fools
|
|
|
|
* parts of the autodetect in some cases and uses otherwise
|
|
|
|
* unmatched communications subclasses in the PCI Express case
|
|
|
|
*/
|
|
|
|
|
|
|
|
{ /* RockForceDUO */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0200,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* RockForceQUATRO */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0300,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* RockForceDUO+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0400,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* RockForceQUATRO+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0500,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* RockForce+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0600,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* RockForce+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0700,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* RockForceOCTO+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0800,
|
|
|
|
0, 0, pbn_b0_8_115200 },
|
|
|
|
{ /* RockForceDUO+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0C00,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* RockForceQUARTRO+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x0D00,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* RockForceOCTO+ */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x1D00,
|
|
|
|
0, 0, pbn_b0_8_115200 },
|
|
|
|
{ /* RockForceD1 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
{ /* RockForceF1 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2100,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
{ /* RockForceD2 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2200,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* RockForceF2 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2300,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* RockForceD4 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2400,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* RockForceF4 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2500,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* RockForceD8 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2600,
|
|
|
|
0, 0, pbn_b0_8_115200 },
|
|
|
|
{ /* RockForceF8 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x2700,
|
|
|
|
0, 0, pbn_b0_8_115200 },
|
|
|
|
{ /* IQ Express D1 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
{ /* IQ Express F1 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3100,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
{ /* IQ Express D2 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3200,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* IQ Express F2 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3300,
|
|
|
|
0, 0, pbn_b0_2_115200 },
|
|
|
|
{ /* IQ Express D4 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3400,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* IQ Express F4 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3500,
|
|
|
|
0, 0, pbn_b0_4_115200 },
|
|
|
|
{ /* IQ Express D8 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3C00,
|
|
|
|
0, 0, pbn_b0_8_115200 },
|
|
|
|
{ /* IQ Express F8 */
|
|
|
|
PCI_VENDOR_ID_MAINPINE, PCI_DEVICE_ID_MAINPINE_PBRIDGE,
|
|
|
|
PCI_VENDOR_ID_MAINPINE, 0x3D00,
|
|
|
|
0, 0, pbn_b0_8_115200 },
|
|
|
|
|
|
|
|
|
2007-08-23 04:01:55 +07:00
|
|
|
/*
|
|
|
|
* PA Semi PA6T-1682M on-chip UART
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_PASEMI, 0xa004,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_pasemi_1682M },
|
|
|
|
|
2009-04-06 23:32:07 +07:00
|
|
|
/*
|
|
|
|
* National Instruments
|
|
|
|
*/
|
2009-04-06 23:32:15 +07:00
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI23216,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_16_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2328,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_8_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2324I,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI2322I,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_23216,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_16_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_2328,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_8_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8420_2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_2_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8422_2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_4_115200 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8422_2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_b1_bt_2_115200 },
|
2009-04-06 23:32:07 +07:00
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_2 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_2 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_4 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_4 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_2328,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_8 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_2328,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_8 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8430_23216,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_16 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8430_23216,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_16 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8432_2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_2 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8432_2322,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_2 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8432_2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_4 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PCI8432_2324,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_4 },
|
2019-07-26 14:40:12 +07:00
|
|
|
{ PCI_VENDOR_ID_NI, PCIE_DEVICE_ID_NI_PXIE8430_2328,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_pxie_8 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCIE_DEVICE_ID_NI_PXIE8430_23216,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8430_pxie_16 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8431_4852,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_2 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8431_4854,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_4 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8431_4858,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_8 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCIE_DEVICE_ID_NI_PXIE8431_4858,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_pxie_8 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCIE_DEVICE_ID_NI_PXIE8431_48516,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_pxie_16 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8433_4852,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_2 },
|
|
|
|
{ PCI_VENDOR_ID_NI, PCI_DEVICE_ID_NI_PXI8433_4854,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ni8431_4 },
|
2009-04-06 23:32:07 +07:00
|
|
|
|
2008-02-05 13:27:49 +07:00
|
|
|
/*
|
|
|
|
* ADDI-DATA GmbH communication cards <info@addi-data.com>
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7500,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_4_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7420,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_2_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7300,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_1_115200 },
|
|
|
|
|
2013-07-16 22:14:39 +07:00
|
|
|
{ PCI_VENDOR_ID_AMCC,
|
2013-07-16 22:14:40 +07:00
|
|
|
PCI_DEVICE_ID_AMCC_ADDIDATA_APCI7800,
|
2008-02-05 13:27:49 +07:00
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b1_8_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7500_2,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_4_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7420_2,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_2_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7300_2,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7500_3,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_4_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7420_3,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_2_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7300_3,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCI7800_3,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_b0_8_115200 },
|
|
|
|
|
2009-10-27 06:50:04 +07:00
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCIe7500,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_ADDIDATA_PCIe_4_3906250 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCIe7420,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_ADDIDATA_PCIe_2_3906250 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCIe7300,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_ADDIDATA_PCIe_1_3906250 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_ADDIDATA,
|
|
|
|
PCI_DEVICE_ID_ADDIDATA_APCIe7800,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
pbn_ADDIDATA_PCIe_8_3906250 },
|
|
|
|
|
2009-01-15 20:30:34 +07:00
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9835,
|
|
|
|
PCI_VENDOR_ID_IBM, 0x0299,
|
|
|
|
0, 0, pbn_b0_bt_2_115200 },
|
|
|
|
|
2013-07-01 14:14:21 +07:00
|
|
|
/*
|
|
|
|
* other NetMos 9835 devices are most likely handled by the
|
|
|
|
* parport_serial driver, check drivers/parport/parport_serial.c
|
|
|
|
* before adding them here.
|
|
|
|
*/
|
|
|
|
|
parport/serial: add support for NetMos 9901 Multi-IO card
Add support for the PCI-Express NetMos 9901 Multi-IO card.
0001:06:00.0 Serial controller [0700]: NetMos Technology Device [9710:9901] (prog-if 02 [16550])
Subsystem: Device [a000:1000]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 65
Region 0: I/O ports at 0030 [size=8]
Region 1: Memory at 80105000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at 80104000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
Kernel modules: 8250_pci
0001:06:00.1 Serial controller [0700]: NetMos Technology Device [9710:9901] (prog-if 02 [16550])
Subsystem: Device [a000:1000]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 65
Region 0: I/O ports at 0020 [size=8]
Region 1: Memory at 80103000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at 80102000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: serial
Kernel modules: 8250_pci
0001:06:00.2 Parallel controller [0701]: NetMos Technology Device [9710:9901] (prog-if 03 [IEEE1284])
Subsystem: Device [a000:2000]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin C routed to IRQ 65
Region 0: I/O ports at 0010 [size=8]
Region 1: I/O ports at <unassigned>
Region 2: Memory at 80101000 (32-bit, non-prefetchable) [size=4K]
Region 4: Memory at 80100000 (32-bit, non-prefetchable) [size=4K]
Capabilities: <access denied>
Kernel driver in use: parport_pc
Kernel modules: parport_pc
[ 16.760181] PCI parallel port detected: 416c:0100, I/O at 0x812010(0x0), IRQ 65
[ 16.760225] parport0: PC-style at 0x812010, irq 65 [PCSPP,TRISTATE,EPP]
[ 16.851842] serial 0001:06:00.0: enabling device (0004 -> 0007)
[ 16.883776] 0001:06:00.0: ttyS0 at I/O 0x812030 (irq = 65) is a ST16650V2
[ 16.893832] serial 0001:06:00.1: enabling device (0004 -> 0007)
[ 16.926537] 0001:06:00.1: ttyS1 at I/O 0x812020 (irq = 65) is a ST16650V2
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-07-01 01:41:21 +07:00
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9901,
|
|
|
|
0xA000, 0x1000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
|
Basic support for Moschip 9900 family I/O chips
Add I/O based support for serial and parallel ports of the following
chips:
Vendor: Moschip (0x9710)
Parts (device IDs)
* 9900 (0x9900)
* 9904 (0x9904
* 9901 (0x9912, also sold as 9912)
* 9922 (0x9922)
On all chips but the 9900, a single port is provided per PCI subdevice
(subvendor-ID 0xA000, subdevice-IDs 0x1000 for serial, 0x2000 for
parallel with proper class codes). In cascading configurations, the
9900 provides two devices per subdevice, with subvendor-ID 0xA000 and
subdevice-IDs 0x30ps where p is the number of parallel ports and s the
number of serial ports.
Basic testing was only done on the serial part of a 9912 to the point
where it can be used for a serial kernel console, and advanced features
are completely untested. It is possible to reduce functionality of the
chips by adding a configuration EEPROM, and the datasheet [1] is
inconsistent w.r.t subdevices in the 4s+2s1p and 2s1p+4s
configurations. The subdevice-ID 0x3012 should likely read 0x3011 with
a serial port in function 3, which would be consistent with the BAR
layouts. For now, the drivers ignore subdevices with ID 0x1000 and no
class code.
The parallel ports are integrated in parport_serial even for purely
parallel parts to reduce the footprint of the patch.
[1] http://www.moschip.com/data/products/MCS9900/MCS9900_Datasheet.pdf
Signed-off-by: Nicos Gollan <gtdev@spearhead.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-05-06 02:00:37 +07:00
|
|
|
/* the 9901 is a rebranded 9912 */
|
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9912,
|
|
|
|
0xA000, 0x1000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9922,
|
|
|
|
0xA000, 0x1000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9904,
|
|
|
|
0xA000, 0x1000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9900,
|
|
|
|
0xA000, 0x1000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9900,
|
|
|
|
0xA000, 0x3002,
|
|
|
|
0, 0, pbn_NETMOS9900_2s_115200 },
|
|
|
|
|
2009-12-22 07:26:45 +07:00
|
|
|
/*
|
2011-07-12 11:53:13 +07:00
|
|
|
* Best Connectivity and Rosewill PCI Multi I/O cards
|
2009-12-22 07:26:45 +07:00
|
|
|
*/
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9865,
|
|
|
|
0xA000, 0x1000,
|
|
|
|
0, 0, pbn_b0_1_115200 },
|
|
|
|
|
2011-07-12 11:53:13 +07:00
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9865,
|
|
|
|
0xA000, 0x3002,
|
|
|
|
0, 0, pbn_b0_bt_2_115200 },
|
|
|
|
|
2009-12-22 07:26:45 +07:00
|
|
|
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9865,
|
|
|
|
0xA000, 0x3004,
|
|
|
|
0, 0, pbn_b0_bt_4_115200 },
|
2010-11-17 22:35:20 +07:00
|
|
|
/* Intel CE4100 */
|
|
|
|
{ PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_CE4100_UART,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_ce4100_1_115200 },
|
2016-01-29 21:49:47 +07:00
|
|
|
|
2011-05-19 01:38:30 +07:00
|
|
|
/*
|
|
|
|
* Cronyx Omega PCI
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_PLX, PCI_DEVICE_ID_PLX_CRONYX_OMEGA,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_omegapci },
|
2009-12-22 07:26:45 +07:00
|
|
|
|
2013-01-18 05:14:53 +07:00
|
|
|
/*
|
|
|
|
* Broadcom TruManage
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_BROADCOM_TRUMANAGE,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID, 0, 0,
|
|
|
|
pbn_brcm_trumanage },
|
|
|
|
|
2012-08-16 18:01:33 +07:00
|
|
|
/*
|
|
|
|
* AgeStar as-prs2-009
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_AGESTAR, PCI_DEVICE_ID_AGESTAR_9375,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0, pbn_b0_bt_2_115200 },
|
2012-09-04 22:21:06 +07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* WCH CH353 series devices: The 2S1P is handled by parport_serial
|
|
|
|
* so not listed here.
|
|
|
|
*/
|
|
|
|
{ PCI_VENDOR_ID_WCH, PCI_DEVICE_ID_WCH_CH353_4S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0, pbn_b0_bt_4_115200 },
|
|
|
|
|
|
|
|
{ PCI_VENDOR_ID_WCH, PCI_DEVICE_ID_WCH_CH353_2S1PF,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0, pbn_b0_bt_2_115200 },
|
|
|
|
|
2016-05-23 14:04:54 +07:00
|
|
|
{ PCI_VENDOR_ID_WCH, PCI_DEVICE_ID_WCH_CH355_4S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0, pbn_b0_bt_4_115200 },
|
|
|
|
|
2016-02-03 04:00:45 +07:00
|
|
|
{ PCIE_VENDOR_ID_WCH, PCIE_DEVICE_ID_WCH_CH382_2S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0, pbn_wch382_2 },
|
|
|
|
|
2014-12-30 20:16:50 +07:00
|
|
|
{ PCIE_VENDOR_ID_WCH, PCIE_DEVICE_ID_WCH_CH384_4S,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
0, 0, pbn_wch384_4 },
|
|
|
|
|
2013-10-18 00:44:26 +07:00
|
|
|
/* Fintek PCI serial cards */
|
|
|
|
{ PCI_DEVICE(0x1c29, 0x1104), .driver_data = pbn_fintek_4 },
|
|
|
|
{ PCI_DEVICE(0x1c29, 0x1108), .driver_data = pbn_fintek_8 },
|
|
|
|
{ PCI_DEVICE(0x1c29, 0x1112), .driver_data = pbn_fintek_12 },
|
|
|
|
|
2017-02-04 03:25:00 +07:00
|
|
|
/* MKS Tenta SCOM-080x serial cards */
|
|
|
|
{ PCI_DEVICE(0x1601, 0x0800), .driver_data = pbn_b0_4_1250000 },
|
|
|
|
{ PCI_DEVICE(0x1601, 0xa801), .driver_data = pbn_b0_4_1250000 },
|
|
|
|
|
2017-11-14 02:31:31 +07:00
|
|
|
/* Amazon PCI serial device */
|
|
|
|
{ PCI_DEVICE(0x1d0f, 0x8250), .driver_data = pbn_b0_1_115200 },
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
/*
|
|
|
|
* These entries match devices with class COMMUNICATION_SERIAL,
|
|
|
|
* COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL
|
|
|
|
*/
|
|
|
|
{ PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_CLASS_COMMUNICATION_SERIAL << 8,
|
|
|
|
0xffff00, pbn_default },
|
|
|
|
{ PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_CLASS_COMMUNICATION_MODEM << 8,
|
|
|
|
0xffff00, pbn_default },
|
|
|
|
{ PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_ANY_ID, PCI_ANY_ID,
|
|
|
|
PCI_CLASS_COMMUNICATION_MULTISERIAL << 8,
|
|
|
|
0xffff00, pbn_default },
|
|
|
|
{ 0, }
|
|
|
|
};
|
|
|
|
|
2011-06-01 00:06:28 +07:00
|
|
|
static pci_ers_result_t serial8250_io_error_detected(struct pci_dev *dev,
|
|
|
|
pci_channel_state_t state)
|
|
|
|
{
|
|
|
|
struct serial_private *priv = pci_get_drvdata(dev);
|
|
|
|
|
|
|
|
if (state == pci_channel_io_perm_failure)
|
|
|
|
return PCI_ERS_RESULT_DISCONNECT;
|
|
|
|
|
|
|
|
if (priv)
|
2016-11-29 04:34:42 +07:00
|
|
|
pciserial_detach_ports(priv);
|
2011-06-01 00:06:28 +07:00
|
|
|
|
|
|
|
pci_disable_device(dev);
|
|
|
|
|
|
|
|
return PCI_ERS_RESULT_NEED_RESET;
|
|
|
|
}
|
|
|
|
|
|
|
|
static pci_ers_result_t serial8250_io_slot_reset(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
rc = pci_enable_device(dev);
|
|
|
|
|
|
|
|
if (rc)
|
|
|
|
return PCI_ERS_RESULT_DISCONNECT;
|
|
|
|
|
|
|
|
pci_restore_state(dev);
|
|
|
|
pci_save_state(dev);
|
|
|
|
|
|
|
|
return PCI_ERS_RESULT_RECOVERED;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void serial8250_io_resume(struct pci_dev *dev)
|
|
|
|
{
|
|
|
|
struct serial_private *priv = pci_get_drvdata(dev);
|
2016-12-29 01:42:00 +07:00
|
|
|
struct serial_private *new;
|
2011-06-01 00:06:28 +07:00
|
|
|
|
2016-11-29 04:34:42 +07:00
|
|
|
if (!priv)
|
|
|
|
return;
|
|
|
|
|
2016-12-29 01:42:00 +07:00
|
|
|
new = pciserial_init_ports(dev, priv->board);
|
|
|
|
if (!IS_ERR(new)) {
|
|
|
|
pci_set_drvdata(dev, new);
|
|
|
|
kfree(priv);
|
2016-11-29 04:34:42 +07:00
|
|
|
}
|
2011-06-01 00:06:28 +07:00
|
|
|
}
|
|
|
|
|
2012-09-07 23:33:17 +07:00
|
|
|
static const struct pci_error_handlers serial8250_err_handler = {
|
2011-06-01 00:06:28 +07:00
|
|
|
.error_detected = serial8250_io_error_detected,
|
|
|
|
.slot_reset = serial8250_io_slot_reset,
|
|
|
|
.resume = serial8250_io_resume,
|
|
|
|
};
|
|
|
|
|
2005-04-17 05:20:36 +07:00
|
|
|
static struct pci_driver serial_pci_driver = {
|
|
|
|
.name = "serial",
|
|
|
|
.probe = pciserial_init_one,
|
2012-11-20 01:21:34 +07:00
|
|
|
.remove = pciserial_remove_one,
|
2015-02-02 19:53:26 +07:00
|
|
|
.driver = {
|
|
|
|
.pm = &pciserial_pm_ops,
|
|
|
|
},
|
2005-04-17 05:20:36 +07:00
|
|
|
.id_table = serial_pci_tbl,
|
2011-06-01 00:06:28 +07:00
|
|
|
.err_handler = &serial8250_err_handler,
|
2005-04-17 05:20:36 +07:00
|
|
|
};
|
|
|
|
|
2012-10-26 22:04:22 +07:00
|
|
|
module_pci_driver(serial_pci_driver);
|
2005-04-17 05:20:36 +07:00
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|
|
|
|
MODULE_DESCRIPTION("Generic 8250/16x50 PCI serial probe module");
|
|
|
|
MODULE_DEVICE_TABLE(pci, serial_pci_tbl);
|