]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
gpib: Add enums for INES 72130 based cards
authorDave Penkler <dpenkler@gmail.com>
Sat, 11 Apr 2026 17:25:06 +0000 (19:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 May 2026 11:47:33 +0000 (13:47 +0200)
Add Chip type enum
Add offset for 72130 bus status register
Add bit masks for line state in 72130 bus status register

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

index 6ad57e9a121669a65a22723bd6eabff944f665ee..22af596828700c1c57702a3ad289305971c61657 100644 (file)
@@ -21,6 +21,7 @@ enum ines_pci_chip {
        PCI_CHIP_AMCC5920,
        PCI_CHIP_QUANCOM,
        PCI_CHIP_QUICKLOGIC5030,
+       PCI_CHIP_INES_72130,
 };
 
 struct ines_priv {
@@ -162,4 +163,19 @@ enum ines_auxd_bits {
        INES_T6_50us = 0x10,
 };
 
+enum ines72130_regs {
+       BUS_STATUS_REG = 0xc,
+};
+
+enum ines_72130_bus_status_bits  {
+       BSR_NRFD_BIT = 0x1,
+       BSR_NDAC_BIT = 0x2,
+       BSR_DAV_BIT = 0x4,
+       BSR_EOI_BIT = 0x8,
+       BSR_SRQ_BIT = 0x10,
+       BSR_ATN_BIT = 0x20,
+       BSR_REN_BIT = 0x40,
+       BSR_IFC_BIT = 0x80,
+};
+
 #endif // _INES_GPIB_H