mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
Set the share disposition of an interrupt according to the value from the resource.
svn path=/trunk/; revision=14295
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user