]> git.proxmox.com Git - mirror_edk2.git/blame - Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h
NetworkPkg/TlsAuthConfigDxe: Provide the UI to support TLS auth configuration
[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
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
14Module Name:\r
15\r
16 LegacySpeaker.h\r
17\r
18Abstract:\r
19\r
20 Speaker enabling related data\r
21\r
22--*/\r
23\r
24#ifndef _DXE_LEGACY_SPEAKER_H\r
25#define _DXE_LEGACY_SPEAKER_H\r
26\r
27#include "PlatformDxe.h"\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
49EFI_STATUS\r
50EFIAPI\r
51ProgramToneFrequency (\r
52 IN EFI_SPEAKER_IF_PROTOCOL * This,\r
53 IN UINT16 Frequency\r
54 );\r
55\r
56\r
57EFI_STATUS\r
58EFIAPI\r
59GenerateBeepTone (\r
60 IN EFI_SPEAKER_IF_PROTOCOL * This,\r
61 IN UINTN NumberOfBeeps,\r
62 IN UINTN BeepDuration,\r
63 IN UINTN TimeInterval\r
64 );\r
65\r
66EFI_STATUS\r
67TurnOnSpeaker (\r
68 );\r
69\r
70EFI_STATUS\r
71TurnOffSpeaker (\r
72 );\r
73\r
74#endif\r