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