ReactOS 0.4.16-dev-297-gc569aee
wavecyclicminiport.cpp File Reference
Include dependency graph for wavecyclicminiport.cpp:

Go to the source code of this file.

Macros

#define STR_MODULENAME   "AC97 Wave Cyclic: "
 

Functions

 IMP_CMiniport (CMiniportWaveCyclic, IID_IMiniportWaveCyclic) NTSTATUS CreateAC97MiniportWaveCyclic(OUT PUNKNOWN *Unknown
 
IN IN PUNKNOWN UnknownOuter _When_ ((PoolType &NonPagedPoolMustSucceed) !=0, __drv_reportError("Must succeed pool allocations are forbidden. " "Allocation failures cause a system crash")) IN POOL_TYPE PoolType)
 
 STDMETHODIMP_ (NTSTATUS) CMiniportWaveCyclic
 

Variables

IN REFCLSID
 
IN IN PUNKNOWN UnknownOuter OPTIONAL
 

Macro Definition Documentation

◆ STR_MODULENAME

#define STR_MODULENAME   "AC97 Wave Cyclic: "

Definition at line 9 of file wavecyclicminiport.cpp.

Function Documentation

◆ _When_()

IN IN PUNKNOWN UnknownOuter _When_ ( (PoolType &NonPagedPoolMustSucceed) !  = 0,
__drv_reportError("Must succeed pool allocations are forbidden. " "Allocation failures cause a system crash")   
)

Definition at line 32 of file wavecyclicminiport.cpp.

37{
38 PAGED_CODE ();
39
41
42 DOUT (DBG_PRINT, ("[CreateAC97MiniportWaveCyclic]"));
43
44 STD_CREATE_BODY_WITH_TAG_(CMiniportWaveCyclic,Unknown,UnknownOuter,PoolType,
46}
#define PAGED_CODE()
#define DOUT(lvl, strings)
Definition: debug.h:82
@ Unknown
Definition: i8042prt.h:114
#define ASSERT(a)
Definition: mode.c:44
IMiniportWaveCyclic * PMINIPORTWAVECYCLIC
Definition: portcls.h:1543
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
Definition: wdfdevice.h:3815
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
Definition: wdfmemory.h:164
#define DBG_PRINT(ppi, ch, level)
Definition: win32kdebug.h:169

◆ IMP_CMiniport()

IMP_CMiniport ( CMiniportWaveCyclic  ,
IID_IMiniportWaveCyclic   
)

◆ STDMETHODIMP_()

STDMETHODIMP_ ( NTSTATUS  )

Definition at line 54 of file wavecyclicminiport.cpp.

60{
61 PAGED_CODE ();
62
63 NTSTATUS ntStatus = CMiniport::Init(
64 UnknownAdapter,
66 Port_
67 );
68
69 if (!NT_SUCCESS (ntStatus))
70 {
71 return ntStatus;
72 }
73
74 //
75 // Create the DMA Channel object.
76 //
77 ntStatus = Port->NewMasterDmaChannel (&DmaChannel, // OutDmaChannel
78 NULL, // OuterUnknown (opt)
79 NULL, // ResourceList (opt)
80 0x1FFFE, // MaximumLength
81 TRUE, // Dma32BitAddresses
82 FALSE, // Dma64BitAddresses
83 Width32Bits, // DmaWidth
84 MaximumDmaSpeed); // DmaSpeed
85 if (!NT_SUCCESS (ntStatus))
86 {
87 DOUT (DBG_ERROR, ("Failed on NewMasterDmaChannel!"));
88 return ntStatus;
89 }
90
91 //
92 // On failure object is destroyed which cleans up.
93 //
94 return ntStatus;
95}
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
CPPORT Port[4]
Definition: headless.c:35
#define DBG_ERROR
Definition: nfs41_debug.h:78
@ Width32Bits
Definition: miniport.h:107
@ MaximumDmaSpeed
Definition: miniport.h:117
_Must_inspect_result_ _In_ WDFIORESREQLIST _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFIORESLIST * ResourceList
Definition: wdfresource.h:309

Variable Documentation

◆ OPTIONAL

IN IN PUNKNOWN UnknownOuter OPTIONAL

Definition at line 31 of file wavecyclicminiport.cpp.

◆ REFCLSID

IN REFCLSID

Definition at line 30 of file wavecyclicminiport.cpp.