OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
HdaCodecInfo.h
Go to the documentation of this file.
1/*
2 * File: HdaCodecInfo.h
3 *
4 * Copyright (c) 2018 John Davis
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in all
14 * copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22 * SOFTWARE.
23 */
24
25#ifndef EFI_HDA_CODEC_INFO_H
26#define EFI_HDA_CODEC_INFO_H
27
28#include <Uefi.h>
29
33#define EFI_HDA_CODEC_INFO_PROTOCOL_GUID \
34 { 0x6C9CDDE1, 0xE8A5, 0x43E5, \
35 { 0xBE, 0x88, 0xDA, 0x15, 0xBC, 0x1C, 0x02, 0x50 } }
36
38
90
100typedef
101EFI_STATUS
104 OUT UINT8 *Address
105 );
106
116typedef
117EFI_STATUS
120 OUT CONST CHAR16 **CodecName
121 );
122
132typedef
133EFI_STATUS
136 OUT UINT32 *VendorId
137 );
138
148typedef
149EFI_STATUS
152 OUT UINT32 *RevisionId
153 );
154
165typedef
166EFI_STATUS
169 OUT UINT8 *AudioFuncId,
170 OUT BOOLEAN *UnsolCapable
171 );
172
183typedef
184EFI_STATUS
187 OUT UINT32 *Rates,
188 OUT UINT32 *Formats
189 );
190
201typedef
202EFI_STATUS
205 OUT UINT32 *AmpInCaps,
206 OUT UINT32 *AmpOutCaps
207 );
208
219typedef
220EFI_STATUS
223 OUT HDA_WIDGET **Widgets,
224 OUT UINTN *WidgetCount
225 );
226
236typedef
237EFI_STATUS
239 IN HDA_WIDGET *Widgets,
240 IN UINTN WidgetCount
241 );
242
257
258extern EFI_GUID gEfiHdaCodecInfoProtocolGuid;
259
260#endif // EFI_HDA_CODEC_INFO_H
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_FREE_WIDGETS_BUFFER)(IN HDA_WIDGET *Widgets, IN UINTN WidgetCount)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_ADDRESS)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *Address)
EFI_GUID gEfiHdaCodecInfoProtocolGuid
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_WIDGETS)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT HDA_WIDGET **Widgets, OUT UINTN *WidgetCount)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_REVISION_ID)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *RevisionId)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_NAME)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT CONST CHAR16 **CodecName)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_VENDOR_ID)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *VendorId)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_AUDIO_FUNC_ID)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT8 *AudioFuncId, OUT BOOLEAN *UnsolCapable)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_DEFAULT_AMP_CAPS)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *AmpInCaps, OUT UINT32 *AmpOutCaps)
EFI_STATUS(EFIAPI * EFI_HDA_CODEC_INFO_GET_DEFAULT_RATES_FORMATS)(IN EFI_HDA_CODEC_INFO_PROTOCOL *This, OUT UINT32 *Rates, OUT UINT32 *Formats)
EFI_HDA_CODEC_INFO_GET_NAME GetName
EFI_HDA_CODEC_INFO_GET_VENDOR_ID GetVendorId
EFI_HDA_CODEC_INFO_GET_DEFAULT_RATES_FORMATS GetDefaultRatesFormats
EFI_HDA_CODEC_INFO_GET_AUDIO_FUNC_ID GetAudioFuncId
EFI_HDA_CODEC_INFO_GET_WIDGETS GetWidgets
EFI_HDA_CODEC_INFO_GET_REVISION_ID GetRevisionId
EFI_HDA_CODEC_INFO_GET_ADDRESS GetAddress
EFI_HDA_CODEC_INFO_FREE_WIDGETS_BUFFER FreeWidgetsBuffer
EFI_HDA_CODEC_INFO_GET_DEFAULT_AMP_CAPS GetDefaultAmpCaps
UINT8 DefaultPinControl
UINT8 DefaultEapd
UINT32 AmpInCapabilities
UINT32 DefaultConfiguration
UINT8 DefaultConvChannelCount
UINT32 ConnectionCount
UINT32 SupportedPcmRates
UINT32 DefaultPowerState
UINT8 AmpOutRightDefaultGainMute
UINT32 SupportedPowerStates
UINT32 VolumeCapabilities
UINT16 * Connections
UINT32 SupportedFormats
UINT8 DefaultVolume
UINT8 * AmpInLeftDefaultGainMute
UINT8 DefaultConvStreamChannel
UINT32 Capabilities
UINT8 DefaultUnSol
UINT8 AmpOutLeftDefaultGainMute
UINT16 DefaultConvFormat
UINT32 PinCapabilities
UINT8 * AmpInRightDefaultGainMute
UINT32 AmpOutCapabilities