mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 02:17:36 -04:00
gpib: Add attach routine for pci_xl board
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1d0e413791
commit
b9e4f6e9b2
@@ -350,6 +350,7 @@ static irqreturn_t ines_interrupt(struct gpib_board *board)
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user