ReactOS 0.4.16-dev-340-g0540c21
hdaudio.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _HDAUDIO_CODEC_COMMAND
 
struct  _HDAUDIO_CODEC_RESPONSE
 
struct  _HDAUDIO_CODEC_TRANSFER
 
struct  _HDAUDIO_STREAM_FORMAT
 
struct  _HDAUDIO_CONVERTER_FORMAT
 
struct  _HDAUDIO_DEVICE_INFORMATION
 
struct  _HDAUDIO_BUFFER_DESCRIPTOR
 
struct  _HDAUDIO_BUS_INTERFACE
 
struct  _HDAUDIO_BUS_INTERFACE_BDL
 
struct  _HDAUDIO_BUS_INTERFACE_V2
 

Macros

#define _HDAUDIO_CODEC_TRANSFER_
 

Typedefs

typedef struct _HDAUDIO_CODEC_COMMAND HDAUDIO_CODEC_COMMAND
 
typedef struct _HDAUDIO_CODEC_COMMANDPHDAUDIO_CODEC_COMMAND
 
typedef struct _HDAUDIO_CODEC_RESPONSE HDAUDIO_CODEC_RESPONSE
 
typedef struct _HDAUDIO_CODEC_RESPONSEPHDAUDIO_CODEC_RESPONSE
 
typedef struct _HDAUDIO_CODEC_TRANSFER HDAUDIO_CODEC_TRANSFER
 
typedef struct _HDAUDIO_CODEC_TRANSFERPHDAUDIO_CODEC_TRANSFER
 
typedef struct _HDAUDIO_STREAM_FORMAT HDAUDIO_STREAM_FORMAT
 
typedef struct _HDAUDIO_STREAM_FORMATPHDAUDIO_STREAM_FORMAT
 
typedef struct _HDAUDIO_CONVERTER_FORMAT HDAUDIO_CONVERTER_FORMAT
 
typedef struct _HDAUDIO_CONVERTER_FORMATPHDAUDIO_CONVERTER_FORMAT
 
typedef enum _HDAUDIO_STREAM_STATE HDAUDIO_STREAM_STATE
 
typedef enum _HDAUDIO_STREAM_STATEPHDAUDIO_STREAM_STATE
 
typedef VOID(NTAPIPHDAUDIO_TRANSFER_COMPLETE_CALLBACK) (HDAUDIO_CODEC_TRANSFER *, PVOID)
 
typedef VOID(NTAPIPHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK) (HDAUDIO_CODEC_RESPONSE, PVOID)
 
typedef struct _HDAUDIO_DEVICE_INFORMATION HDAUDIO_DEVICE_INFORMATION
 
typedef struct _HDAUDIO_DEVICE_INFORMATIONPHDAUDIO_DEVICE_INFORMATION
 
typedef struct _HDAUDIO_BUFFER_DESCRIPTOR HDAUDIO_BUFFER_DESCRIPTOR
 
typedef struct _HDAUDIO_BUFFER_DESCRIPTORPHDAUDIO_BUFFER_DESCRIPTOR
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPTRANSFER_CODEC_VERBS) (_In_ PVOID _context, _In_ ULONG Count, _Inout_updates_(Count) PHDAUDIO_CODEC_TRANSFER CodecTransfer, _In_opt_ PHDAUDIO_TRANSFER_COMPLETE_CALLBACK Callback, _In_opt_ PVOID Context)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPALLOCATE_CAPTURE_DMA_ENGINE) (_In_ PVOID _context, _In_ UCHAR CodecAddress, _In_ PHDAUDIO_STREAM_FORMAT StreamFormat, _Out_ PHANDLE Handle, _Out_ PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPALLOCATE_RENDER_DMA_ENGINE) (_In_ PVOID _context, _In_ PHDAUDIO_STREAM_FORMAT StreamFormat, _In_ BOOLEAN Stripe, _Out_ PHANDLE Handle, _Out_ PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPCHANGE_BANDWIDTH_ALLOCATION) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PHDAUDIO_STREAM_FORMAT StreamFormat, _Out_ PHDAUDIO_CONVERTER_FORMAT ConverterFormat)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPALLOCATE_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ SIZE_T RequestedBufferSize, _Out_ PMDL *BufferMdl, _Out_ PSIZE_T AllocatedBufferSize, _Out_ PUCHAR StreamId, _Out_ PULONG FifoSize)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPFREE_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPFREE_DMA_ENGINE) (_In_ PVOID _context, _In_ HANDLE Handle)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPSET_DMA_ENGINE_STATE) (_In_ PVOID _context, _In_ HDAUDIO_STREAM_STATE StreamState, _In_ ULONG NumberOfHandles, _In_reads_(NumberOfHandles) PHANDLE Handles)
 
