Set the share disposition of an interrupt according to the value from the resource.

svn path=/trunk/; revision=14295
This commit is contained in:
Hartmut Birr
2005-03-23 21:51:40 +00:00
parent b929be435f
commit 7889b35088
4 changed files with 10 additions and 1 deletions
@@ -329,6 +329,10 @@ IntVideoPortPnPStartDevice(
{
DeviceExtension->InterruptLevel = Descriptor->u.Interrupt.Level;
DeviceExtension->InterruptVector = Descriptor->u.Interrupt.Vector;
if (Descriptor->ShareDisposition == CmResourceShareShared)
DeviceExtension->InterruptShared = TRUE;
else
DeviceExtension->InterruptShared = FALSE;
}
}
}
+1 -1
View File
@@ -85,7 +85,7 @@ IntVideoPortSetupInterrupt(
Irql,
Irql,
ConfigInfo->InterruptMode,
FALSE,
DeviceExtension->InterruptShared,
Affinity,
FALSE);
@@ -559,6 +559,10 @@ VideoPortGetAccessRanges(
{
DeviceExtension->InterruptLevel = Descriptor->u.Interrupt.Level;
DeviceExtension->InterruptVector = Descriptor->u.Interrupt.Vector;
if (Descriptor->ShareDisposition == CmResourceShareShared)
DeviceExtension->InterruptShared = TRUE;
else
DeviceExtension->InterruptShared = FALSE;
}
}
}
@@ -93,6 +93,7 @@ typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
PCM_RESOURCE_LIST AllocatedResources;
ULONG InterruptVector;
ULONG InterruptLevel;
BOOLEAN InterruptShared;
ULONG AdapterInterfaceType;
ULONG SystemIoBusNumber;
ULONG SystemIoSlotNumber;