]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/Include/Ppi/Speaker.h
ShellPkg/[hex]edit: Fix mouse freeze issue
[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
5 This program and the accompanying materials are licensed and made available under\r\r
6 the terms and conditions of the BSD License that accompanies this distribution. \r\r
7 The full text of the license may be found at \r\r
8 http://opensource.org/licenses/bsd-license.php. \r\r
9 \r\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r\r
12 \r\r
13\r
14Module Name:\r
15\r
16 Speaker.h\r
17\r
18Abstract:\r
19\r
20 EFI Speaker Interface Protocol\r
21\r
22\r
23\r
24--*/\r
25\r
26#ifndef _PEI_SPEAKER_IF_H\r
27#define _PEI_SPEAKER_IF_H\r
28\r
29//\r
30// Global ID Speaker Interface\r
31//\r
32#define PEI_SPEAKER_INTERFACE_PPI_GUID \\r
33 { \\r
34 0x30ac275e, 0xbb30, 0x4b84, 0xa1, 0xcd, 0x0a, 0xf1, 0x32, 0x2c, 0x89, 0xc0 \\r
35 }\r
36\r
37typedef struct _PEI_SPEAKER_IF_PPI PEI_SPEAKER_IF_PPI;\r
38\r
39//\r
40// Beep Code\r
41//\r
42typedef\r
43EFI_STATUS\r
44(EFIAPI *EFI_SPEAKER_GENERATE_BEEP) (\r
45 IN CONST EFI_PEI_SERVICES **PeiServices,\r
46 IN UINTN NumberOfBeep,\r
47 IN UINTN BeepDuration,\r
48 IN UINTN TimeInterval\r
49 );\r
50\r
51//\r
52// Set Frequency\r
53//\r
54typedef\r
55EFI_STATUS\r
56(EFIAPI *EFI_SPEAKER_SET_FREQUENCY) (\r
57 IN CONST EFI_PEI_SERVICES **PeiServices,\r
58 IN UINT16 Frequency\r
59 );\r
60\r
61//\r
62// Protocol definition\r
63//\r
64typedef struct _PEI_SPEAKER_IF_PPI {\r
65 EFI_SPEAKER_SET_FREQUENCY SetSpeakerToneFrequency;\r
66 EFI_SPEAKER_GENERATE_BEEP GenerateBeep;\r
67} PEI_SPEAKER_IF_PPI;\r
68\r
69extern EFI_GUID gPeiSpeakerInterfacePpiGuid;\r
70#endif\r