diff options
-rw-r--r-- | drivers/serial/8250_pci.c | 133 | ||||
-rw-r--r-- | include/linux/pci_ids.h | 17 |
2 files changed, 150 insertions, 0 deletions
diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index ceb03c9e749f..0a4ac2b6eb5a 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c | |||
@@ -106,6 +106,32 @@ setup_port(struct serial_private *priv, struct uart_port *port, | |||
106 | } | 106 | } |
107 | 107 | ||
108 | /* | 108 | /* |
109 | * ADDI-DATA GmbH communication cards <info@addi-data.com> | ||
110 | */ | ||
111 | static int addidata_apci7800_setup(struct serial_private *priv, | ||
112 | struct pciserial_board *board, | ||
113 | struct uart_port *port, int idx) | ||
114 | { | ||
115 | unsigned int bar = 0, offset = board->first_offset; | ||
116 | bar = FL_GET_BASE(board->flags); | ||
117 | |||
118 | if (idx < 2) { | ||
119 | offset += idx * board->uart_offset; | ||
120 | } else if ((idx >= 2) && (idx < 4)) { | ||
121 | bar += 1; | ||
122 | offset += ((idx - 2) * board->uart_offset); | ||
123 | } else if ((idx >= 4) && (idx < 6)) { | ||
124 | bar += 2; | ||
125 | offset += ((idx - 4) * board->uart_offset); | ||
126 | } else if (idx >= 6) { | ||
127 | bar += 3; | ||
128 | offset += ((idx - 6) * board->uart_offset); | ||
129 | } | ||
130 | |||
131 | return setup_port(priv, port, bar, offset, board->reg_shift); | ||
132 | } | ||
133 | |||
134 | /* | ||
109 | * AFAVLAB uses a different mixture of BARs and offsets | 135 | * AFAVLAB uses a different mixture of BARs and offsets |
110 | * Not that ugly ;) -- HW | 136 | * Not that ugly ;) -- HW |
111 | */ | 137 | */ |
@@ -752,6 +778,16 @@ pci_default_setup(struct serial_private *priv, struct pciserial_board *board, | |||
752 | */ | 778 | */ |
753 | static struct pci_serial_quirk pci_serial_quirks[] = { | 779 | static struct pci_serial_quirk pci_serial_quirks[] = { |
754 | /* | 780 | /* |
781 | * ADDI-DATA GmbH communication cards <info@addi-data.com> | ||
782 | */ | ||
783 | { | ||
784 | .vendor = PCI_VENDOR_ID_ADDIDATA_OLD, | ||
785 | .device = PCI_DEVICE_ID_ADDIDATA_APCI7800, | ||
786 | .subvendor = PCI_ANY_ID, | ||
787 | .subdevice = PCI_ANY_ID, | ||
788 | .setup = addidata_apci7800_setup, | ||
789 | }, | ||
790 | /* | ||
755 | * AFAVLAB cards - these may be called via parport_serial | 791 | * AFAVLAB cards - these may be called via parport_serial |
756 | * It is not clear whether this applies to all products. | 792 | * It is not clear whether this applies to all products. |
757 | */ | 793 | */ |
@@ -1179,6 +1215,12 @@ static struct pciserial_board pci_boards[] __devinitdata = { | |||
1179 | .base_baud = 115200, | 1215 | .base_baud = 115200, |
1180 | .uart_offset = 8, | 1216 | .uart_offset = 8, |
1181 | }, | 1217 | }, |
1218 | [pbn_b0_8_115200] = { | ||
1219 | .flags = FL_BASE0, | ||
1220 | .num_ports = 8, | ||
1221 | .base_baud = 115200, | ||
1222 | .uart_offset = 8, | ||
1223 | }, | ||
1182 | 1224 | ||
1183 | [pbn_b0_1_921600] = { | 1225 | [pbn_b0_1_921600] = { |
1184 | .flags = FL_BASE0, | 1226 | .flags = FL_BASE0, |
@@ -2697,6 +2739,97 @@ static struct pci_device_id serial_pci_tbl[] = { | |||
2697 | pbn_pasemi_1682M }, | 2739 | pbn_pasemi_1682M }, |
2698 | 2740 | ||
2699 | /* | 2741 | /* |
2742 | * ADDI-DATA GmbH communication cards <info@addi-data.com> | ||
2743 | */ | ||
2744 | { PCI_VENDOR_ID_ADDIDATA, | ||
2745 | PCI_DEVICE_ID_ADDIDATA_APCI7500, | ||
2746 | PCI_ANY_ID, | ||
2747 | PCI_ANY_ID, | ||
2748 | 0, | ||
2749 | 0, | ||
2750 | pbn_b0_4_115200 }, | ||
2751 | |||
2752 | { PCI_VENDOR_ID_ADDIDATA, | ||
2753 | PCI_DEVICE_ID_ADDIDATA_APCI7420, | ||
2754 | PCI_ANY_ID, | ||
2755 | PCI_ANY_ID, | ||
2756 | 0, | ||
2757 | 0, | ||
2758 | pbn_b0_2_115200 }, | ||
2759 | |||
2760 | { PCI_VENDOR_ID_ADDIDATA, | ||
2761 | PCI_DEVICE_ID_ADDIDATA_APCI7300, | ||
2762 | PCI_ANY_ID, | ||
2763 | PCI_ANY_ID, | ||
2764 | 0, | ||
2765 | 0, | ||
2766 | pbn_b0_1_115200 }, | ||
2767 | |||
2768 | { PCI_VENDOR_ID_ADDIDATA_OLD, | ||
2769 | PCI_DEVICE_ID_ADDIDATA_APCI7800, | ||
2770 | PCI_ANY_ID, | ||
2771 | PCI_ANY_ID, | ||
2772 | 0, | ||
2773 | 0, | ||
2774 | pbn_b1_8_115200 }, | ||
2775 | |||
2776 | { PCI_VENDOR_ID_ADDIDATA, | ||
2777 | PCI_DEVICE_ID_ADDIDATA_APCI7500_2, | ||
2778 | PCI_ANY_ID, | ||
2779 | PCI_ANY_ID, | ||
2780 | 0, | ||
2781 | 0, | ||
2782 | pbn_b0_4_115200 }, | ||
2783 | |||
2784 | { PCI_VENDOR_ID_ADDIDATA, | ||
2785 | PCI_DEVICE_ID_ADDIDATA_APCI7420_2, | ||
2786 | PCI_ANY_ID, | ||
2787 | PCI_ANY_ID, | ||
2788 | 0, | ||
2789 | 0, | ||
2790 | pbn_b0_2_115200 }, | ||
2791 | |||
2792 | { PCI_VENDOR_ID_ADDIDATA, | ||
2793 | PCI_DEVICE_ID_ADDIDATA_APCI7300_2, | ||
2794 | PCI_ANY_ID, | ||
2795 | PCI_ANY_ID, | ||
2796 | 0, | ||
2797 | 0, | ||
2798 | pbn_b0_1_115200 }, | ||
2799 | |||
2800 | { PCI_VENDOR_ID_ADDIDATA, | ||
2801 | PCI_DEVICE_ID_ADDIDATA_APCI7500_3, | ||
2802 | PCI_ANY_ID, | ||
2803 | PCI_ANY_ID, | ||
2804 | 0, | ||
2805 | 0, | ||
2806 | pbn_b0_4_115200 }, | ||
2807 | |||
2808 | { PCI_VENDOR_ID_ADDIDATA, | ||
2809 | PCI_DEVICE_ID_ADDIDATA_APCI7420_3, | ||
2810 | PCI_ANY_ID, | ||
2811 | PCI_ANY_ID, | ||
2812 | 0, | ||
2813 | 0, | ||
2814 | pbn_b0_2_115200 }, | ||
2815 | |||
2816 | { PCI_VENDOR_ID_ADDIDATA, | ||
2817 | PCI_DEVICE_ID_ADDIDATA_APCI7300_3, | ||
2818 | PCI_ANY_ID, | ||
2819 | PCI_ANY_ID, | ||
2820 | 0, | ||
2821 | 0, | ||
2822 | pbn_b0_1_115200 }, | ||
2823 | |||
2824 | { PCI_VENDOR_ID_ADDIDATA, | ||
2825 | PCI_DEVICE_ID_ADDIDATA_APCI7800_3, | ||
2826 | PCI_ANY_ID, | ||
2827 | PCI_ANY_ID, | ||
2828 | 0, | ||
2829 | 0, | ||
2830 | pbn_b0_8_115200 }, | ||
2831 | |||
2832 | /* | ||
2700 | * These entries match devices with class COMMUNICATION_SERIAL, | 2833 | * These entries match devices with class COMMUNICATION_SERIAL, |
2701 | * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL | 2834 | * COMMUNICATION_MODEM or COMMUNICATION_MULTISERIAL |
2702 | */ | 2835 | */ |
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 41f6f28690f6..39d32837265b 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h | |||
@@ -2043,6 +2043,23 @@ | |||
2043 | #define PCI_VENDOR_ID_QUICKNET 0x15e2 | 2043 | #define PCI_VENDOR_ID_QUICKNET 0x15e2 |
2044 | #define PCI_DEVICE_ID_QUICKNET_XJ 0x0500 | 2044 | #define PCI_DEVICE_ID_QUICKNET_XJ 0x0500 |
2045 | 2045 | ||
2046 | /* | ||
2047 | * ADDI-DATA GmbH communication cards <info@addi-data.com> | ||
2048 | */ | ||
2049 | #define PCI_VENDOR_ID_ADDIDATA_OLD 0x10E8 | ||
2050 | #define PCI_VENDOR_ID_ADDIDATA 0x15B8 | ||
2051 | #define PCI_DEVICE_ID_ADDIDATA_APCI7500 0x7000 | ||
2052 | #define PCI_DEVICE_ID_ADDIDATA_APCI7420 0x7001 | ||
2053 | #define PCI_DEVICE_ID_ADDIDATA_APCI7300 0x7002 | ||
2054 | #define PCI_DEVICE_ID_ADDIDATA_APCI7800 0x818E | ||
2055 | #define PCI_DEVICE_ID_ADDIDATA_APCI7500_2 0x7009 | ||
2056 | #define PCI_DEVICE_ID_ADDIDATA_APCI7420_2 0x700A | ||
2057 | #define PCI_DEVICE_ID_ADDIDATA_APCI7300_2 0x700B | ||
2058 | #define PCI_DEVICE_ID_ADDIDATA_APCI7500_3 0x700C | ||
2059 | #define PCI_DEVICE_ID_ADDIDATA_APCI7420_3 0x700D | ||
2060 | #define PCI_DEVICE_ID_ADDIDATA_APCI7300_3 0x700E | ||
2061 | #define PCI_DEVICE_ID_ADDIDATA_APCI7800_3 0x700F | ||
2062 | |||
2046 | #define PCI_VENDOR_ID_PDC 0x15e9 | 2063 | #define PCI_VENDOR_ID_PDC 0x15e9 |
2047 | 2064 | ||
2048 | #define PCI_VENDOR_ID_FARSITE 0x1619 | 2065 | #define PCI_VENDOR_ID_FARSITE 0x1619 |