Skip to content

Commit

Permalink
parport: parport_serial: Add Brainboxes device IDs and geometry
Browse files Browse the repository at this point in the history
Add device IDs for the Brainboxes UC-203, UC-257, UC-414, UC-475,
IS-300/IS-500 and PX-263/PX-295 and define the relevant "geometry"
for the cards.
This patch requires part 1 of this series.

Cc:  <stable@vger.kernel.org>
Signed-off-by: Cameron Williams <cang1@live.co.uk>
Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Link: https://lore.kernel.org/r/AS4PR02MB7903A4094564BE28F1F926A6C4A6A@AS4PR02MB7903.eurprd02.prod.outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Cameron Williams authored and gregkh committed Dec 15, 2023
1 parent 65fde13 commit 6aa1fc5
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions drivers/parport/parport_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,38 @@ static struct pci_device_id parport_serial_pci_tbl[] = {
{ PCI_VENDOR_ID_SUNIX, PCI_DEVICE_ID_SUNIX_1999, PCI_VENDOR_ID_SUNIX,
0x0104, 0, 0, sunix_5099a },

/* Brainboxes UC-203 */
{ PCI_VENDOR_ID_INTASHIELD, 0x0bc1,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },
{ PCI_VENDOR_ID_INTASHIELD, 0x0bc2,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },

/* Brainboxes UC-257 */
{ PCI_VENDOR_ID_INTASHIELD, 0x0861,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },
{ PCI_VENDOR_ID_INTASHIELD, 0x0862,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },
{ PCI_VENDOR_ID_INTASHIELD, 0x0863,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },

/* Brainboxes UC-414 */
{ PCI_VENDOR_ID_INTASHIELD, 0x0e61,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc414 },

/* Brainboxes UC-475 */
{ PCI_VENDOR_ID_INTASHIELD, 0x0981,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },
{ PCI_VENDOR_ID_INTASHIELD, 0x0982,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc257 },

/* Brainboxes IS-300/IS-500 */
{ PCI_VENDOR_ID_INTASHIELD, 0x0da0,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_is300 },

/* Brainboxes PX-263/PX-295 */
{ PCI_VENDOR_ID_INTASHIELD, 0x402c,
PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_px263 },

{ 0, } /* terminate list */
};
MODULE_DEVICE_TABLE(pci,parport_serial_pci_tbl);
Expand Down Expand Up @@ -550,6 +582,30 @@ static struct pciserial_board pci_parport_serial_boards[] = {
.base_baud = 921600,
.uart_offset = 0x8,
},
[brainboxes_uc257] = {
.flags = FL_BASE2,
.num_ports = 2,
.base_baud = 115200,
.uart_offset = 8,
},
[brainboxes_is300] = {
.flags = FL_BASE2,
.num_ports = 1,
.base_baud = 115200,
.uart_offset = 8,
},
[brainboxes_uc414] = {
.flags = FL_BASE2,
.num_ports = 4,
.base_baud = 115200,
.uart_offset = 8,
},
[brainboxes_px263] = {
.flags = FL_BASE2,
.num_ports = 4,
.base_baud = 921600,
.uart_offset = 8,
},
};

struct parport_serial_private {
Expand Down

0 comments on commit 6aa1fc5

Please sign in to comment.