]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/Include/Ppi/Speaker.h
ArmPkg/CompilerIntrinsicsLib: Add uread, uwrite GCC assembly sources
[mirror_edk2.git] / Vlv2TbltDevicePkg / Include / Ppi / Speaker.h
CommitLineData
3cbfba02
DW
1/*++\r
2\r
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
4 \r\r
9dc8036d
MK
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
3cbfba02
DW
7 \r\r
8\r
9Module Name:\r
10\r
11 Speaker.h\r
12\r
13Abstract:\r
14\r
15 EFI Speaker Interface Protocol\r
16\r
17\r
18\r
19--*/\r
20\r
21#ifndef _PEI_SPEAKER_IF_H\r
22#define _PEI_SPEAKER_IF_H\r
23\r
24//\r
25// Global ID Speaker Interface\r
26//\r
27#define PEI_SPEAKER_INTERFACE_PPI_GUID \\r
28 { \\r
29 0x30ac275e, 0xbb30, 0x4b84, 0xa1, 0xcd, 0x0a, 0xf1, 0x32, 0x2c, 0x89, 0xc0 \\r
30 }\r
31\r
32typedef struct _PEI_SPEAKER_IF_PPI PEI_SPEAKER_IF_PPI;\r
33\r
34//\r
35// Beep Code\r
36//\r
37typedef\r
38EFI_STATUS\r
39(EFIAPI *EFI_SPEAKER_GENERATE_BEEP) (\r
40 IN CONST EFI_PEI_SERVICES **PeiServices,\r
41 IN UINTN NumberOfBeep,\r
42 IN UINTN BeepDuration,\r
43 IN UINTN TimeInterval\r
44 );\r
45\r
46//\r
47// Set Frequency\r
48//\r
49typedef\r
50EFI_STATUS\r
51(EFIAPI *EFI_SPEAKER_SET_FREQUENCY) (\r
52 IN CONST EFI_PEI_SERVICES **PeiServices,\r
53 IN UINT16 Frequency\r
54 );\r
55\r
56//\r
57// Protocol definition\r
58//\r
59typedef struct _PEI_SPEAKER_IF_PPI {\r
60 EFI_SPEAKER_SET_FREQUENCY SetSpeakerToneFrequency;\r
61 EFI_SPEAKER_GENERATE_BEEP GenerateBeep;\r
62} PEI_SPEAKER_IF_PPI;\r
63\r
64extern EFI_GUID gPeiSpeakerInterfacePpiGuid;\r
65#endif\r