typedef VOID(NTAPIPGET_WALL_CLOCK_REGISTER) (_In_ PVOID _context, _Out_ PULONG *Wallclock)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPGET_LINK_POSITION_REGISTER) (_In_ PVOID _context, _In_ HANDLE Handle, _Out_ PULONG *Position)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPREGISTER_EVENT_CALLBACK) (_In_ PVOID _context, _In_ PHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK Routine, _In_opt_ PVOID Context, _Out_ PUCHAR Tag)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPUNREGISTER_EVENT_CALLBACK) (_In_ PVOID _context, _In_ UCHAR Tag)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPGET_DEVICE_INFORMATION) (_In_ PVOID _context, _Out_ PHDAUDIO_DEVICE_INFORMATION DeviceInformation)
 
typedef VOID(NTAPIPGET_RESOURCE_INFORMATION) (_In_ PVOID _context, _Out_ PUCHAR CodecAddress, _Out_ PUCHAR FunctionGroupStartNode)
 
typedef struct _HDAUDIO_BUS_INTERFACE HDAUDIO_BUS_INTERFACE
 
typedef struct _HDAUDIO_BUS_INTERFACEPHDAUDIO_BUS_INTERFACE
 
typedef void(NTAPIPHDAUDIO_BDL_ISR) (_In_ VOID *Context, _In_ ULONG InterruptBitMask)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPALLOCATE_CONTIGUOUS_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle, ULONG RequestedBufferSize, _Out_ PVOID *DataBuffer, _Out_ PHDAUDIO_BUFFER_DESCRIPTOR *BdlBuffer)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPFREE_CONTIGUOUS_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPSETUP_DMA_ENGINE_WITH_BDL) (_In_reads_bytes_(BufferLength) PVOID _context, _In_ HANDLE Handle, _In_ ULONG BufferLength, _In_ ULONG Lvi, _In_ PHDAUDIO_BDL_ISR Isr, _In_ PVOID Context, _Out_ PUCHAR StreamId, _Out_ PULONG FifoSize)
 
typedef struct _HDAUDIO_BUS_INTERFACE_BDL HDAUDIO_BUS_INTERFACE_BDL
 
typedef struct _HDAUDIO_BUS_INTERFACE_BDLPHDAUDIO_BUS_INTERFACE_BDL
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPALLOCATE_DMA_BUFFER_WITH_NOTIFICATION) (_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)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPFREE_DMA_BUFFER_WITH_NOTIFICATION) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PMDL BufferMdl, _In_ SIZE_T BufferSize)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPREGISTER_NOTIFICATION_EVENT) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PKEVENT NotificationEvent)
 
typedef _Must_inspect_result_ NTSTATUS(NTAPIPUNREGISTER_NOTIFICATION_EVENT) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PKEVENT NotificationEvent)
 
typedef struct _HDAUDIO_BUS_INTERFACE_V2 HDAUDIO_BUS_INTERFACE_V2
 
typedef struct _HDAUDIO_BUS_INTERFACE_V2PHDAUDIO_BUS_INTERFACE_V2
 

Enumerations

enum  _HDAUDIO_STREAM_STATE { ResetState = 0 , StopState = 1 , PauseState = 1 , RunState = 2 }
 

Functions

 DEFINE_GUID (GUID_HDAUDIO_BUS_INTERFACE, 0xd2eaf88b, 0xab18, 0x41a8, 0xb6, 0x64, 0x8d, 0x59, 0x21, 0x67, 0x67, 0x1b)
 
 DEFINE_GUID (GUID_HDAUDIO_BUS_INTERFACE_BDL, 0xb4d65397, 0x5634, 0x40b0, 0xb0, 0x68, 0xf5, 0xb9, 0xf8, 0xb9, 0x67, 0xa5)
 
 DEFINE_GUID (GUID_HDAUDIO_BUS_INTERFACE_V2, 0xb52af5fb, 0x424b, 0x4bb9, 0xa1, 0x60, 0x5b, 0x38, 0xbe, 0x94, 0xe5, 0x68)
 
 DEFINE_GUID (GUID_HDAUDIO_BUS_CLASS, 0xbbd1a745, 0xadd6, 0x4575, 0x9c, 0x2e, 0x9b, 0x42, 0x8d, 0x1c, 0x32, 0x66)
 

Macro Definition Documentation

◆ _HDAUDIO_CODEC_TRANSFER_

#define _HDAUDIO_CODEC_TRANSFER_

Definition at line 15 of file hdaudio.h.

Typedef Documentation

◆ HDAUDIO_BUFFER_DESCRIPTOR

◆ HDAUDIO_BUS_INTERFACE

◆ HDAUDIO_BUS_INTERFACE_BDL

