]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformDxe / LegacySpeaker.h
1 /*++
2
3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
4
5 This program and the accompanying materials are licensed and made available under
6 the terms and conditions of the BSD License that accompanies this distribution.
7 The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php.
9
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12
13
14 Module Name:
15
16 LegacySpeaker.h
17
18 Abstract:
19
20 Speaker enabling related data
21
22 --*/
23
24 #ifndef _DXE_LEGACY_SPEAKER_H
25 #define _DXE_LEGACY_SPEAKER_H
26
27 #include "PlatformDxe.h"
28
29 //
30 // Speaker Related Port Information
31 //
32 #define EFI_TIMER_COUNTER_PORT 0x40
33 #define EFI_TIMER_CONTROL_PORT 0x43
34 #define EFI_TIMER_2_PORT 0x42
35 #define EFI_SPEAKER_CONTROL_PORT 0x61
36
37 #define EFI_SPEAKER_OFF_MASK 0xFC
38
39 #define EFI_DEFAULT_BEEP_FREQUENCY 0x500
40
41 //
42 // Default Intervals/Beep Duration
43 //
44 #define EFI_DEFAULT_LONG_BEEP_DURATION 0x70000
45 #define EFI_DEFAULT_SHORT_BEEP_DURATION 0x50000
46 #define EFI_DEFAULT_BEEP_TIME_INTERVAL 0x20000
47
48
49 EFI_STATUS
50 EFIAPI
51 ProgramToneFrequency (
52 IN EFI_SPEAKER_IF_PROTOCOL * This,
53 IN UINT16 Frequency
54 );
55
56
57 EFI_STATUS
58 EFIAPI
59 GenerateBeepTone (
60 IN EFI_SPEAKER_IF_PROTOCOL * This,
61 IN UINTN NumberOfBeeps,
62 IN UINTN BeepDuration,
63 IN UINTN TimeInterval
64 );
65
66 EFI_STATUS
67 TurnOnSpeaker (
68 );
69
70 EFI_STATUS
71 TurnOffSpeaker (
72 );
73
74 #endif