]>
Commit | Line | Data |
---|---|---|
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 | |
14 | Module Name:\r | |
15 | \r | |
16 | Speaker.h\r | |
17 | \r | |
18 | Abstract:\r | |
19 | \r | |
20 | EFI Speaker Interface Protocol\r | |
21 | \r | |
22 | Revision History\r | |
23 | \r | |
24 | **/\r | |
25 | \r | |
26 | #ifndef _EFI_SPEAKER_H\r | |
27 | #define _EFI_SPEAKER_H\r | |
28 | \r | |
29 | //\r | |
30 | // Global Id for Speaker Interface\r | |
31 | //\r | |
32 | #define EFI_SPEAKER_INTERFACE_PROTOCOL_GUID \\r | |
33 | { \\r | |
34 | 0x400b4476, 0x3081, 0x11d6, 0x87, 0xed, 0x00, 0x06, 0x29, 0x45, 0xc3, 0xb9 \\r | |
35 | }\r | |
36 | \r | |
37 | typedef struct _EFI_SPEAKER_IF_PROTOCOL EFI_SPEAKER_IF_PROTOCOL;\r | |
38 | \r | |
39 | //\r | |
40 | // Beep Code\r | |
41 | //\r | |
42 | typedef\r | |
43 | EFI_STATUS\r | |
44 | (EFIAPI *EFI_GENERATE_BEEP) (\r | |
45 | IN EFI_SPEAKER_IF_PROTOCOL * This,\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 | |
54 | typedef\r | |
55 | EFI_STATUS\r | |
56 | (EFIAPI *EFI_SPEAKER_SET_FREQUENCY) (\r | |
57 | IN EFI_SPEAKER_IF_PROTOCOL * This,\r | |
58 | IN UINT16 Frequency\r | |
59 | );\r | |
60 | \r | |
61 | //\r | |
62 | // Protocol definition\r | |
63 | //\r | |
64 | struct _EFI_SPEAKER_IF_PROTOCOL {\r | |
65 | EFI_SPEAKER_SET_FREQUENCY SetSpeakerToneFrequency;\r | |
66 | EFI_GENERATE_BEEP GenerateBeep;\r | |
67 | } ;\r | |
68 | \r | |
69 | extern EFI_GUID gEfiSpeakerInterfaceProtocolGuid;\r | |
70 | #endif\r |