◆ HDAUDIO_BUS_INTERFACE_V2

◆ HDAUDIO_CODEC_COMMAND

◆ HDAUDIO_CODEC_RESPONSE

◆ HDAUDIO_CODEC_TRANSFER

◆ HDAUDIO_CONVERTER_FORMAT

◆ HDAUDIO_DEVICE_INFORMATION

◆ HDAUDIO_STREAM_FORMAT

◆ HDAUDIO_STREAM_STATE

◆ PALLOCATE_CAPTURE_DMA_ENGINE

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PALLOCATE_CAPTURE_DMA_ENGINE) (_In_ PVOID _context, _In_ UCHAR CodecAddress, _In_ PHDAUDIO_STREAM_FORMAT StreamFormat, _Out_ PHANDLE Handle, _Out_ PHDAUDIO_CONVERTER_FORMAT ConverterFormat)

Definition at line 125 of file hdaudio.h.

◆ PALLOCATE_CONTIGUOUS_DMA_BUFFER

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PALLOCATE_CONTIGUOUS_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle, ULONG RequestedBufferSize, _Out_ PVOID *DataBuffer, _Out_ PHDAUDIO_BUFFER_DESCRIPTOR *BdlBuffer)

Definition at line 258 of file hdaudio.h.

◆ PALLOCATE_DMA_BUFFER

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PALLOCATE_DMA_BUFFER) (_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 154 of file hdaudio.h.

◆ PALLOCATE_DMA_BUFFER_WITH_NOTIFICATION

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PALLOCATE_DMA_BUFFER_WITH_NOTIFICATION) (_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 311 of file hdaudio.h.

◆ PALLOCATE_RENDER_DMA_ENGINE

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PALLOCATE_RENDER_DMA_ENGINE) (_In_ PVOID _context, _In_ PHDAUDIO_STREAM_FORMAT StreamFormat, _In_ BOOLEAN Stripe, _Out_ PHANDLE Handle, _Out_ PHDAUDIO_CONVERTER_FORMAT ConverterFormat)

Definition at line 135 of file hdaudio.h.

◆ PCHANGE_BANDWIDTH_ALLOCATION

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PCHANGE_BANDWIDTH_ALLOCATION) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PHDAUDIO_STREAM_FORMAT StreamFormat, _Out_ PHDAUDIO_CONVERTER_FORMAT ConverterFormat)

Definition at line 145 of file hdaudio.h.

◆ PFREE_CONTIGUOUS_DMA_BUFFER

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PFREE_CONTIGUOUS_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle)

Definition at line 268 of file hdaudio.h.

◆ PFREE_DMA_BUFFER

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PFREE_DMA_BUFFER) (_In_ PVOID _context, _In_ HANDLE Handle)

Definition at line 166 of file hdaudio.h.

◆ PFREE_DMA_BUFFER_WITH_NOTIFICATION

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PFREE_DMA_BUFFER_WITH_NOTIFICATION) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PMDL BufferMdl, _In_ SIZE_T BufferSize)

Definition at line 325 of file hdaudio.h.

◆ PFREE_DMA_ENGINE

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PFREE_DMA_ENGINE) (_In_ PVOID _context, _In_ HANDLE Handle)

Definition at line 173 of file hdaudio.h.

◆ PGET_DEVICE_INFORMATION

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PGET_DEVICE_INFORMATION) (_In_ PVOID _context, _Out_ PHDAUDIO_DEVICE_INFORMATION DeviceInformation)

Definition at line 218 of file hdaudio.h.

◆ PGET_LINK_POSITION_REGISTER

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PGET_LINK_POSITION_REGISTER) (_In_ PVOID _context, _In_ HANDLE Handle, _Out_ PULONG *Position)

Definition at line 194 of file hdaudio.h.

◆ PGET_RESOURCE_INFORMATION

typedef VOID(NTAPI * PGET_RESOURCE_INFORMATION) (_In_ PVOID _context, _Out_ PUCHAR CodecAddress, _Out_ PUCHAR FunctionGroupStartNode)

Definition at line 223 of file hdaudio.h.

◆ PGET_WALL_CLOCK_REGISTER

typedef VOID(NTAPI * PGET_WALL_CLOCK_REGISTER) (_In_ PVOID _context, _Out_ PULONG *Wallclock)

Definition at line 187 of file hdaudio.h.

◆ PHDAUDIO_BDL_ISR

typedef void(NTAPI * PHDAUDIO_BDL_ISR) (_In_ VOID *Context, _In_ ULONG InterruptBitMask)

Definition at line 251 of file hdaudio.h.

◆ PHDAUDIO_BUFFER_DESCRIPTOR

◆ PHDAUDIO_BUS_INTERFACE

