]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h
ArmPkg/CompilerIntrinsicsLib: Remove unused sources and clean up .inf
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformDxe / LegacySpeaker.h
CommitLineData
3cbfba02
DW
1/*++\r
2\r
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
4 \r\r
9dc8036d
MK
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
3cbfba02
DW
7 \r\r
8\r
9Module Name:\r
10\r
11 LegacySpeaker.h\r
12\r
13Abstract:\r
14\r
15 Speaker enabling related data\r
16\r
17--*/\r
18\r
19#ifndef _DXE_LEGACY_SPEAKER_H\r
20#define _DXE_LEGACY_SPEAKER_H\r
21\r
22#include "PlatformDxe.h"\r
23\r
24//\r
25// Speaker Related Port Information\r
26//\r
27#define EFI_TIMER_COUNTER_PORT 0x40\r
28#define EFI_TIMER_CONTROL_PORT 0x43\r
29#define EFI_TIMER_2_PORT 0x42\r
30#define EFI_SPEAKER_CONTROL_PORT 0x61\r
31\r
32#define EFI_SPEAKER_OFF_MASK 0xFC\r
33\r
34#define EFI_DEFAULT_BEEP_FREQUENCY 0x500\r
35\r
36//\r
37// Default Intervals/Beep Duration\r
38//\r
39#define EFI_DEFAULT_LONG_BEEP_DURATION 0x70000\r
40#define EFI_DEFAULT_SHORT_BEEP_DURATION 0x50000\r
41#define EFI_DEFAULT_BEEP_TIME_INTERVAL 0x20000\r
42\r
43\r
44EFI_STATUS\r
45EFIAPI\r
46ProgramToneFrequency (\r
47 IN EFI_SPEAKER_IF_PROTOCOL * This,\r
48 IN UINT16 Frequency\r
49 );\r
50\r
51\r
52EFI_STATUS\r
53EFIAPI\r
54GenerateBeepTone (\r
55 IN EFI_SPEAKER_IF_PROTOCOL * This,\r
56 IN UINTN NumberOfBeeps,\r
57 IN UINTN BeepDuration,\r
58 IN UINTN TimeInterval\r
59 );\r
60\r
61EFI_STATUS\r
62TurnOnSpeaker (\r
63 );\r
64\r
65EFI_STATUS\r
66TurnOffSpeaker (\r
67 );\r
68\r
69#endif\r