win-pvdrivers

changeset 528:283d39830905

changed bus type to PNPBus
author James Harper <james.harper@bendigoit.com.au>
date Fri Jan 16 22:36:07 2009 +1100 (2009-01-16)
parents 55c3a1972b54
children 6a2d1517e10c
files xenscsi/xenscsi.c xenscsi/xenscsi.inx
line diff
     1.1 --- a/xenscsi/xenscsi.c	Fri Jan 16 22:35:43 2009 +1100
     1.2 +++ b/xenscsi/xenscsi.c	Fri Jan 16 22:36:07 2009 +1100
     1.3 @@ -400,9 +400,15 @@ XenScsi_HwScsiFindAdapter(PVOID DeviceEx
     1.4    KdPrint((__DRIVER_NAME "     BusInterruptLevel = %d\n", ConfigInfo->BusInterruptLevel));
     1.5    KdPrint((__DRIVER_NAME "     BusInterruptVector = %03x\n", ConfigInfo->BusInterruptVector));
     1.6  
     1.7 +  if (ConfigInfo->BusInterruptVector != 1)
     1.8 +  {
     1.9 +    KdPrint((__DRIVER_NAME "     No Interrupt assigned\n"));
    1.10 +    return SP_RETURN_BAD_CONFIG;
    1.11 +  }
    1.12 +
    1.13    if (ConfigInfo->NumberOfAccessRanges != 1)
    1.14    {
    1.15 -    KdPrint((__DRIVER_NAME "     NumberOfAccessRanges = %d\n", ConfigInfo->NumberOfAccessRanges));    
    1.16 +    KdPrint((__DRIVER_NAME "     NumberOfAccessRanges = %d\n", ConfigInfo->NumberOfAccessRanges));
    1.17      return SP_RETURN_BAD_CONFIG;
    1.18    }
    1.19  
    1.20 @@ -814,7 +820,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
    1.21    RtlZeroMemory(&HwInitializationData, sizeof(HW_INITIALIZATION_DATA));
    1.22  
    1.23    HwInitializationData.HwInitializationDataSize = sizeof(HW_INITIALIZATION_DATA);
    1.24 -  HwInitializationData.AdapterInterfaceType = Internal;
    1.25 +  HwInitializationData.AdapterInterfaceType = PNPBus;
    1.26    HwInitializationData.DeviceExtensionSize = sizeof(XENSCSI_DEVICE_DATA);
    1.27    HwInitializationData.SpecificLuExtensionSize = sizeof(XENSCSI_LU_DATA);
    1.28    HwInitializationData.SrbExtensionSize = 0;
     2.1 --- a/xenscsi/xenscsi.inx	Fri Jan 16 22:35:43 2009 +1100
     2.2 +++ b/xenscsi/xenscsi.inx	Fri Jan 16 22:36:07 2009 +1100
     2.3 @@ -40,7 +40,7 @@ ServiceBinary  = %12%\xenscsi.sys
     2.4  AddReg = XenScsi_Service_AddReg
     2.5  
     2.6  [XenScsi_Service_AddReg]
     2.7 -HKR,"Parameters\PnpInterface", "0", 0x00010001, 0x00000001
     2.8 +HKR,"Parameters\PnpInterface", "15", 0x00010001, 0x00000001
     2.9  
    2.10  [XenScsi_EventLog]
    2.11  AddReg = XenScsi_EventLog_AddReg