181#define IMP_CMiniportStream_SetFormat(cType) \
182 STDMETHODIMP_(NTSTATUS) cType::SetFormat (_In_ PKSDATAFORMAT Format) \
183 { return CMiniportStream::SetFormat(Format); }
185#define IMP_CMiniportStream_QueryInterface(cType, sType) \
186 STDMETHODIMP_(NTSTATUS) cType::NonDelegatingQueryInterface( \
187 _In_ REFIID Interface, \
188 _COM_Outptr_ PVOID *Object) \
189 { return CMiniportStream::NonDelegatingQueryInterface( \
190 Interface, Object, IID_##sType, (sType*)this); }
192#define IMP_CMiniport_SetState(cType) \
193 STDMETHODIMP_(NTSTATUS) cType::SetState (_In_ KSSTATE State) \
194 { return CMiniportStream::SetState(State); }
196#define IMP_CMiniport_NormalizePhysicalPosition(cType) \
197 STDMETHODIMP_(NTSTATUS) cType::NormalizePhysicalPosition (_Inout_ PLONGLONG PhysicalPosition) \
198 { return CMiniportStream::NormalizePhysicalPosition(PhysicalPosition); }
NTSTATUS NonDelegatingQueryInterface(_In_ REFIID Interface, _COM_Outptr_ PVOID *Object, _In_ REFIID iStream, _In_ PUNKNOWN stream)
void WriteReg16(ULONG addr, USHORT data)
void ResumeDMA(ULONG state=DMA_ENGINE_ON)
UCHAR ReadReg8(ULONG addr)
void WriteReg32(ULONG addr, ULONG data)
virtual void InterruptServiceRoutine() PURE
NTSTATUS NormalizePhysicalPosition(_Inout_ PLONGLONG PhysicalPosition)
virtual NTSTATUS Init_() PURE
virtual void PowerChangeNotify_(IN POWER_STATE NewState)
int GetBuffPos(DWORD *buffPos)
USHORT ReadReg16(ULONG addr)
void PowerChangeNotify(IN POWER_STATE NewState)
PKSDATAFORMAT_WAVEFORMATEX DataFormat
PSERVICEGROUP ServiceGroup
void WriteReg8(ULONG addr, UCHAR data)
NTSTATUS SetState(_In_ KSSTATE State)
ULONG GetCurrentSampleRate(void)
STDMETHODIMP_(NTSTATUS) SetFormat(_In_ PKSDATAFORMAT Format)
ULONG ReadReg32(ULONG addr)
PHYSICAL_ADDRESS BDList_PhysAddr
DEVICE_POWER_STATE m_PowerState
struct tagBDEntry tBDEntry
const int DMA_ENGINE_PAUSE
const int MAX_BDL_ENTRIES
const int DMA_ENGINE_PEND
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum const GLvoid * addr
__GNU_EXTENSION typedef __int64 * PLONGLONG
enum _DEVICE_POWER_STATE DEVICE_POWER_STATE
IServiceGroup * PSERVICEGROUP
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE Interface