Re: [PATCH 2/4] parport_pc: Add support for Brainboxes parallel cards

From: Cameron Williams
Date: Sat Sep 23 2023 - 10:56:21 EST


Please disregard this patch. It will be re-sent using raw hexadecimal IDs
for the device IDs.

On Thu, Sep 21, 2023 at 10:10:07PM +0100, Cameron Williams wrote:
> Add support for the Intashield IX-500/IX550
> Brainboxes UC-146/UC-157, PX-146/PX-157, PX-203
> and PX-475
>
> Signed-off-by: Cameron Williams <cang1@xxxxxxxxxx>
> ---
> drivers/parport/parport_pc.c | 21 +++++++++++++++++++++
> 1 file changed, 21 insertions(+)
>
> diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
> index 1f236aaf7867..95bb5134696f 100644
> --- a/drivers/parport/parport_pc.c
> +++ b/drivers/parport/parport_pc.c
> @@ -2658,6 +2658,8 @@ enum parport_pc_pci_cards {
> asix_ax99100,
> quatech_sppxp100,
> wch_ch382l,
> + brainboxes_uc146,
> + brainboxes_px203,
> };
>
>
> @@ -2737,6 +2739,8 @@ static struct parport_pc_pci {
> /* asix_ax99100 */ { 1, { { 0, 1 }, } },
> /* quatech_sppxp100 */ { 1, { { 0, 1 }, } },
> /* wch_ch382l */ { 1, { { 2, -1 }, } },
> + /* brainboxes_uc146 */ { 1, { { 3, -1 }, } },
> + /* brainboxes_px203 */ { 1, { { 0, -1 }, } },
> };
>
> static const struct pci_device_id parport_pc_pci_tbl[] = {
> @@ -2833,6 +2837,23 @@ static const struct pci_device_id parport_pc_pci_tbl[] = {
> PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 },
> /* WCH CH382L PCI-E single parallel port card */
> { 0x1c00, 0x3050, 0x1c00, 0x3050, 0, 0, wch_ch382l },
> + /* Brainboxes IX-500/550 */
> + { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_IX500,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport },
> + /* Brainboxes UC-146/UC-157 */
> + { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_UC146,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc146 },
> + { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_UC146R3,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc146 },
> + /* Brainboxes PX-146/PX-157 */
> + { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_PX146,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport },
> + /* Brainboxes PX-203 */
> + { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_PX257LPT,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_px203 },
> + /* Brainboxes PX-475 */
> + { PCI_VENDOR_ID_INTASHIELD, PCI_DEVICE_ID_INTASHIELD_PX475LPT,
> + PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport },
> { 0, } /* terminate list */
> };
> MODULE_DEVICE_TABLE(pci, parport_pc_pci_tbl);
> --
> 2.42.0
>