]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h
Upload BSD-licensed Vlv2TbltDevicePkg and Vlv2DeviceRefCodePkg to
[mirror_edk2.git] / Vlv2TbltDevicePkg / PlatformDxe / LegacySpeaker.h
diff --git a/Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h b/Vlv2TbltDevicePkg/PlatformDxe/LegacySpeaker.h
new file mode 100644 (file)
index 0000000..2075139
--- /dev/null
@@ -0,0 +1,74 @@
+/*++\r
+\r
+  Copyright (c) 2004  - 2014, Intel Corporation. All rights reserved.<BR>\r
+                                                                                   \r\r
+  This program and the accompanying materials are licensed and made available under\r\r
+  the terms and conditions of the BSD License that accompanies this distribution.  \r\r
+  The full text of the license may be found at                                     \r\r
+  http://opensource.org/licenses/bsd-license.php.                                  \r\r
+                                                                                   \r\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,            \r\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.    \r\r
+                                                                                   \r\r
+\r
+Module Name:\r
+\r
+ LegacySpeaker.h\r
+\r
+Abstract:\r
+\r
+  Speaker enabling related data\r
+\r
+--*/\r
+\r
+#ifndef _DXE_LEGACY_SPEAKER_H\r
+#define _DXE_LEGACY_SPEAKER_H\r
+\r
+#include "PlatformDxe.h"\r
+\r
+//\r
+// Speaker Related Port Information\r
+//\r
+#define EFI_TIMER_COUNTER_PORT            0x40\r
+#define EFI_TIMER_CONTROL_PORT            0x43\r
+#define EFI_TIMER_2_PORT                  0x42\r
+#define EFI_SPEAKER_CONTROL_PORT          0x61\r
+\r
+#define EFI_SPEAKER_OFF_MASK              0xFC\r
+\r
+#define EFI_DEFAULT_BEEP_FREQUENCY        0x500\r
+\r
+//\r
+// Default Intervals/Beep Duration\r
+//\r
+#define EFI_DEFAULT_LONG_BEEP_DURATION    0x70000\r
+#define EFI_DEFAULT_SHORT_BEEP_DURATION   0x50000\r
+#define EFI_DEFAULT_BEEP_TIME_INTERVAL    0x20000\r
+\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+ProgramToneFrequency (\r
+  IN  EFI_SPEAKER_IF_PROTOCOL           * This,\r
+  IN  UINT16                            Frequency\r
+  );\r
+\r
+\r
+EFI_STATUS\r
+EFIAPI\r
+GenerateBeepTone (\r
+  IN  EFI_SPEAKER_IF_PROTOCOL           * This,\r
+  IN  UINTN                             NumberOfBeeps,\r
+  IN  UINTN                             BeepDuration,\r
+  IN  UINTN                             TimeInterval\r
+  );\r
+\r
+EFI_STATUS\r
+TurnOnSpeaker (\r
+  );\r
+\r
+EFI_STATUS\r
+TurnOffSpeaker (\r
+  );\r
+\r
+#endif\r