[MLX4] MLX4_HCA is returned to its original WDF form. [mlnx: 4103]
[mirror/winof/.git] / hw / mlx4 / kernel / hca / drv.h
index 0b42e6a..732d9fd 100644 (file)
@@ -150,16 +150,19 @@ typedef struct _FDO_DEVICE_DATA
        *               WDF DATA         \r
        * ------------------------------------------------ */\r
        WDFDEVICE                                       FdoDevice;\r
+       DEVICE_OBJECT                   *       p_dev_obj;              /* WDM dev object */\r
 #endif\r
 \r
        HCA_WMI_STD_DATA                        WmiData;\r
 \r
+#ifdef USE_WDM_FRAMEWORK\r
        /* -------------------------------------------------\r
        *               PNP DATA         \r
        * ------------------------------------------------ */\r
        void                                    *       pnp_ifc_entry;                  /* Notification entry for PnP interface events. */\r
        void                                    *       pnp_target_entry;       /* Notification entry for PnP target events. */\r
        PNP_DEVICE_STATE                        pnpState; /* state for PnP Manager */\r
+#endif \r
 \r
        /* -------------------------------------------------\r
        *               IBAL DATA        \r
@@ -167,9 +170,11 @@ typedef struct _FDO_DEVICE_DATA
        /* Number of references on the upper interface. */\r
        atomic32_t                                      n_hca_ifc_ref;\r
        hca_reg_state_t                         state;                          /* State for tracking registration with AL */\r
+#ifdef USE_WDM_FRAMEWORK\r
        DEVICE_OBJECT                   *       p_al_dev;               /* IB_AL FDO */\r
        FILE_OBJECT                             *       p_al_file_obj;  /* IB_AL file object */\r
        UNICODE_STRING                          al_sym_name;    /* IB_AL symbolic name */\r
+#endif \r
 \r
        /* -------------------------------------------------\r
        *               SHIM DATA        \r
@@ -300,7 +305,7 @@ EvtDriverUnload(
        );\r
 \r
 NTSTATUS\r
-EvtDeviceAdd(\r
+EvtDriverDeviceAdd(\r
        IN WDFDRIVER Driver,\r
        IN PWDFDEVICE_INIT Device\r
        );\r