1 /*++ 2 3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR> 4 5 6 This program and the accompanying materials are licensed and made available under 7 8 the terms and conditions of the BSD License that accompanies this distribution. 9 10 The full text of the license may be found at 11 12 http://opensource.org/licenses/bsd-license.php. 13 14 15 16 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 17 18 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 19 20 21 22 23 24 Module Name: 25 26 LegacySpeaker.h 27 28 Abstract: 29 30 Speaker enabling related data 31 32 --*/ 33 34 #ifndef _PEI_LEGACY_SPEAKER_H 35 #define _PEI_LEGACY_SPEAKER_H 36 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 CONST EFI_PEI_SERVICES **PeiServices, 62 IN UINT16 Frequency 63 ); 64 65 66 EFI_STATUS 67 EFIAPI 68 GenerateBeepTone ( 69 IN CONST EFI_PEI_SERVICES **PeiServices, 70 IN UINTN NumberOfBeeps, 71 IN UINTN BeepDuration, 72 IN UINTN TimeInterval 73 ); 74 75 EFI_STATUS 76 TurnOnSpeaker ( 77 IN CONST EFI_PEI_SERVICES **PeiServices 78 ); 79 80 EFI_STATUS 81 TurnOffSpeaker ( 82 IN CONST EFI_PEI_SERVICES **PeiServices 83 ); 84 85 #endif 86