ReactOS  0.4.14-dev-50-g13bb5e2
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 12 of file miniport.cpp.

Function Documentation

◆ operator delete() [1/2]

Definition at line 32 of file miniport.cpp.

34 {
35  ExFreePool(ptr);
36 }
static PVOID ptr
Definition: dispmode.c:27
#define ExFreePool(addr)
Definition: env_spec_w32.h:352

◆ operator delete() [2/2]

Definition at line 40 of file miniport.cpp.

42 {
43  ExFreePool(ptr);
44 }
static PVOID ptr
Definition: dispmode.c:27
#define ExFreePool(addr)
Definition: env_spec_w32.h:352

◆ operator new()

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

Definition at line 19 of file miniport.cpp.

23 {
25  if (P)
27  return P;
28 }
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:359
#define P(row, col)
IN ULONG IN ULONG Tag
Definition: evtlib.h:159
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:261
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444

◆ PcNewMiniport()

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

Definition at line 48 of file miniport.cpp.

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

Referenced by InstallSubdevice(), and StartDevice().