9#define STR_MODULENAME "AC97 Cyclic Stream: "
17#pragma code_seg("PAGE")
45 "Allocation failures cause a system crash"))
59 if (*MiniportCyclicStream)
61 (*MiniportCyclicStream)->AddRef ();
79 DOUT (
DBG_PRINT, (
"[CMiniportWaveCyclicStream::~CMiniportWaveCyclicStream]"));
133 DWORD allocSize = DmaChannel->AllocatedBufferSize();
134 if(totalSize > allocSize)
136 DmaChannel->FreeBuffer();
137 NTSTATUS ntStatus = DmaChannel->AllocateBuffer(totalSize, 0);
144 DmaChannel->SetBufferSize(totalSize);
147 DWORD addr = DmaChannel->PhysicalAddress().LowPart;
208 UCHAR nCurrentIndex ;
int GetBuffPos(DWORD *buffPos)
PSERVICEGROUP ServiceGroup
void InterruptServiceRoutine()
~CMiniportWaveCyclicStream()
NTSTATUS ResizeBuffer(void)
#define NT_SUCCESS(StatCode)
#define DOUT(lvl, strings)
#define IMP_CMiniportStream_QueryInterface(cType, sType)
#define IMP_CMiniport_SetState(cType)
#define IMP_CMiniport_NormalizePhysicalPosition(cType)
#define __drv_reportError(why)
GLenum const GLvoid * addr
#define _When_(expr, annos)
IDmaChannel * PDMACHANNEL
const int MAX_BDL_ENTRIES
#define STATUS_INSUFFICIENT_RESOURCES
STDMETHODIMP_(void) CMiniportWaveCyclicStream
NTSTATUS CreateMiniportWaveCyclicStream(OUT CMiniportWaveCyclicStream **MiniportCyclicStream, IN PUNKNOWN pUnknownOuter, _When_((PoolType &NonPagedPoolMustSucceed) !=0, __drv_reportError("Must succeed pool allocations are forbidden. " "Allocation failures cause a system crash")) IN POOL_TYPE PoolType)
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ _Strict_type_match_ POOL_TYPE PoolType
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ _Strict_type_match_ POOL_TYPE _In_opt_ ULONG PoolTag
#define DBG_PRINT(ppi, ch, level)
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS _In_ LARGE_INTEGER ByteCount
@ NonPagedPoolMustSucceed