3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
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.
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.
21 Speaker enabling related data
25 #ifndef _PEI_LEGACY_SPEAKER_H
26 #define _PEI_LEGACY_SPEAKER_H
30 // Speaker Related Port Information
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
37 #define EFI_SPEAKER_OFF_MASK 0xFC
39 #define EFI_DEFAULT_BEEP_FREQUENCY 0x500
42 // Default Intervals/Beep Duration
44 #define EFI_DEFAULT_LONG_BEEP_DURATION 0x70000
45 #define EFI_DEFAULT_SHORT_BEEP_DURATION 0x50000
46 #define EFI_DEFAULT_BEEP_TIME_INTERVAL 0x20000
51 ProgramToneFrequency (
52 IN CONST EFI_PEI_SERVICES
**PeiServices
,
60 IN CONST EFI_PEI_SERVICES
**PeiServices
,
61 IN UINTN NumberOfBeeps
,
62 IN UINTN BeepDuration
,
68 IN CONST EFI_PEI_SERVICES
**PeiServices
73 IN CONST EFI_PEI_SERVICES
**PeiServices