OpenCore  1.0.4
OpenCore Bootloader
1.0.4
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
AppleHda.h File Reference
#include <Protocol/PciIo.h>

Go to the source code of this file.

Data Structures

struct  APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_
 

Macros

#define APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_GUID
 
#define APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_VERSION   0x40000
 

Typedefs

typedef struct APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_ APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL
 
typedef EFI_STATUS(EFIAPI * APPLE_HIGH_DEFINITION_AUDIO_UNKNOWN) (VOID)
 
typedef EFI_STATUS(EFIAPI * APPLE_HIGH_DEFINITION_AUDIO_PLAY_TONE) (IN APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL *This, IN UINT32 ToneCount, IN UINTN ToneLength, IN UINTN SilenceLength, IN UINTN Frequency)
 
typedef EFI_STATUS(EFIAPI * APPLE_HIGH_DEFINITION_AUDIO_PLAY) (IN APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL *This, IN OUT UINTN *Arg1, IN OUT UINTN *Arg2, IN OUT UINTN *Arg3)
 

Variables

EFI_GUID gAppleHighDefinitionAudioProtocolGuid
 

Detailed Description

Apple High Definition Audio protocol.

Copyright (C) 2020, vit9696. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Definition in file AppleHda.h.

Macro Definition Documentation

◆ APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_GUID

#define APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_GUID
Value:
{ 0x3224B169, 0xEC34, 0x46D2, \
{ 0xB7, 0x79, 0xE1, 0xB1, 0x68, 0x7F, 0x52, 0x5F } }

Apple High Definition Audio protocol GUID. 3224B169-EC34-46D2-B779-E1B1687F525F

Definition at line 24 of file AppleHda.h.

◆ APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_VERSION

#define APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL_VERSION   0x40000

Definition at line 28 of file AppleHda.h.

Typedef Documentation

◆ APPLE_HIGH_DEFINITION_AUDIO_PLAY

typedef EFI_STATUS(EFIAPI * APPLE_HIGH_DEFINITION_AUDIO_PLAY) (IN APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL *This, IN OUT UINTN *Arg1, IN OUT UINTN *Arg2, IN OUT UINTN *Arg3)

Definition at line 86 of file AppleHda.h.

◆ APPLE_HIGH_DEFINITION_AUDIO_PLAY_TONE

typedef EFI_STATUS(EFIAPI * APPLE_HIGH_DEFINITION_AUDIO_PLAY_TONE) (IN APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL *This, IN UINT32 ToneCount, IN UINTN ToneLength, IN UINTN SilenceLength, IN UINTN Frequency)

Generate cycles of beep signals with silence afterwards, blocking.

Parameters
[in]ThisThis protocol instance.
[in]ToneCountNumber of signals to produce.
[in]ToneLengthSignal length in milliseconds.
[in]SilenceLengthSilence length in milliseconds.
[in]FrequencyTone frequency, up to 44100 Hz, can be 0 for default.
Return values
EFI_SUCCESSafter signal completion.
EFI_SUCCESSif ToneCount or ToneLength is 0.

Definition at line 76 of file AppleHda.h.

◆ APPLE_HIGH_DEFINITION_AUDIO_PROTOCOL

Note, ToneLength and SilenceLength were in microseconds for older models:

  • MacBookPro1,1
  • MacBookPro1,1
  • MacBookPro1,2
  • MacBookPro2,1
  • MacBookPro2,2
  • MacBookP1,1
  • MacBookP1,2
  • MacBookP2,1
  • MacBookP2,2
  • MacBook1,1
  • MacBook2,1
  • Macmini1,1
  • Macmini2,1
  • iMac4,1
  • iMac4,2
  • iMac5,1
  • iMac5,2
  • iMac6,1
  • MacPro1,1
  • MacPro2,1
  • XServe1,1

Definition at line 55 of file AppleHda.h.

◆ APPLE_HIGH_DEFINITION_AUDIO_UNKNOWN

typedef EFI_STATUS(EFIAPI * APPLE_HIGH_DEFINITION_AUDIO_UNKNOWN) (VOID)

Definition at line 58 of file AppleHda.h.

Variable Documentation

◆ gAppleHighDefinitionAudioProtocolGuid

EFI_GUID gAppleHighDefinitionAudioProtocolGuid
extern