OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
HdaCodecInfo.h File Reference
#include <Uefi.h>

Go to the source code of this file.

Data Structures

struct  HDA_WIDGET
 
struct  EFI_HDA_CODEC_INFO_PROTOCOL_
 

Macros

#define EFI_HDA_CODEC_INFO_PROTOCOL_GUID
 

Typedefs

typedef struct EFI_HDA_CODEC_INFO_PROTOCOL_ EFI_HDA_CODEC_INFO_PROTOCOL
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_ADDRESS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *Address)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_NAME) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT CONST CHAR16 **CodecName)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_VENDOR_ID) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *VendorId)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_REVISION_ID) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *RevisionId)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_AUDIO_FUNC_ID) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *AudioFuncId, OUT BOOLEAN *UnsolCapable)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_DEFAULT_RATES_FORMATS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *Rates, OUT UINT32 *Formats)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_DEFAULT_AMP_CAPS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *AmpInCaps, OUT UINT32 *AmpOutCaps)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_WIDGETS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT HDA_WIDGET **Widgets, OUT UINTN *WidgetCount)
 
typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_FREE_WIDGETS_BUFFER) (IN HDA_WIDGET *Widgets, IN UINTN WidgetCount)
 

Variables

EFI_GUID gEfiHdaCodecInfoProtocolGuid
 

Macro Definition Documentation

◆ EFI_HDA_CODEC_INFO_PROTOCOL_GUID

#define EFI_HDA_CODEC_INFO_PROTOCOL_GUID
Value:
{ 0x6C9CDDE1, 0xE8A5, 0x43E5, \
{ 0xBE, 0x88, 0xDA, 0x15, 0xBC, 0x1C, 0x02, 0x50 } }

HDA Codec Info protocol GUID.

Definition at line 33 of file HdaCodecInfo.h.

Typedef Documentation

◆ EFI_HDA_CODEC_INFO_FREE_WIDGETS_BUFFER

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_FREE_WIDGETS_BUFFER) (IN HDA_WIDGET *Widgets, IN UINTN WidgetCount)

Frees an array of HDA_WIDGET.

Parameters
[in]WidgetsA pointer to the buffer array of widgets that is to be freed.
[in]WidgetCountThe number of widgets in Widgets.
Return values
EFI_SUCCESSThe buffer was freed.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 237 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_ADDRESS

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_ADDRESS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *Address)

Gets the codec's address.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]VendorIdThe address of the codec.
Return values
EFI_SUCCESSThe address was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 101 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_AUDIO_FUNC_ID

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_AUDIO_FUNC_ID) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *AudioFuncId, OUT BOOLEAN *UnsolCapable)

Gets the node ID of the codec's audio function.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]AudioFuncIdThe node ID of the codec's audio function.
[out]UnsolCapableWhether or not the function supports unsolicitation.
Return values
EFI_SUCCESSThe node ID was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 166 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_DEFAULT_AMP_CAPS

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_DEFAULT_AMP_CAPS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *AmpInCaps, OUT UINT32 *AmpOutCaps)

Gets the codec's default amp capabilities.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]AmpInCapsThe default input amp capabilities.
[out]AmpOutCapsThe default output amp capabilities.
Return values
EFI_SUCCESSThe default amp capabilities were retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 202 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_DEFAULT_RATES_FORMATS

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_DEFAULT_RATES_FORMATS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *Rates, OUT UINT32 *Formats)

Gets the codec's default supported stream rates and formats.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]RatesThe default supported rates.
[out]FormatsThe default supported formats.
Return values
EFI_SUCCESSThe stream rates and formats were retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 184 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_NAME

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_NAME) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT CONST CHAR16 **CodecName)

Gets the codec's name.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]CodecNameA pointer to the buffer to return the codec name.
Return values
EFI_SUCCESSThe codec name was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 117 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_REVISION_ID

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_REVISION_ID) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *RevisionId)

Gets the codec's revision ID.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]RevisionIdThe revision ID of the codec.
Return values
EFI_SUCCESSThe revision ID was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 149 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_VENDOR_ID

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_VENDOR_ID) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *VendorId)

Gets the codec's vendor and device ID.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]VendorIdThe vendor and device ID of the codec.
Return values
EFI_SUCCESSThe vendor and device ID was retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 133 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_GET_WIDGETS

typedef EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_WIDGETS) (IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT HDA_WIDGET **Widgets, OUT UINTN *WidgetCount)

Gets the codec's widgets.

Parameters
[in]ThisA pointer to the EFI_HDA_CODEC_INFO_PROTOCOL instance.
[out]WidgetsA pointer to the buffer to return the requested array of widgets.
[out]WidgetCountThe number of widgets returned in Widgets.
Return values
EFI_SUCCESSThe widgets were retrieved.
EFI_INVALID_PARAMETEROne or more parameters are invalid.

Definition at line 220 of file HdaCodecInfo.h.

◆ EFI_HDA_CODEC_INFO_PROTOCOL

Definition at line 37 of file HdaCodecInfo.h.

Variable Documentation

◆ gEfiHdaCodecInfoProtocolGuid

EFI_GUID gEfiHdaCodecInfoProtocolGuid
extern