ReactOS  0.4.15-dev-2155-g06f57e1
businterface.cpp File Reference
#include "hdaudbus.h"
Include dependency graph for businterface.cpp:

Go to the source code of this file.

Functions

VOID NTAPI HDA_InterfaceReference (PVOID BusContext)
 
VOID NTAPI HDA_InterfaceDereference (PVOID BusContext)
 
NTSTATUS NTAPI HDA_TransferCodecVerbs (IN PVOID _context, IN ULONG Count, IN OUT PHDAUDIO_CODEC_TRANSFER CodecTransfer, IN PHDAUDIO_TRANSFER_COMPLETE_CALLBACK Callback, IN PVOID Context)
 
NTSTATUS NTAPI HDA_AllocateCaptureDmaEngine (IN PVOID _context, IN UCHAR CodecAddress, IN PHDAUDIO_STREAM_FORMAT StreamFormat, OUT PHANDLE Handle, OUT PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
 
NTSTATUS NTAPI HDA_AllocateRenderDmaEngine (IN PVOID _context, IN PHDAUDIO_STREAM_FORMAT StreamFormat, IN BOOLEAN Stripe, OUT PHANDLE Handle, OUT PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
 
NTSTATUS NTAPI HDA_ChangeBandwidthAllocation (IN PVOID _context, IN HANDLE Handle, IN PHDAUDIO_STREAM_FORMAT StreamFormat, OUT PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
 
NTSTATUS NTAPI HDA_AllocateDmaBuffer (IN PVOID _context, IN HANDLE Handle, IN SIZE_T RequestedBufferSize, OUT PMDL *BufferMdl, OUT PSIZE_T AllocatedBufferSize, OUT PUCHAR StreamId, OUT PULONG FifoSize)
 
NTSTATUS NTAPI HDA_FreeDmaBuffer (IN PVOID _context, IN HANDLE Handle)
 
NTSTATUS NTAPI HDA_FreeDmaEngine (IN PVOID _context, IN HANDLE Handle)
 
NTSTATUS NTAPI HDA_SetDmaEngineState (IN PVOID _context, IN HDAUDIO_STREAM_STATE StreamState, IN ULONG NumberOfHandles, IN PHANDLE Handles)
 
VOID NTAPI HDA_GetWallClockRegister (IN PVOID _context, OUT PULONG *Wallclock)
 
NTSTATUS NTAPI HDA_GetLinkPositionRegister (IN PVOID _context, IN HANDLE Handle, OUT PULONG *Position)
 
NTSTATUS NTAPI HDA_RegisterEventCallback (IN PVOID _context, IN PHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK Routine, IN PVOID Context, OUT PUCHAR Tag)
 
NTSTATUS NTAPI HDA_UnregisterEventCallback (IN PVOID _context, IN UCHAR Tag)
 
NTSTATUS NTAPI HDA_GetDeviceInformation (IN PVOID _context, OUT PHDAUDIO_DEVICE_INFORMATION DeviceInformation)
 
VOID NTAPI HDA_GetResourceInformation (IN PVOID _context, OUT PUCHAR CodecAddress, OUT PUCHAR FunctionGroupStartNode)
 
NTSTATUS NTAPI HDA_AllocateDmaBufferWithNotification (IN PVOID _context, IN HANDLE Handle, IN ULONG NotificationCount, IN SIZE_T RequestedBufferSize, OUT PMDL *BufferMdl, OUT PSIZE_T AllocatedBufferSize, OUT PSIZE_T OffsetFromFirstPage, OUT PUCHAR StreamId, OUT PULONG FifoSize)
 
NTSTATUS NTAPI HDA_FreeDmaBufferWithNotification (IN PVOID _context, IN HANDLE Handle, IN PMDL BufferMdl, IN SIZE_T BufferSize)
 
NTSTATUS NTAPI HDA_RegisterNotificationEvent (PVOID _context, HANDLE Handle, IN PKEVENT NotificationEvent)
 
NTSTATUS NTAPI HDA_UnregisterNotificationEvent (IN PVOID _context, IN HANDLE Handle, IN PKEVENT NotificationEvent)
 
NTSTATUS HDA_PDOHandleQueryInterface (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 

Function Documentation

◆ HDA_AllocateCaptureDmaEngine()

NTSTATUS NTAPI HDA_AllocateCaptureDmaEngine ( IN PVOID  _context,
IN UCHAR  CodecAddress,
IN PHDAUDIO_STREAM_FORMAT  StreamFormat,
OUT PHANDLE  Handle,
OUT PHDAUDIO_CONVERTER_FORMAT  ConverterFormat 
)

Definition at line 65 of file businterface.cpp.

71 {
73  ASSERT(FALSE);
75 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_AllocateDmaBuffer()

NTSTATUS NTAPI HDA_AllocateDmaBuffer ( IN PVOID  _context,
IN HANDLE  Handle,
IN SIZE_T  RequestedBufferSize,
OUT PMDL BufferMdl,
OUT PSIZE_T  AllocatedBufferSize,
OUT PUCHAR  StreamId,
OUT PULONG  FifoSize 
)

Definition at line 106 of file businterface.cpp.

114 {
116  ASSERT(FALSE);
117  return STATUS_NOT_IMPLEMENTED;
118 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_AllocateDmaBufferWithNotification()

NTSTATUS NTAPI HDA_AllocateDmaBufferWithNotification ( IN PVOID  _context,
IN HANDLE  Handle,
IN ULONG  NotificationCount,
IN SIZE_T  RequestedBufferSize,
OUT PMDL BufferMdl,
OUT PSIZE_T  AllocatedBufferSize,
OUT PSIZE_T  OffsetFromFirstPage,
OUT PUCHAR  StreamId,
OUT PULONG  FifoSize 
)

Definition at line 242 of file businterface.cpp.

252 {
254  ASSERT(FALSE);
255  return STATUS_NOT_IMPLEMENTED;
256 
257 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_AllocateRenderDmaEngine()

NTSTATUS NTAPI HDA_AllocateRenderDmaEngine ( IN PVOID  _context,
IN PHDAUDIO_STREAM_FORMAT  StreamFormat,
IN BOOLEAN  Stripe,
OUT PHANDLE  Handle,
OUT PHDAUDIO_CONVERTER_FORMAT  ConverterFormat 
)

Definition at line 79 of file businterface.cpp.

85 {
87  ASSERT(FALSE);
89 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_ChangeBandwidthAllocation()

NTSTATUS NTAPI HDA_ChangeBandwidthAllocation ( IN PVOID  _context,
IN HANDLE  Handle,
IN PHDAUDIO_STREAM_FORMAT  StreamFormat,
OUT PHDAUDIO_CONVERTER_FORMAT  ConverterFormat 
)

Definition at line 93 of file businterface.cpp.

98 {
100  ASSERT(FALSE);
101  return STATUS_NOT_IMPLEMENTED;
102 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_FreeDmaBuffer()

NTSTATUS NTAPI HDA_FreeDmaBuffer ( IN PVOID  _context,
IN HANDLE  Handle 
)

Definition at line 122 of file businterface.cpp.

125 {
127  ASSERT(FALSE);
128  return STATUS_NOT_IMPLEMENTED;
129 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_FreeDmaBufferWithNotification()

NTSTATUS NTAPI HDA_FreeDmaBufferWithNotification ( IN PVOID  _context,
IN HANDLE  Handle,
IN PMDL  BufferMdl,
IN SIZE_T  BufferSize 
)

Definition at line 260 of file businterface.cpp.

265 {
267  ASSERT(FALSE);
268  return STATUS_NOT_IMPLEMENTED;
269 
270 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_FreeDmaEngine()

NTSTATUS NTAPI HDA_FreeDmaEngine ( IN PVOID  _context,
IN HANDLE  Handle 
)

Definition at line 133 of file businterface.cpp.

136 {
138  ASSERT(FALSE);
139  return STATUS_NOT_IMPLEMENTED;
140 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_GetDeviceInformation()

NTSTATUS NTAPI HDA_GetDeviceInformation ( IN PVOID  _context,
OUT PHDAUDIO_DEVICE_INFORMATION  DeviceInformation 
)

Definition at line 204 of file businterface.cpp.

207 {
208  PHDA_PDO_DEVICE_EXTENSION DeviceExtension;
209 
210  DeviceExtension = (PHDA_PDO_DEVICE_EXTENSION)_context;
211 
212  DPRINT1("HDA_GetDeviceInformation\n");
213 
214  DeviceInformation->Size = sizeof(HDAUDIO_DEVICE_INFORMATION);
215  DeviceInformation->CodecsDetected = 1; // FIXME
216  DeviceInformation->DeviceVersion = DeviceExtension->Codec->Major << 8 | DeviceExtension->Codec->Minor;
217  DeviceInformation->DriverVersion = DeviceExtension->Codec->Major << 8 | DeviceExtension->Codec->Minor;
218  DeviceInformation->IsStripingSupported = FALSE;
219 
220  return STATUS_SUCCESS;
221 }
struct _HDAUDIO_DEVICE_INFORMATION HDAUDIO_DEVICE_INFORMATION
PHDA_CODEC_ENTRY Codec
Definition: hdaudbus.h:90
struct HDA_PDO_DEVICE_EXTENSION * PHDA_PDO_DEVICE_EXTENSION
#define FALSE
Definition: types.h:117
UCHAR Minor
Definition: hdaudbus.h:50
UCHAR Major
Definition: hdaudbus.h:49
#define DPRINT1
Definition: precomp.h:8
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_GetLinkPositionRegister()

NTSTATUS NTAPI HDA_GetLinkPositionRegister ( IN PVOID  _context,
IN HANDLE  Handle,
OUT PULONG Position 
)

Definition at line 167 of file businterface.cpp.

171 {
173  ASSERT(FALSE);
174  return STATUS_NOT_IMPLEMENTED;
175 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_GetResourceInformation()

VOID NTAPI HDA_GetResourceInformation ( IN PVOID  _context,
OUT PUCHAR  CodecAddress,
OUT PUCHAR  FunctionGroupStartNode 
)

Definition at line 225 of file businterface.cpp.

229 {
230  PHDA_PDO_DEVICE_EXTENSION DeviceExtension;
231 
232  DeviceExtension = (PHDA_PDO_DEVICE_EXTENSION)_context;
233 
234  DPRINT1("HDA_GetResourceInformation Addr %x NodeId %x\n", DeviceExtension->Codec->Addr, DeviceExtension->AudioGroup->NodeId);
235 
236  *CodecAddress = DeviceExtension->Codec->Addr;
237  *FunctionGroupStartNode = DeviceExtension->AudioGroup->NodeId;
238 }
PHDA_CODEC_ENTRY Codec
Definition: hdaudbus.h:90
struct HDA_PDO_DEVICE_EXTENSION * PHDA_PDO_DEVICE_EXTENSION
UCHAR Addr
Definition: hdaudbus.h:53
PHDA_CODEC_AUDIO_GROUP AudioGroup
Definition: hdaudbus.h:91
#define DPRINT1
Definition: precomp.h:8

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_GetWallClockRegister()

VOID NTAPI HDA_GetWallClockRegister ( IN PVOID  _context,
OUT PULONG Wallclock 
)

Definition at line 157 of file businterface.cpp.

160 {
162  ASSERT(FALSE);
163 }
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_InterfaceDereference()

VOID NTAPI HDA_InterfaceDereference ( PVOID  BusContext)

Definition at line 21 of file businterface.cpp.

23 {
24  DPRINT1("HDA_InterfaceDereference\n");
25 }
#define DPRINT1
Definition: precomp.h:8

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_InterfaceReference()

VOID NTAPI HDA_InterfaceReference ( PVOID  BusContext)

Definition at line 13 of file businterface.cpp.

15 {
16  DPRINT1("HDA_InterfaceReference\n");
17 }
#define DPRINT1
Definition: precomp.h:8

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_PDOHandleQueryInterface()

NTSTATUS HDA_PDOHandleQueryInterface ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)

Definition at line 299 of file businterface.cpp.

302 {
303  PIO_STACK_LOCATION IoStack;
304  PHDAUDIO_BUS_INTERFACE_V2 InterfaceHDA;
305  PHDA_PDO_DEVICE_EXTENSION DeviceExtension;
306 
307  /* get device extension */
308  DeviceExtension = (PHDA_PDO_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
309  ASSERT(DeviceExtension->IsFDO == FALSE);
310 
312 
313  if (IsEqualGUIDAligned(*IoStack->Parameters.QueryInterface.InterfaceType, GUID_HDAUDIO_BUS_INTERFACE))
314  {
315  InterfaceHDA = (PHDAUDIO_BUS_INTERFACE_V2)IoStack->Parameters.QueryInterface.Interface;
316  InterfaceHDA->Version = IoStack->Parameters.QueryInterface.Version;
317  InterfaceHDA->Size = sizeof(HDAUDIO_BUS_INTERFACE);
318  InterfaceHDA->Context = DeviceExtension;
321 
327  InterfaceHDA->FreeDmaBuffer = HDA_FreeDmaBuffer;
328  InterfaceHDA->FreeDmaEngine = HDA_FreeDmaEngine;
336  return STATUS_SUCCESS;
337  }
338  else if (IsEqualGUIDAligned(*IoStack->Parameters.QueryInterface.InterfaceType, GUID_HDAUDIO_BUS_INTERFACE_V2))
339  {
340  InterfaceHDA = (PHDAUDIO_BUS_INTERFACE_V2)IoStack->Parameters.QueryInterface.Interface;
341  InterfaceHDA->Version = IoStack->Parameters.QueryInterface.Version;
342  InterfaceHDA->Size = sizeof(HDAUDIO_BUS_INTERFACE_V2);
343  InterfaceHDA->Context = DeviceExtension;
346 
352  InterfaceHDA->FreeDmaBuffer = HDA_FreeDmaBuffer;
353  InterfaceHDA->FreeDmaEngine = HDA_FreeDmaEngine;
361 
366  }
367 
368  // FIXME
369  // implement support for GUID_HDAUDIO_BUS_INTERFACE_BDL
371  return STATUS_NOT_SUPPORTED;
372 }
PFREE_DMA_BUFFER FreeDmaBuffer
Definition: hdaudio.h:359
return STATUS_NOT_SUPPORTED
NTSTATUS NTAPI HDA_AllocateCaptureDmaEngine(IN PVOID _context, IN UCHAR CodecAddress, IN PHDAUDIO_STREAM_FORMAT StreamFormat, OUT PHANDLE Handle, OUT PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
VOID NTAPI HDA_InterfaceReference(PVOID BusContext)
PALLOCATE_RENDER_DMA_ENGINE AllocateRenderDmaEngine
Definition: hdaudio.h:356
struct HDA_PDO_DEVICE_EXTENSION * PHDA_PDO_DEVICE_EXTENSION
NTSTATUS NTAPI HDA_AllocateDmaBufferWithNotification(IN PVOID _context, IN HANDLE Handle, IN ULONG NotificationCount, IN SIZE_T RequestedBufferSize, OUT PMDL *BufferMdl, OUT PSIZE_T AllocatedBufferSize, OUT PSIZE_T OffsetFromFirstPage, OUT PUCHAR StreamId, OUT PULONG FifoSize)
PSET_DMA_ENGINE_STATE SetDmaEngineState
Definition: hdaudio.h:361
PGET_LINK_POSITION_REGISTER GetLinkPositionRegister
Definition: hdaudio.h:363
PCHANGE_BANDWIDTH_ALLOCATION ChangeBandwidthAllocation
Definition: hdaudio.h:357
NTSTATUS NTAPI HDA_TransferCodecVerbs(IN PVOID _context, IN ULONG Count, IN OUT PHDAUDIO_CODEC_TRANSFER CodecTransfer, IN PHDAUDIO_TRANSFER_COMPLETE_CALLBACK Callback, IN PVOID Context)
NTSTATUS NTAPI HDA_SetDmaEngineState(IN PVOID _context, IN HDAUDIO_STREAM_STATE StreamState, IN ULONG NumberOfHandles, IN PHANDLE Handles)
PUNREGISTER_NOTIFICATION_EVENT UnregisterNotificationEvent
Definition: hdaudio.h:371
#define IsEqualGUIDAligned(guid1, guid2)
Definition: wdm.template.h:240
PINTERFACE_REFERENCE InterfaceReference
Definition: hdaudio.h:352
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
NTSTATUS NTAPI HDA_FreeDmaBufferWithNotification(IN PVOID _context, IN HANDLE Handle, IN PMDL BufferMdl, IN SIZE_T BufferSize)
VOID NTAPI HDA_GetWallClockRegister(IN PVOID _context, OUT PULONG *Wallclock)
#define FALSE
Definition: types.h:117
_In_ PIRP Irp
Definition: csq.h:116
NTSTATUS NTAPI HDA_UnregisterNotificationEvent(IN PVOID _context, IN HANDLE Handle, IN PKEVENT NotificationEvent)
PALLOCATE_DMA_BUFFER AllocateDmaBuffer
Definition: hdaudio.h:358
PUNREGISTER_EVENT_CALLBACK UnregisterEventCallback
Definition: hdaudio.h:365
NTSTATUS NTAPI HDA_UnregisterEventCallback(IN PVOID _context, IN UCHAR Tag)
NTSTATUS NTAPI HDA_AllocateRenderDmaEngine(IN PVOID _context, IN PHDAUDIO_STREAM_FORMAT StreamFormat, IN BOOLEAN Stripe, OUT PHANDLE Handle, OUT PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
NTSTATUS NTAPI HDA_FreeDmaBuffer(IN PVOID _context, IN HANDLE Handle)
PGET_DEVICE_INFORMATION GetDeviceInformation
Definition: hdaudio.h:366
VOID NTAPI HDA_InterfaceDereference(PVOID BusContext)
#define ASSERT(a)
Definition: mode.c:45
PFREE_DMA_ENGINE FreeDmaEngine
Definition: hdaudio.h:360
PREGISTER_NOTIFICATION_EVENT RegisterNotificationEvent
Definition: hdaudio.h:370
NTSTATUS NTAPI HDA_ChangeBandwidthAllocation(IN PVOID _context, IN HANDLE Handle, IN PHDAUDIO_STREAM_FORMAT StreamFormat, OUT PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
VOID NTAPI HDA_GetResourceInformation(IN PVOID _context, OUT PUCHAR CodecAddress, OUT PUCHAR FunctionGroupStartNode)
NTSTATUS NTAPI HDA_FreeDmaEngine(IN PVOID _context, IN HANDLE Handle)
PALLOCATE_CAPTURE_DMA_ENGINE AllocateCaptureDmaEngine
Definition: hdaudio.h:355
PTRANSFER_CODEC_VERBS TransferCodecVerbs
Definition: hdaudio.h:354
PGET_RESOURCE_INFORMATION GetResourceInformation
Definition: hdaudio.h:367
NTSTATUS NTAPI HDA_AllocateDmaBuffer(IN PVOID _context, IN HANDLE Handle, IN SIZE_T RequestedBufferSize, OUT PMDL *BufferMdl, OUT PSIZE_T AllocatedBufferSize, OUT PUCHAR StreamId, OUT PULONG FifoSize)
NTSTATUS NTAPI HDA_RegisterNotificationEvent(PVOID _context, HANDLE Handle, IN PKEVENT NotificationEvent)
PINTERFACE_DEREFERENCE InterfaceDereference
Definition: hdaudio.h:353
NTSTATUS NTAPI HDA_GetDeviceInformation(IN PVOID _context, OUT PHDAUDIO_DEVICE_INFORMATION DeviceInformation)
PREGISTER_EVENT_CALLBACK RegisterEventCallback
Definition: hdaudio.h:364
__drv_aliasesMem FORCEINLINE PIO_STACK_LOCATION IoGetCurrentIrpStackLocation(_In_ PIRP Irp)
Definition: iofuncs.h:2789
PALLOCATE_DMA_BUFFER_WITH_NOTIFICATION AllocateDmaBufferWithNotification
Definition: hdaudio.h:368
PFREE_DMA_BUFFER_WITH_NOTIFICATION FreeDmaBufferWithNotification
Definition: hdaudio.h:369
PGET_WALL_CLOCK_REGISTER GetWallClockRegister
Definition: hdaudio.h:362
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
NTSTATUS NTAPI HDA_RegisterEventCallback(IN PVOID _context, IN PHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK Routine, IN PVOID Context, OUT PUCHAR Tag)
#define UNIMPLEMENTED
Definition: debug.h:115
struct _HDAUDIO_BUS_INTERFACE_V2 * PHDAUDIO_BUS_INTERFACE_V2
#define STATUS_SUCCESS
Definition: shellext.h:65
NTSTATUS NTAPI HDA_GetLinkPositionRegister(IN PVOID _context, IN HANDLE Handle, OUT PULONG *Position)
struct _NAMED_PIPE_CREATE_PARAMETERS * Parameters
Definition: iotypes.h:3124

Referenced by HDA_PdoPnp().

◆ HDA_RegisterEventCallback()

NTSTATUS NTAPI HDA_RegisterEventCallback ( IN PVOID  _context,
IN PHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK  Routine,
IN PVOID  Context,
OUT PUCHAR  Tag 
)

Definition at line 179 of file businterface.cpp.

184 {
186  *Tag = 1;
187  return STATUS_SUCCESS;
188 }
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4061
#define UNIMPLEMENTED
Definition: debug.h:115
#define STATUS_SUCCESS
Definition: shellext.h:65

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_RegisterNotificationEvent()

NTSTATUS NTAPI HDA_RegisterNotificationEvent ( PVOID  _context,
HANDLE  Handle,
IN PKEVENT  NotificationEvent 
)

Definition at line 274 of file businterface.cpp.

278 {
280  ASSERT(FALSE);
281  return STATUS_NOT_IMPLEMENTED;
282 
283 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_SetDmaEngineState()

NTSTATUS NTAPI HDA_SetDmaEngineState ( IN PVOID  _context,
IN HDAUDIO_STREAM_STATE  StreamState,
IN ULONG  NumberOfHandles,
IN PHANDLE  Handles 
)

Definition at line 144 of file businterface.cpp.

149 {
151  ASSERT(FALSE);
152  return STATUS_NOT_IMPLEMENTED;
153 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_TransferCodecVerbs()

NTSTATUS NTAPI HDA_TransferCodecVerbs ( IN PVOID  _context,
IN ULONG  Count,
IN OUT PHDAUDIO_CODEC_TRANSFER  CodecTransfer,
IN PHDAUDIO_TRANSFER_COMPLETE_CALLBACK  Callback,
IN PVOID  Context 
)

Definition at line 29 of file businterface.cpp.

35 {
37  ULONG Index;
38  PHDA_PDO_DEVICE_EXTENSION DeviceExtension;
39 
40  DPRINT1("HDA_TransferCodecVerbs Count %lu CodecTransfer %p Callback %p Context %p\n", Count, CodecTransfer, Callback, Context);
41 
42  /* get device extension */
43  DeviceExtension = (PHDA_PDO_DEVICE_EXTENSION)_context;
44  ASSERT(DeviceExtension->IsFDO == FALSE);
45 
46  /* FIXME handle callback*/
47  ASSERT(Callback == NULL);
48 
49  for (Index = 0; Index < Count; Index++)
50  {
51  Verbs[Index] = CodecTransfer[Index].Output.Command;
52  }
53 
54  HDA_SendVerbs(DeviceExtension->FDO, DeviceExtension->Codec, Verbs, Responses, Count);
55 
56  for (Index = 0; Index < DeviceExtension->Codec->ResponseCount; Index++)
57  {
58  CodecTransfer[Index].Input.Response = DeviceExtension->Codec->Responses[Index];
59  }
60  return STATUS_SUCCESS;
61 }
PHDA_CODEC_ENTRY Codec
Definition: hdaudbus.h:90
NTSTATUS HDA_SendVerbs(IN PDEVICE_OBJECT DeviceObject, IN PHDA_CODEC_ENTRY Codec, IN PULONG Verbs, OUT PULONG Responses, IN ULONG Count)
Definition: fdo.cpp:138
struct HDA_PDO_DEVICE_EXTENSION * PHDA_PDO_DEVICE_EXTENSION
PDEVICE_OBJECT FDO
Definition: hdaudbus.h:92
#define FALSE
Definition: types.h:117
#define MAX_CODEC_RESPONSES
Definition: driver.h:43
int Count
Definition: noreturn.cpp:7
ULONG Responses[MAX_CODEC_RESPONSES]
Definition: hdaudbus.h:55
#define ASSERT(a)
Definition: mode.c:45
_In_ WDFCOLLECTION _In_ ULONG Index
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:456
#define NULL
Definition: types.h:112
#define DPRINT1
Definition: precomp.h:8
unsigned int ULONG
Definition: retypes.h:1
#define STATUS_SUCCESS
Definition: shellext.h:65
ULONG ResponseCount
Definition: hdaudbus.h:56

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_UnregisterEventCallback()

NTSTATUS NTAPI HDA_UnregisterEventCallback ( IN PVOID  _context,
IN UCHAR  Tag 
)

Definition at line 193 of file businterface.cpp.

196 {
198  ASSERT(FALSE);
199  return STATUS_NOT_IMPLEMENTED;
200 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().

◆ HDA_UnregisterNotificationEvent()

NTSTATUS NTAPI HDA_UnregisterNotificationEvent ( IN PVOID  _context,
IN HANDLE  Handle,
IN PKEVENT  NotificationEvent 
)

Definition at line 287 of file businterface.cpp.

291 {
293  ASSERT(FALSE);
294  return STATUS_NOT_IMPLEMENTED;
295 }
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:45
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by HDA_PDOHandleQueryInterface().