[MLX4] added two new fields to IB interface: SubVendorID & SubSystemID. [mlnx: 4417]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 14 Jun 2009 09:41:23 +0000 (09:41 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 14 Jun 2009 09:41:23 +0000 (09:41 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2252 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/bus/drv/drv.c
hw/mlx4/kernel/inc/l2w.h

index f10980a..70b46ba 100644 (file)
@@ -724,6 +724,8 @@ __get_resources(
        //\r
        pdev->ven_id = pdev->pci_cfg_space.VendorID;\r
        pdev->dev_id = pdev->pci_cfg_space.DeviceID;\r
+       pdev->sub_vendor_id = pdev->pci_cfg_space.u.type0.SubVendorID;\r
+       pdev->sub_system_id = pdev->pci_cfg_space.u.type0.SubSystemID;\r
        pdev->p_self_do = WdfDeviceWdmGetDeviceObject(p_fdo->FdoDevice);\r
        pdev->pdo = WdfDeviceWdmGetPhysicalDevice(p_fdo->FdoDevice);\r
        \r
index 9f8b564..1b9e045 100644 (file)
@@ -187,6 +187,8 @@ struct pci_dev
        ULONG                                                   version;
        int                                                     legacy_connect;
 #endif 
+       USHORT                                                  sub_vendor_id;
+       USHORT                                                  sub_system_id;
 };
 
 /* DPC */