mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:03:14 +00:00
- Pass KSPROPERTY_SET to subdevice constructor
- Add debug traces on error case svn path=/trunk/; revision=40705
This commit is contained in:
parent
d818cea15d
commit
d46c77f118
2 changed files with 28 additions and 4 deletions
|
@ -49,6 +49,27 @@ static GUID InterfaceGuids[3] =
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DEFINE_KSPROPERTY_TOPOLOGYSET(PortFilterWavePciTopologySet, TopologyPropertyHandler);
|
||||||
|
DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT(PortFilterWavePciPinSet, PinPropertyHandler, PinPropertyHandler, PinPropertyHandler);
|
||||||
|
|
||||||
|
KSPROPERTY_SET WavePciPropertySet[] =
|
||||||
|
{
|
||||||
|
{
|
||||||
|
&KSPROPSETID_Topology,
|
||||||
|
sizeof(PortFilterWavePciTopologySet) / sizeof(KSPROPERTY_ITEM),
|
||||||
|
(const KSPROPERTY_ITEM*)&PortFilterWavePciTopologySet,
|
||||||
|
0,
|
||||||
|
NULL
|
||||||
|
},
|
||||||
|
{
|
||||||
|
&KSPROPSETID_Pin,
|
||||||
|
sizeof(PortFilterWavePciPinSet) / sizeof(KSPROPERTY_ITEM),
|
||||||
|
(const KSPROPERTY_ITEM*)&PortFilterWavePciPinSet,
|
||||||
|
0,
|
||||||
|
NULL
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------
|
//---------------------------------------------------------------
|
||||||
// IPortEvents
|
// IPortEvents
|
||||||
|
@ -401,14 +422,14 @@ IPortWavePci_fnInit(
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* create the subdevice descriptor */
|
/* create the subdevice descriptor */
|
||||||
Status = PcCreateSubdeviceDescriptor(&This->SubDeviceDescriptor,
|
Status = PcCreateSubdeviceDescriptor(&This->SubDeviceDescriptor,
|
||||||
3,
|
3,
|
||||||
InterfaceGuids,
|
InterfaceGuids,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
0,
|
2,
|
||||||
NULL,
|
WavePciPropertySet,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
|
@ -417,6 +438,7 @@ IPortWavePci_fnInit(
|
||||||
NULL,
|
NULL,
|
||||||
This->pDescriptor);
|
This->pDescriptor);
|
||||||
|
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
DPRINT1("PcCreateSubdeviceDescriptor failed with %x\n", Status);
|
DPRINT1("PcCreateSubdeviceDescriptor failed with %x\n", Status);
|
||||||
|
|
|
@ -224,6 +224,7 @@ FastPropertyHandler(
|
||||||
if (!IsEqualGUIDAligned(&Property->Set, &KSPROPSETID_Pin))
|
if (!IsEqualGUIDAligned(&Property->Set, &KSPROPSETID_Pin))
|
||||||
{
|
{
|
||||||
/* the fast handler only supports pin properties */
|
/* the fast handler only supports pin properties */
|
||||||
|
DPRINT("Only KSPROPSETID_Pin is supported\n");
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,6 +232,7 @@ FastPropertyHandler(
|
||||||
Status = FindPropertyHandler(IoStatus, Descriptor, Property, PropertyLength, DataLength, &PropertyHandler);
|
Status = FindPropertyHandler(IoStatus, Descriptor, Property, PropertyLength, DataLength, &PropertyHandler);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
DPRINT("FindPropertyHandler failed with %x\n", Status);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue