Speaker.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*++
  2. Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. Module Name:
  5. Speaker.h
  6. Abstract:
  7. EFI Speaker Interface Protocol
  8. --*/
  9. #ifndef _PEI_SPEAKER_IF_H
  10. #define _PEI_SPEAKER_IF_H
  11. //
  12. // Global ID Speaker Interface
  13. //
  14. #define PEI_SPEAKER_INTERFACE_PPI_GUID \
  15. { \
  16. 0x30ac275e, 0xbb30, 0x4b84, 0xa1, 0xcd, 0x0a, 0xf1, 0x32, 0x2c, 0x89, 0xc0 \
  17. }
  18. typedef struct _PEI_SPEAKER_IF_PPI PEI_SPEAKER_IF_PPI;
  19. //
  20. // Beep Code
  21. //
  22. typedef
  23. EFI_STATUS
  24. (EFIAPI *EFI_SPEAKER_GENERATE_BEEP) (
  25. IN CONST EFI_PEI_SERVICES **PeiServices,
  26. IN UINTN NumberOfBeep,
  27. IN UINTN BeepDuration,
  28. IN UINTN TimeInterval
  29. );
  30. //
  31. // Set Frequency
  32. //
  33. typedef
  34. EFI_STATUS
  35. (EFIAPI *EFI_SPEAKER_SET_FREQUENCY) (
  36. IN CONST EFI_PEI_SERVICES **PeiServices,
  37. IN UINT16 Frequency
  38. );
  39. //
  40. // Protocol definition
  41. //
  42. typedef struct _PEI_SPEAKER_IF_PPI {
  43. EFI_SPEAKER_SET_FREQUENCY SetSpeakerToneFrequency;
  44. EFI_SPEAKER_GENERATE_BEEP GenerateBeep;
  45. } PEI_SPEAKER_IF_PPI;
  46. extern EFI_GUID gPeiSpeakerInterfacePpiGuid;
  47. #endif