win-pvdrivers

changeset 166:c86476f89561 0.6.5

Updates to xenhide to better detect the pci ide adapter
author James Harper <james.harper@bendigoit.com.au>
date Mon Feb 04 09:10:34 2008 +1100 (2008-02-04)
parents dd8ad388519e
children e21fa8b6df5b
files common.inc xenhide/xenhide.c
line diff
     1.1 --- a/common.inc	Sun Feb 03 22:18:40 2008 +1100
     1.2 +++ b/common.inc	Mon Feb 04 09:10:34 2008 +1100
     1.3 @@ -1,4 +1,4 @@
     1.4 -VERSION=0.6.4.0
     1.5 +VERSION=0.6.5.1
     1.6  TARGETPATH=..\Target\$(DDK_TARGET_OS)
     1.7  KMDF_VERSION=1
     1.8  MSC_WARNING_LEVEL=/W4
     2.1 --- a/xenhide/xenhide.c	Sun Feb 03 22:18:40 2008 +1100
     2.2 +++ b/xenhide/xenhide.c	Mon Feb 04 09:10:34 2008 +1100
     2.3 @@ -272,28 +272,30 @@ XenHide_IoCompletion(PDEVICE_OBJECT Devi
     2.4      if (Offset != 0)
     2.5        Relations->Objects[i - Offset] = Relations->Objects[i];
     2.6  
     2.7 -    Length = sizeof(Buffer);
     2.8 -    IoGetDeviceProperty(Relations->Objects[i - Offset], DevicePropertyDeviceDescription, Length, Buffer, &Length);
     2.9 +//    Length = sizeof(Buffer);
    2.10 +//    IoGetDeviceProperty(Relations->Objects[i - Offset], DevicePropertyDeviceDescription, Length, Buffer, &Length);
    2.11 +//    KdPrint((__DRIVER_NAME "     %3d - %ws\n", i, Buffer));
    2.12 +
    2.13 +//    Length = sizeof(Buffer);
    2.14 +//    IoGetDeviceProperty(Relations->Objects[i - Offset], DevicePropertyPhysicalDeviceObjectName, Length, Buffer, &Length);
    2.15  //    KdPrint((__DRIVER_NAME "     %3d - %ws\n", i, Buffer));
    2.16  
    2.17      Length = sizeof(Buffer);
    2.18 -    IoGetDeviceProperty(Relations->Objects[i - Offset], DevicePropertyPhysicalDeviceObjectName, Length, Buffer, &Length);
    2.19 -//    KdPrint((__DRIVER_NAME "     %3d - %ws\n", i, Buffer));
    2.20 -
    2.21 -    Length = sizeof(Buffer);
    2.22 -    IoGetDeviceProperty(Relations->Objects[i - Offset], DevicePropertyHardwareID, Length, Buffer, &Length);
    2.23 +    IoGetDeviceProperty(Relations->Objects[i - Offset], DevicePropertyCompatibleIDs, Length, Buffer, &Length);
    2.24      Match = 0;
    2.25      StrLen = 0;
    2.26      for (Ptr = Buffer; *Ptr != 0; Ptr += StrLen + 1)
    2.27      {
    2.28  //      KdPrint((__DRIVER_NAME "         - %ws\n", Ptr));
    2.29        // Qemu PCI
    2.30 -      if (XenHide_StringMatches(Ptr, L"PCI\\VEN_8086&DEV_7010&SUBSYS_00015853")) {
    2.31 +//      if (XenHide_StringMatches(Ptr, L"PCI\\VEN_8086&DEV_7010&SUBSYS_00015853")) {
    2.32 +      if (XenHide_StringMatches(Ptr, L"PCI\\VEN_8086&DEV_7010")) {
    2.33          Match = 1;
    2.34          break;
    2.35        }
    2.36        // Qemu Network
    2.37 -      if (XenHide_StringMatches(Ptr, L"PCI\\VEN_10EC&DEV_8139&SUBSYS_00015853")) {
    2.38 +//      if (XenHide_StringMatches(Ptr, L"PCI\\VEN_10EC&DEV_8139&SUBSYS_00015853")) {
    2.39 +      if (XenHide_StringMatches(Ptr, L"PCI\\VEN_10EC&DEV_8139")) {
    2.40          Match = 1;
    2.41          break;
    2.42        }