[MLX4] 1) added support for sending large multi-parameter messages to System Event...
[mirror/winof/.git] / hw / mlx4 / kernel / inc / l2w.h
index 59a5132..c437887 100644 (file)
@@ -170,6 +170,9 @@ struct pci_dev
        // driver: various objects and info
        USHORT                                                  ven_id;
        USHORT                                                  dev_id;
+       USHORT                                                  sub_vendor_id;
+       USHORT                                                  sub_system_id;
+       UCHAR                                                   revision_id;
        DMA_ADAPTER             *                               p_dma_adapter;  /* HCA adapter object */
        DEVICE_OBJECT   *                               p_self_do;              /* mlx4_bus's FDO */
        DEVICE_OBJECT   *                               pdo;                    /* mlx4_bus's PDO */
@@ -178,6 +181,9 @@ struct pci_dev
        // mlx4_net: various objects and info   
        struct mlx4_dev *                               dev;
        volatile long                                   dpc_lock;
+       PUCHAR                                                  vpd;
+       int                                                             vpd_size;
+       WCHAR                                                   location[36];           /* bus+func+dev */
 #ifdef USE_WDM_INTERRUPTS
        PKINTERRUPT                                             int_obj;                /* HCA interrupt object */
        KSPIN_LOCK                                              isr_lock;               /* lock for the ISR */
@@ -334,7 +340,7 @@ static inline int mlx4_is_livefish(struct mlx4_dev *dev)
 
 static inline int mlx4_is_barred(struct mlx4_dev *dev)
 {
-       return dev->flags & (MLX4_FLAG_RESET_CLIENT | MLX4_FLAG_RESET_DRIVER);
+       return dev->flags &  MLX4_FLAG_RESET_DRIVER;
 }
 
 static inline int mlx4_is_in_reset(struct mlx4_dev *dev)