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 7 the terms and conditions of the BSD License that accompanies this distribution. 9 The full text of the license may be found at 11 http://opensource.org/licenses/bsd-license.php. 13 15 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 19 21 23 Module Name: 24 25 LegacySpeaker.h 26 27 Abstract: 28 29 Speaker enabling related data 30 31 --*/ 32 33 #ifndef _DXE_LEGACY_SPEAKER_H 34 #define _DXE_LEGACY_SPEAKER_H 35 36 #include "PlatformDxe.h" 37 38 // 39 // Speaker Related Port Information 40 // 41 #define EFI_TIMER_COUNTER_PORT 0x40 42 #define EFI_TIMER_CONTROL_PORT 0x43 43 #define EFI_TIMER_2_PORT 0x42 44 #define EFI_SPEAKER_CONTROL_PORT 0x61 45 46 #define EFI_SPEAKER_OFF_MASK 0xFC 47 48 #define EFI_DEFAULT_BEEP_FREQUENCY 0x500 49 50 // 51 // Default Intervals/Beep Duration 52 // 53 #define EFI_DEFAULT_LONG_BEEP_DURATION 0x70000 54 #define EFI_DEFAULT_SHORT_BEEP_DURATION 0x50000 55 #define EFI_DEFAULT_BEEP_TIME_INTERVAL 0x20000 56 57 58 EFI_STATUS 59 EFIAPI 60 ProgramToneFrequency ( 61 IN EFI_SPEAKER_IF_PROTOCOL * This, 62 IN UINT16 Frequency 63 ); 64 65 66 EFI_STATUS 67 EFIAPI 68 GenerateBeepTone ( 69 IN EFI_SPEAKER_IF_PROTOCOL * This, 70 IN UINTN NumberOfBeeps, 71 IN UINTN BeepDuration, 72 IN UINTN TimeInterval 73 ); 74 75 EFI_STATUS 76 TurnOnSpeaker ( 77 ); 78 79 EFI_STATUS 80 TurnOffSpeaker ( 81 ); 82 83 #endif 84