]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/Include/Protocol/Speaker.h
9bffcad24e0fba791cb5d2af49210db74d111fc6
[mirror_edk2.git] / Vlv2TbltDevicePkg / Include / Protocol / Speaker.h
1 /*++
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7
8
9 Module Name:
10
11 Speaker.h
12
13 Abstract:
14
15 EFI Speaker Interface Protocol
16
17 Revision History
18
19 **/
20
21 #ifndef _EFI_SPEAKER_H
22 #define _EFI_SPEAKER_H
23
24 //
25 // Global Id for Speaker Interface
26 //
27 #define EFI_SPEAKER_INTERFACE_PROTOCOL_GUID \
28 { \
29 0x400b4476, 0x3081, 0x11d6, 0x87, 0xed, 0x00, 0x06, 0x29, 0x45, 0xc3, 0xb9 \
30 }
31
32 typedef struct _EFI_SPEAKER_IF_PROTOCOL EFI_SPEAKER_IF_PROTOCOL;
33
34 //
35 // Beep Code
36 //
37 typedef
38 EFI_STATUS
39 (EFIAPI *EFI_GENERATE_BEEP) (
40 IN EFI_SPEAKER_IF_PROTOCOL * This,
41 IN UINTN NumberOfBeep,
42 IN UINTN BeepDuration,
43 IN UINTN TimeInterval
44 );
45
46 //
47 // Set Frequency
48 //
49 typedef
50 EFI_STATUS
51 (EFIAPI *EFI_SPEAKER_SET_FREQUENCY) (
52 IN EFI_SPEAKER_IF_PROTOCOL * This,
53 IN UINT16 Frequency
54 );
55
56 //
57 // Protocol definition
58 //
59 struct _EFI_SPEAKER_IF_PROTOCOL {
60 EFI_SPEAKER_SET_FREQUENCY SetSpeakerToneFrequency;
61 EFI_GENERATE_BEEP GenerateBeep;
62 } ;
63
64 extern EFI_GUID gEfiSpeakerInterfaceProtocolGuid;
65 #endif