]> git.proxmox.com Git - mirror_edk2.git/blob - Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h
Vlv2TbltDevicePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformDxe / 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 Module Name:
10
11 LegacySpeaker.h
12
13 Abstract:
14
15 Speaker enabling related data
16
17 --*/
18
19 #ifndef _DXE_LEGACY_SPEAKER_H
20 #define _DXE_LEGACY_SPEAKER_H
21
22 #include "PlatformDxe.h"
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 EFI_SPEAKER_IF_PROTOCOL * This,
48 IN UINT16 Frequency
49 );
50
51
52 EFI_STATUS
53 EFIAPI
54 GenerateBeepTone (
55 IN EFI_SPEAKER_IF_PROTOCOL * This,
56 IN UINTN NumberOfBeeps,
57 IN UINTN BeepDuration,
58 IN UINTN TimeInterval
59 );
60
61 EFI_STATUS
62 TurnOnSpeaker (
63 );
64
65 EFI_STATUS
66 TurnOffSpeaker (
67 );
68
69 #endif