ReactOS 0.4.16-dev-2293-g4d8327b
adsp.h
Go to the documentation of this file.
1#ifndef __ADSP_INTERFACE
2#define __ADSP_INTERFACE
3
4//
5// The ADSP_BUS_INTERFACE interface GUID
6//
7// {752A2CAE-3455-4D18-A184-8B34B22632CE}
8DEFINE_GUID(GUID_ADSP_BUS_INTERFACE,
9 0x752a2cae, 0x3455, 0x4d18, 0xa1, 0x84, 0x8b, 0x34, 0xb2, 0x26, 0x32, 0xce);
10
11typedef struct _NHLT_INFO {
15
23typedef _Must_inspect_result_ NTSTATUS(*PDSP_PREPARE_STREAM)(_In_ PVOID _context, _In_ HANDLE Handle, _In_ unsigned int ByteSize, _In_ int frags, _Out_ PVOID* bdlBuf);
26typedef void (*PDSP_START_STOP_STREAM)(_In_ PVOID _context, _In_ HANDLE Handle, BOOL startStop);
29
30typedef struct _ADSP_BUS_INTERFACE
31{
32 //
33 // First we define the standard INTERFACE structure ...
34 //
40
41 //
42 // Then we expand the structure with the ADSP_BUS_INTERFACE stuff.
43
56
60
61#ifndef ADSP_DECL
63#endif
64#endif
unsigned short UINT16
Definition: actypes.h:129
unsigned char UINT8
Definition: actypes.h:128
COMPILER_DEPENDENT_UINT64 UINT64
Definition: actypes.h:131
ADSP_BUS_INTERFACE ADSP_BusInterface(PVOID Context)
Definition: adsp.cpp:369
_Must_inspect_result_ NTSTATUS(* PGET_ADSP_RESOURCES)(_In_ PVOID _context, _Out_ _PCI_BAR *hdaBar, _Out_ _PCI_BAR *adspBar, PVOID *ppcap, PNHLT_INFO nhltInfo, _Out_ BUS_INTERFACE_STANDARD *pciConfig)
Definition: adsp.h:16
struct _NHLT_INFO * PNHLT_INFO
_Must_inspect_result_ NTSTATUS(* PDSP_CLEANUP_STREAM)(_In_ PVOID _context, _In_ HANDLE Handle)
Definition: adsp.h:24
struct _ADSP_BUS_INTERFACE ADSP_BUS_INTERFACE
_Must_inspect_result_ NTSTATUS(* PREGISTER_ADSP_INTERRUPT)(_In_ PVOID _context, _In_ PADSP_INTERRUPT_CALLBACK callback, _In_ PVOID callbackContext)
Definition: adsp.h:19
void(* PDSP_ENABLE_SPIB)(_In_ PVOID _context, _In_ HANDLE Handle, UINT32 value)
Definition: adsp.h:27
_Must_inspect_result_ NTSTATUS(* PUNREGISTER_ADSP_INTERRUPT)(_In_ PVOID _context)
Definition: adsp.h:20
_Must_inspect_result_ NTSTATUS(* PFREE_STREAM)(_In_ PVOID _context, _In_ HANDLE Handle)
Definition: adsp.h:22
void(* PDSP_DISABLE_SPIB)(_In_ PVOID _context, _In_ HANDLE Handle)
Definition: adsp.h:28
struct _NHLT_INFO NHLT_INFO
void(* PDSP_START_STOP_STREAM)(_In_ PVOID _context, _In_ HANDLE Handle, BOOL startStop)
Definition: adsp.h:26
_Must_inspect_result_ UINT32(* PDSP_STREAM_POSITION)(_In_ PVOID _context, _In_ HANDLE Handle)
Definition: adsp.h:25
_Must_inspect_result_ BOOL(* PADSP_INTERRUPT_CALLBACK)(PVOID context)
Definition: adsp.h:18
struct _ADSP_BUS_INTERFACE * PADSP_BUS_INTERFACE
_Must_inspect_result_ NTSTATUS(* PDSP_SET_POWER_STATE)(_In_ PVOID _context, _In_ DEVICE_POWER_STATE newPowerState)
Definition: adsp.h:17
_Must_inspect_result_ NTSTATUS(* PDSP_PREPARE_STREAM)(_In_ PVOID _context, _In_ HANDLE Handle, _In_ unsigned int ByteSize, _In_ int frags, _Out_ PVOID *bdlBuf)
Definition: adsp.h:23
_Must_inspect_result_ NTSTATUS(* PGET_STREAM)(_In_ PVOID _context, HDAUDIO_STREAM_FORMAT StreamFormat, PHANDLE Handle, _Out_ UINT8 *streamTag)
Definition: adsp.h:21
#define NTSTATUS
Definition: precomp.h:19
VOID(WINAPI * PINTERFACE_DEREFERENCE)(PVOID Context)
Definition: precomp.h:16
VOID(WINAPI * PINTERFACE_REFERENCE)(PVOID Context)
Definition: precomp.h:13
unsigned int BOOL
Definition: ntddk_ex.h:94
ULONG Handle
Definition: gdb_input.c:15
static IPrintDialogCallback callback
Definition: printdlg.c:326
#define _Must_inspect_result_
Definition: no_sal2.h:62
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define BOOL
Definition: nt_native.h:43
enum _DEVICE_POWER_STATE DEVICE_POWER_STATE
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
unsigned short USHORT
Definition: pedump.c:61
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
PREGISTER_ADSP_INTERRUPT RegisterInterrupt
Definition: adsp.h:47
PDSP_SET_POWER_STATE SetDSPPowerState
Definition: adsp.h:46
PDSP_DISABLE_SPIB DSPDisableSPIB
Definition: adsp.h:58
PGET_ADSP_RESOURCES GetResources
Definition: adsp.h:45
PUNREGISTER_ADSP_INTERRUPT UnregisterInterrupt
Definition: adsp.h:48
PDSP_STREAM_POSITION StreamPosition
Definition: adsp.h:55
USHORT Version
Definition: adsp.h:36
PGET_STREAM GetRenderStream
Definition: adsp.h:49
PVOID Context
Definition: adsp.h:37
PDSP_ENABLE_SPIB DSPEnableSPIB
Definition: adsp.h:57
USHORT Size
Definition: adsp.h:35
PINTERFACE_REFERENCE InterfaceReference
Definition: adsp.h:38
PINTERFACE_DEREFERENCE InterfaceDereference
Definition: adsp.h:39
PDSP_CLEANUP_STREAM CleanupDSP
Definition: adsp.h:53
PDSP_PREPARE_STREAM PrepareDSP
Definition: adsp.h:52
UINT16 CtlrDevId
Definition: adsp.h:44
PGET_STREAM GetCaptureStream
Definition: adsp.h:50
PDSP_START_STOP_STREAM TriggerDSP
Definition: adsp.h:54
PFREE_STREAM FreeStream
Definition: adsp.h:51
PVOID nhlt
Definition: adsp.h:12
UINT64 nhltSz
Definition: adsp.h:13
Definition: fdo.h:9
Definition: http.c:7252
uint32_t UINT32
Definition: typedefs.h:59
Definition: pdh_main.c:96
_IRQL_requires_same_ _In_ CLONG ByteSize
Definition: rtltypes.h:412