mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 00:20:34 +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
|
||||
|
@ -401,14 +422,14 @@ IPortWavePci_fnInit(
|
|||
return Status;
|
||||
}
|
||||
|
||||
/* create the subdevice descriptor */
|
||||
/* create the subdevice descriptor */
|
||||
Status = PcCreateSubdeviceDescriptor(&This->SubDeviceDescriptor,
|
||||
3,
|
||||
InterfaceGuids,
|
||||
0,
|
||||
NULL,
|
||||
InterfaceGuids,
|
||||
0,
|
||||
NULL,
|
||||
2,
|
||||
WavePciPropertySet,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
|
@ -417,6 +438,7 @@ IPortWavePci_fnInit(
|
|||
NULL,
|
||||
This->pDescriptor);
|
||||
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT1("PcCreateSubdeviceDescriptor failed with %x\n", Status);
|
||||
|
|
|
@ -224,6 +224,7 @@ FastPropertyHandler(
|
|||
if (!IsEqualGUIDAligned(&Property->Set, &KSPROPSETID_Pin))
|
||||
{
|
||||
/* the fast handler only supports pin properties */
|
||||
DPRINT("Only KSPROPSETID_Pin is supported\n");
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
@ -231,6 +232,7 @@ FastPropertyHandler(
|
|||
Status = FindPropertyHandler(IoStatus, Descriptor, Property, PropertyLength, DataLength, &PropertyHandler);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
DPRINT("FindPropertyHandler failed with %x\n", Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue