49 0x6994AD04, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
53 0x65E8773EL, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
57 0x65E8773DL, 0x8F56, 0x11D0, {0xA3, 0xB9, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
68 sizeof(PortFilterWavePciTopologySet) /
sizeof(KSPROPERTY_ITEM),
69 (
const KSPROPERTY_ITEM*)&PortFilterWavePciTopologySet,
75 sizeof(PortFilterWavePciPinSet) /
sizeof(KSPROPERTY_ITEM),
76 (
const KSPROPERTY_ITEM*)&PortFilterWavePciPinSet,
88CPortWavePci::AddEventToEventList(
102CPortWavePci::GenerateEventList(
118CPortWavePci::RequestService()
139 DPRINT(
"IPortWavePci_fnQueryInterface entered\n");
187 DPRINT(
"IPortWavePci_fnQueryInterface no interface!!! iface %S\n",
GuidString.Buffer);
203 IMiniportWavePci * Miniport;
209 DPRINT(
"IPortWavePci_fnInit entered with This %p, DeviceObject %p Irp %p UnknownMiniport %p, UnknownAdapter %p ResourceList %p\n",
213 Status = UnknownMiniport->QueryInterface(IID_IMiniportWavePci, (
PVOID*)&Miniport);
216 DPRINT(
"IPortWavePci_fnInit called with invalid IMiniport adapter\n");
244 DPRINT(
"failed to get description\n");
267 DPRINT(
"PcCreateSubdeviceDescriptor failed with %x\n",
Status);
304 DPRINT(
"IPortWavePci_Init successfully initialized\n");
310CPortWavePci::NewRegistryKey(
319 DPRINT(
"IPortWavePci_fnNewRegistryKey entered\n");
335CPortWavePci::GetDeviceProperty(
341 DPRINT(
"IPortWavePci_fnGetDeviceProperty entered\n");
349CPortWavePci::NewMasterDmaChannel(
366 DPRINT(
"IPortWavePci_fnNewMasterDmaChannel This %p entered\n",
this);
387 ServiceGroup->RequestService ();
397CPortWavePci::NewIrpTarget(
398 OUT struct IIrpTarget **OutTarget,
404 IN KSOBJECT_CREATE *CreateObject)
407 IPortFilterWavePci *
Filter;
409 DPRINT(
"ISubDevice_NewIrpTarget this %p\n",
this);
430 *OutTarget = (IIrpTarget*)
Filter;
437CPortWavePci::ReleaseChildren()
445CPortWavePci::GetDescriptor(
448 DPRINT(
"ISubDevice_GetDescriptor this %p\n",
this);
455CPortWavePci::DataRangeIntersection(
463 DPRINT(
"ISubDevice_DataRangeIntersection this %p\n",
this);
467 return m_Miniport->DataRangeIntersection (PinId, DataRange, MatchingDataRange,
OutputBufferLength, ResultantFormat, ResultantFormatLength);
475CPortWavePci::PowerChangeNotify(
488CPortWavePci::PinCount(
498 m_pPinCount->PinCount(PinId, FilterNecessary, FilterCurrent, FilterPossible, GlobalCurrent, GlobalPossible);
536 return This->m_pDeviceObject;
544 return This->m_Miniport;
PSERVICEGROUP m_ServiceGroup
PMINIPORTWAVEPCI m_Miniport
PPOWERNOTIFY m_pPowerNotify
friend PDEVICE_OBJECT GetDeviceObjectFromPortWavePci(IPortWavePci *iface)
CPortWavePci(IUnknown *OuterUnknown)
PSUBDEVICE_DESCRIPTOR m_SubDeviceDescriptor
IPortFilterWavePci * m_Filter
PPCFILTER_DESCRIPTOR m_pDescriptor
PDEVICE_OBJECT m_pDeviceObject
KSPIN_LOCK m_EventListLock
friend PMINIPORTWAVEPCI GetWavePciMiniport(PPORTWAVEPCI iface)
STDMETHODIMP QueryInterface(REFIID InterfaceId, PVOID *Interface)
NTSTATUS NTAPI NewIUnregisterPhysicalConnection(OUT PUNREGISTERPHYSICALCONNECTION *OutConnection)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
NTSTATUS NTAPI PcNewDmaChannel(OUT PDMACHANNEL *OutDmaChannel, IN PUNKNOWN OuterUnknown OPTIONAL, IN POOL_TYPE PoolType, IN PDEVICE_DESCRIPTION DeviceDescription, IN PDEVICE_OBJECT DeviceObject)
#define DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT(PinSet, PropGeneral, PropInstances, PropIntersection)
NTSTATUS NTAPI PcDmaMasterDescription(IN PRESOURCELIST ResourceList OPTIONAL, IN BOOLEAN ScatterGather, IN BOOLEAN Dma32BitAddresses, IN BOOLEAN IgnoreCount, IN BOOLEAN Dma64BitAddresses, IN DMA_WIDTH DmaWidth, IN DMA_SPEED DmaSpeed, IN ULONG MaximumLength, IN ULONG DmaPort, OUT PDEVICE_DESCRIPTION DeviceDescription)
NTSTATUS NTAPI PcNewRegistryKey(OUT PREGISTRYKEY *OutRegistryKey, IN PUNKNOWN OuterUnknown OPTIONAL, IN ULONG RegistryKeyType, IN ACCESS_MASK DesiredAccess, IN PVOID DeviceObject OPTIONAL, IN PVOID SubDevice OPTIONAL, IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN ULONG CreateOptions OPTIONAL, OUT PULONG Disposition OPTIONAL)
NTSTATUS NewIDrmPort(OUT PDRMPORT2 *OutPort)
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
#define InsertTailList(ListHead, Entry)
#define KeReleaseSpinLock(sl, irql)
#define KeAcquireSpinLock(sl, irql)
#define InitializeListHead(ListHead)
#define KeInitializeSpinLock(sl)
NTSTATUS NewPortFilterWavePci(OUT IPortFilterWavePci **OutFilter)
_Must_inspect_result_ _In_opt_ PFLT_FILTER Filter
NTSYSAPI NTSTATUS WINAPI RtlStringFromGUID(REFGUID, PUNICODE_STRING)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define DEFINE_KSPROPERTY_TOPOLOGYSET(TopologySet, Handler)
struct _KSEVENT_ENTRY * PKSEVENT_ENTRY
#define KSPROPSETID_Topology
_In_ BOOLEAN Dma64BitAddresses
_In_ ACCESS_MASK _In_ POBJECT_ATTRIBUTES _Reserved_ ULONG _In_opt_ PUNICODE_STRING _In_ ULONG _Out_opt_ PULONG Disposition
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
NTSTATUS NTAPI IoGetDeviceProperty(IN PDEVICE_OBJECT DeviceObject, IN DEVICE_REGISTRY_PROPERTY DeviceProperty, IN ULONG BufferLength, OUT PVOID PropertyBuffer, OUT PULONG ResultLength)
NTSTATUS NewPortWavePci(OUT PPORT *OutPort)
KSPROPERTY_SET WavePciPropertySet[]
PDEVICE_OBJECT GetDeviceObjectFromPortWavePci(IPortWavePci *iface)
static GUID InterfaceGuids[3]
PMINIPORTWAVEPCI GetWavePciMiniport(PPORTWAVEPCI iface)
IRegistryKey * PREGISTRYKEY
IDmaChannel * PDMACHANNEL
IServiceSink * PSERVICESINK
IResourceList * PRESOURCELIST
IPortEvents * PPORTEVENTS
IUnregisterSubdevice * PUNREGISTERSUBDEVICE
IPortClsVersion * PPORTCLSVERSION
IUnregisterPhysicalConnection * PUNREGISTERPHYSICALCONNECTION
IMiniportWavePci * PMINIPORTWAVEPCI
IServiceGroup * PSERVICEGROUP
IPowerNotify * PPOWERNOTIFY
IPortWavePci * PPORTWAVEPCI
NTSTATUS NTAPI PinPropertyHandler(IN PIRP Irp, IN PKSIDENTIFIER Request, IN OUT PVOID Data)
NTSTATUS NTAPI NewIUnregisterSubdevice(OUT PUNREGISTERSUBDEVICE *OutDevice)
NTSTATUS NTAPI PcCreateSubdeviceDescriptor(OUT SUBDEVICE_DESCRIPTOR **OutSubdeviceDescriptor, IN ULONG InterfaceCount, IN GUID *InterfaceGuids, IN ULONG IdentifierCount, IN KSIDENTIFIER *Identifier, IN ULONG FilterPropertiesCount, IN KSPROPERTY_SET *FilterProperties, IN ULONG Unknown1, IN ULONG Unknown2, IN ULONG PinPropertiesCount, IN KSPROPERTY_SET *PinProperties, IN ULONG EventSetCount, IN KSEVENT_SET *EventSet, IN PPCFILTER_DESCRIPTOR FilterDescription)
#define PC_ASSERT_IRQL_EQUAL(x)
NTSTATUS NewPortClsVersion(OUT PPORTCLSVERSION *OutVersion)
NTSTATUS NTAPI TopologyPropertyHandler(IN PIRP Irp, IN PKSIDENTIFIER Request, IN OUT PVOID Data)
enum _DMA_SPEED DMA_SPEED
enum _DMA_WIDTH DMA_WIDTH
PULONG MinorVersion OPTIONAL
_In_ const GUID _In_ ULONG PinCount
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
#define STATUS_INSUFFICIENT_RESOURCES
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ ULONG _Out_ PVOID PropertyBuffer
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface
_In_ WDFREQUEST _In_ size_t OutputBufferLength
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ PCUNICODE_STRING DeviceDescription
_Must_inspect_result_ _In_opt_ WDFKEY _In_ PCUNICODE_STRING _In_ ACCESS_MASK _In_ ULONG CreateOptions
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
#define IsEqualGUIDAligned(guid1, guid2)
_In_ struct _IRP _In_ struct _SCATTER_GATHER_LIST * ScatterGather
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql