]>
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 | \r | |
15 | Module Name:\r | |
16 | \r | |
17 | LegacySpeaker.h\r | |
18 | \r | |
19 | Abstract:\r | |
20 | \r | |
21 | Speaker enabling related data\r | |
22 | \r | |
23 | --*/\r | |
24 | \r | |
25 | #ifndef _PEI_LEGACY_SPEAKER_H\r | |
26 | #define _PEI_LEGACY_SPEAKER_H\r | |
27 | \r | |
28 | \r | |
29 | //\r | |
30 | // Speaker Related Port Information\r | |
31 | //\r | |
32 | #define EFI_TIMER_COUNTER_PORT 0x40\r | |
33 | #define EFI_TIMER_CONTROL_PORT 0x43\r | |
34 | #define EFI_TIMER_2_PORT 0x42\r | |
35 | #define EFI_SPEAKER_CONTROL_PORT 0x61\r | |
36 | \r | |
37 | #define EFI_SPEAKER_OFF_MASK 0xFC\r | |
38 | \r | |
39 | #define EFI_DEFAULT_BEEP_FREQUENCY 0x500\r | |
40 | \r | |
41 | //\r | |
42 | // Default Intervals/Beep Duration\r | |
43 | //\r | |
44 | #define EFI_DEFAULT_LONG_BEEP_DURATION 0x70000\r | |
45 | #define EFI_DEFAULT_SHORT_BEEP_DURATION 0x50000\r | |
46 | #define EFI_DEFAULT_BEEP_TIME_INTERVAL 0x20000\r | |
47 | \r | |
48 | \r | |
49 | EFI_STATUS\r | |
50 | EFIAPI\r | |
51 | ProgramToneFrequency (\r | |
52 | IN CONST EFI_PEI_SERVICES **PeiServices,\r | |
53 | IN UINT16 Frequency\r | |
54 | );\r | |
55 | \r | |
56 | \r | |
57 | EFI_STATUS\r | |
58 | EFIAPI\r | |
59 | GenerateBeepTone (\r | |
60 | IN CONST EFI_PEI_SERVICES **PeiServices,\r | |
61 | IN UINTN NumberOfBeeps,\r | |
62 | IN UINTN BeepDuration,\r | |
63 | IN UINTN TimeInterval\r | |
64 | );\r | |
65 | \r | |
66 | EFI_STATUS\r | |
67 | TurnOnSpeaker (\r | |
68 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
69 | );\r | |
70 | \r | |
71 | EFI_STATUS\r | |
72 | TurnOffSpeaker (\r | |
73 | IN CONST EFI_PEI_SERVICES **PeiServices\r | |
74 | );\r | |
75 | \r | |
76 | #endif\r |