-#/** @file\r
-# Ps2 Keyboard Driver\r
+## @file\r
+# Ps2 Keyboard UEFI Driver which produce gEfiSimpleTextInProtocolGuid and gEfiSimpleTextInputExProtocolGuid\r
+# protocol. \r
+# The keyboard type implemented follows IBM compatible PS2 protocol, with Scan Codes Set 1.\r
#\r
# This dirver directly uses IsaIo protocol service to support KeyBoard work.\r
-# Copyright (c) 2006 - 2007, Intel Corporation.\r
+# Copyright (c) 2006 - 2010, Intel Corporation.\r
#\r
-# Copyright (c) 2006 - 2007, Intel Corporation\r
# All rights reserved. This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
#\r
#\r
-#**/\r
+##\r
\r
-################################################################################\r
-#\r
-# Defines Section - statements that will be processed to create a Makefile.\r
-#\r
-################################################################################\r
[Defines]\r
INF_VERSION = 0x00010005\r
- BASE_NAME = Ps2Keyboard\r
+ BASE_NAME = Ps2KeyboardDxe\r
FILE_GUID = 3DC82376-637B-40a6-A8FC-A565417F2C38\r
- MODULE_TYPE = DXE_DRIVER\r
+ MODULE_TYPE = UEFI_DRIVER\r
VERSION_STRING = 1.0\r
- EDK_RELEASE_VERSION = 0x00020000\r
EFI_SPECIFICATION_VERSION = 0x00020000\r
-\r
ENTRY_POINT = InitializePs2Keyboard\r
\r
-#\r
-# The following information is for reference only and not required by the build tools.\r
#\r
# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
-#\r
-# DRIVER_BINDING = gKeyboardControllerDriver\r
-# COMPONENT_NAME = gPs2KeyboardComponentName\r
-# Create Event Guid C Name: Event Type: EVENT_TYPE_RELATIVE_TIMER\r
-# Create Event Guid C Name: Event Type: EVENT_TYPE_PERIODIC_TIMER\r
-#\r
-# Signal Event Guid C Name: Event Type: EVENT_TYPE_PERIODIC_TIMER\r
-#\r
+# DRIVER_BINDING = gKeyboardControllerDriver;\r
+# COMPONENT_NAME = gPs2KeyboardComponentName;\r
+# COMPONENT_NAME2 = gPs2KeyboardComponentName2;\r
#\r
\r
-################################################################################\r
-#\r
-# Sources Section - list of files that are required for the build to succeed.\r
-#\r
-################################################################################\r
-\r
-[Sources.common]\r
+[Sources]\r
ComponentName.c\r
Ps2Keyboard.h\r
Ps2KbdCtrller.c\r
Ps2KbdTextIn.c\r
Ps2Keyboard.c\r
- EntryPoint.c\r
-\r
\r
-################################################################################\r
-#\r
-# Package Dependency Section - list of Package files that are required for\r
-# this module.\r
-#\r
-################################################################################\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
- MdeModulePkg/MdeModulePkg.dec\r
IntelFrameworkPkg/IntelFrameworkPkg.dec\r
IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec\r
\r
-\r
-################################################################################\r
-#\r
-# Library Class Section - list of Library Classes that are required for\r
-# this module.\r
-#\r
-################################################################################\r
-\r
[LibraryClasses]\r
MemoryAllocationLib\r
UefiRuntimeServicesTableLib\r
UefiBootServicesTableLib\r
UefiLib\r
UefiDriverEntryPoint\r
-\r
-\r
-################################################################################\r
-#\r
-# Protocol C Name Section - list of Protocol and Protocol Notify C Names\r
-# that this module uses or produces.\r
-#\r
-################################################################################\r
-\r
+ BaseLib\r
+ BaseMemoryLib\r
+ TimerLib\r
+ \r
[Protocols]\r
gEfiPs2PolicyProtocolGuid # PROTOCOL TO_START\r
gEfiIsaIoProtocolGuid # PROTOCOL TO_START\r
gEfiSimpleTextInProtocolGuid # PROTOCOL BY_START\r
+ gEfiSimpleTextInputExProtocolGuid # PROTOCOL BY_START\r
gEfiDevicePathProtocolGuid # PROTOCOL TO_START\r
\r
+# [Event]\r
+# ##\r
+# # Event will be signaled for WaitForKey event.\r
+# #\r
+# EVT_NOTIFY_WAIT ## PRODUCES\r
+#\r
+# ##\r
+# # Event will be used to poll mouse state.\r
+# #\r
+# EVT_NOTIFY_SIGNAL ## PRODUCES\r