ReactOS 0.4.15-dev-8219-ge8b88cf
miniport.cpp File Reference
#include "private.hpp"
#include <debug.h>
Include dependency graph for miniport.cpp:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

PVOID __cdecl operator new (size_t Size, POOL_TYPE PoolType, ULONG Tag)
 
void __cdecl operator delete (PVOID ptr)
 
void __cdecl operator delete (PVOID ptr, UINT_PTR)
 
NTSTATUS NTAPI PcNewMiniport (OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 11 of file miniport.cpp.

Function Documentation

◆ operator delete() [1/2]

Definition at line 29 of file miniport.cpp.

31{
33}
#define ExFreePool(addr)
Definition: env_spec_w32.h:352
static PVOID ptr
Definition: dispmode.c:27

◆ operator delete() [2/2]

Definition at line 37 of file miniport.cpp.

39{
41}

◆ operator new()

PVOID __cdecl operator new ( size_t  Size,
POOL_TYPE  PoolType,
ULONG  Tag 
)

Definition at line 16 of file miniport.cpp.

20{
22 if (P)
24 return P;
25}
#define P(row, col)
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4065
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533

◆ PcNewMiniport()

NTSTATUS NTAPI PcNewMiniport ( OUT PMINIPORT OutMiniport,
IN REFCLSID  ClassId 
)

Definition at line 45 of file miniport.cpp.

48{
50
51 DPRINT("PcNewMiniport entered\n");
53
54 if (!OutMiniport)
55 {
56 DPRINT("PcNewMiniport was supplied a NULL OutPort parameter\n");
58 }
59
60 if (IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverDMusUART) ||
61 IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverUart) ||
62 IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverDMusUARTCapture))
63 {
64 Status = NewMiniportDMusUART(OutMiniport, ClassId);
65 }
66 else if (IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverFmSynth) ||
67 IsEqualGUIDAligned(ClassId, CLSID_MiniportDriverFmSynthWithVol))
68 {
69 Status = NewMiniportFmSynth(OutMiniport, ClassId);
70 }
71 else
72 {
74 }
75
76 DPRINT("PcNewMiniport Status %x\n", Status);
77 return Status;
78}
LONG NTSTATUS
Definition: precomp.h:26
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
Status
Definition: gdiplustypes.h:25
NTSTATUS NewMiniportDMusUART(OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
NTSTATUS NewMiniportFmSynth(OUT PMINIPORT *OutMiniport, IN REFCLSID ClassId)
#define PC_ASSERT_IRQL_EQUAL(x)
Definition: private.hpp:31
#define DPRINT
Definition: sndvol32.h:73
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:235

Referenced by InstallSubdevice(), and StartDevice().