]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpib: Add attach routine for pci_xl board
authorDave Penkler <dpenkler@gmail.com>
Sat, 11 Apr 2026 17:25:10 +0000 (19:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 May 2026 11:47:33 +0000 (13:47 +0200)
Add new attach routine for 72130 based boards.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://patch.msgid.link/20260411172511.26546-6-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpib/ines/ines_gpib.c

index 118e6c7b0ff1a092c6ecfcdff83b0fa31c7253dc..af9693c33b238f035813cdf4b6cfb37813824cfc 100644 (file)
@@ -350,6 +350,7 @@ out:
 }
 
 static int ines_pci_attach(struct gpib_board *board, const struct gpib_board_config *config);
+static int ines_pci_xl_attach(struct gpib_board *board, const struct gpib_board_config *config);
 static int ines_pci_accel_attach(struct gpib_board *board, const struct gpib_board_config *config);
 static int ines_isa_attach(struct gpib_board *board, const struct gpib_board_config *config);
 
@@ -932,6 +933,24 @@ static int ines_pci_attach(struct gpib_board *board, const struct gpib_board_con
        return 0;
 }
 
+static int ines_pci_xl_attach(struct gpib_board *board, const struct gpib_board_config *config)
+{
+       struct ines_priv *ines_priv;
+       struct nec7210_priv *nec_priv;
+       int retval;
+
+       retval = ines_common_pci_attach(board, config);
+       if (retval < 0)
+               return retval;
+
+       ines_priv = board->private_data;
+       ines_priv->pci_chip_type = PCI_CHIP_INES_72130;
+       nec_priv = &ines_priv->nec7210_priv;
+       nec7210_board_online(nec_priv, board);
+
+       return 0;
+}
+
 static int ines_pci_accel_attach(struct gpib_board *board, const struct gpib_board_config *config)
 {
        struct ines_priv *ines_priv;