◆ PHDAUDIO_BUS_INTERFACE_BDL

◆ PHDAUDIO_BUS_INTERFACE_V2

◆ PHDAUDIO_CODEC_COMMAND

◆ PHDAUDIO_CODEC_RESPONSE

◆ PHDAUDIO_CODEC_TRANSFER

◆ PHDAUDIO_CONVERTER_FORMAT

◆ PHDAUDIO_DEVICE_INFORMATION

◆ PHDAUDIO_STREAM_FORMAT

◆ PHDAUDIO_STREAM_STATE

◆ PHDAUDIO_TRANSFER_COMPLETE_CALLBACK

typedef VOID(NTAPI * PHDAUDIO_TRANSFER_COMPLETE_CALLBACK) (HDAUDIO_CODEC_TRANSFER *, PVOID)

Definition at line 89 of file hdaudio.h.

◆ PHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK

typedef VOID(NTAPI * PHDAUDIO_UNSOLICITED_RESPONSE_CALLBACK) (HDAUDIO_CODEC_RESPONSE, PVOID)

Definition at line 94 of file hdaudio.h.

◆ PREGISTER_EVENT_CALLBACK

Definition at line 202 of file hdaudio.h.

◆ PREGISTER_NOTIFICATION_EVENT

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PREGISTER_NOTIFICATION_EVENT) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PKEVENT NotificationEvent)

Definition at line 334 of file hdaudio.h.

◆ PSET_DMA_ENGINE_STATE

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PSET_DMA_ENGINE_STATE) (_In_ PVOID _context, _In_ HDAUDIO_STREAM_STATE StreamState, _In_ ULONG NumberOfHandles, _In_reads_(NumberOfHandles) PHANDLE Handles)

Definition at line 180 of file hdaudio.h.

◆ PSETUP_DMA_ENGINE_WITH_BDL

Definition at line 275 of file hdaudio.h.

◆ PTRANSFER_CODEC_VERBS

◆ PUNREGISTER_EVENT_CALLBACK

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PUNREGISTER_EVENT_CALLBACK) (_In_ PVOID _context, _In_ UCHAR Tag)

Definition at line 211 of file hdaudio.h.

◆ PUNREGISTER_NOTIFICATION_EVENT

typedef _Must_inspect_result_ NTSTATUS(NTAPI * PUNREGISTER_NOTIFICATION_EVENT) (_In_ PVOID _context, _In_ HANDLE Handle, _In_ PKEVENT NotificationEvent)

Definition at line 342 of file hdaudio.h.

Enumeration Type Documentation

◆ _HDAUDIO_STREAM_STATE

Enumerator
ResetState 
StopState 
PauseState 
RunState 

Definition at line 82 of file hdaudio.h.

82 {
83 ResetState = 0,
84 StopState = 1,
85 PauseState = 1,
86 RunState = 2
enum _HDAUDIO_STREAM_STATE * PHDAUDIO_STREAM_STATE
enum _HDAUDIO_STREAM_STATE HDAUDIO_STREAM_STATE
@ PauseState
Definition: hdaudio.h:85
@ RunState
Definition: hdaudio.h:86
@ StopState
Definition: hdaudio.h:84
@ ResetState
Definition: hdaudio.h:83

Function Documentation

◆ DEFINE_GUID() [1/4]

DEFINE_GUID ( GUID_HDAUDIO_BUS_CLASS  ,
0xbbd1a745  ,
0xadd6  ,
0x4575  ,
0x9c  ,
0x2e  ,
0x9b  ,
0x42  ,
0x8d  ,
0x1c  ,
0x32  ,
0x66   
)

◆ DEFINE_GUID() [2/4]

DEFINE_GUID ( GUID_HDAUDIO_BUS_INTERFACE  ,
0xd2eaf88b  ,
0xab18  ,
0x41a8  ,
0xb6  ,
0x64  ,
0x8d  ,
0x59  ,
0x21  ,
0x67  ,
0x67  ,
0x1b   
)

◆ DEFINE_GUID() [3/4]

DEFINE_GUID ( GUID_HDAUDIO_BUS_INTERFACE_BDL  ,
0xb4d65397  ,
0x5634  ,
0x40b0  ,
0xb0  ,
0x68  ,
0xf5  ,
0xb9  ,
0xf8  ,
0xb9  ,
0x67  ,
0xa5   
)

◆ DEFINE_GUID() [4/4]

DEFINE_GUID ( GUID_HDAUDIO_BUS_INTERFACE_V2  ,
0xb52af5fb  ,
0x424b  ,
0x4bb9  ,
0xa1  ,
0x60  ,
0x5b  ,
0x38  ,
0xbe  ,
0x94  ,
0xe5  ,
0x68   
)