3 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
16 Speaker enabling related data
20 #ifndef _PEI_LEGACY_SPEAKER_H
21 #define _PEI_LEGACY_SPEAKER_H
25 // Speaker Related Port Information
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
32 #define EFI_SPEAKER_OFF_MASK 0xFC
34 #define EFI_DEFAULT_BEEP_FREQUENCY 0x500
37 // Default Intervals/Beep Duration
39 #define EFI_DEFAULT_LONG_BEEP_DURATION 0x70000
40 #define EFI_DEFAULT_SHORT_BEEP_DURATION 0x50000
41 #define EFI_DEFAULT_BEEP_TIME_INTERVAL 0x20000
46 ProgramToneFrequency (
47 IN CONST EFI_PEI_SERVICES
**PeiServices
,
55 IN CONST EFI_PEI_SERVICES
**PeiServices
,
56 IN UINTN NumberOfBeeps
,
57 IN UINTN BeepDuration
,
63 IN CONST EFI_PEI_SERVICES
**PeiServices
68 IN CONST EFI_PEI_SERVICES
**PeiServices