]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
1. Correct File header to ## @file
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbKbDxe / UsbKbDxe.inf
CommitLineData
6bfbb5f0 1## @file\r
b4e73a63 2# USB Keyboard Driver that manages USB keyboard and produces Simple Text Input\r
3# Protocol and Simple Text Input Ex Protocol.\r
ed838d0c 4#\r
7772b176 5# USB Keyboard Driver consumes USB I/O Protocol and Device Path Protocol, and produces\r
6# Simple Text Input Protocol and Simple Text Input Ex Protocol on USB keyboard devices.\r
7# It initializes the keyboard layout according to info retrieved from HII database.\r
8# If HII cannot provide the info, this module uses its carried default one if PCD allows.\r
9# It manages the USB keyboard device via Asynchronous Interrupt Transfer of USB I/O Protocol,\r
10# and parses the data according to USB HID documents.\r
11# This module refers to following specifications:\r
12# 1. Universal Serial Bus HID Firmware Specification, ver 1.11\r
13# 2. Universal Serial Bus HID Usage Tables, ver 1.12\r
14# 3. UEFI Specification, v2.1\r
15#\r
f9876ecf 16# Copyright (c) 2006 - 2010, Intel Corporation. \r
ed838d0c 17#\r
18# All rights reserved. This program and the accompanying materials\r
19# are licensed and made available under the terms and conditions of the BSD License\r
20# which accompanies this distribution. The full text of the license may be found at\r
21# http://opensource.org/licenses/bsd-license.php\r
22#\r
23# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
24# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
25#\r
26#\r
6bfbb5f0 27##\r
ed838d0c 28\r
ed838d0c 29[Defines]\r
30 INF_VERSION = 0x00010005\r
31 BASE_NAME = UsbKbDxe\r
32 FILE_GUID = 2D2E62CF-9ECF-43b7-8219-94E7FC713DFE\r
d3f16117 33 MODULE_TYPE = UEFI_DRIVER\r
ed838d0c 34 VERSION_STRING = 1.0\r
ed838d0c 35 ENTRY_POINT = USBKeyboardDriverBindingEntryPoint\r
36\r
37#\r
38# The following information is for reference only and not required by the build tools.\r
39#\r
40# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
41#\r
d354ab7f 42# DRIVER_BINDING = gUsbKeyboardDriverBinding \r
43# COMPONENT_NAME = gUsbKeyboardComponentName\r
44# COMPONENT_NAME2 = gUsbKeyboardComponentName2\r
45#\r
ed838d0c 46\r
6bfbb5f0 47[Sources]\r
a7022cec 48 EfiKey.c\r
49 EfiKey.h\r
50 KeyBoard.c\r
ed838d0c 51 ComponentName.c\r
a7022cec 52 KeyBoard.h\r
ed838d0c 53\r
ed838d0c 54[Packages]\r
55 MdePkg/MdePkg.dec\r
623ad724 56 MdeModulePkg/MdeModulePkg.dec\r
ed838d0c 57\r
ed838d0c 58[LibraryClasses]\r
59 MemoryAllocationLib\r
60 UefiLib\r
61 UefiBootServicesTableLib\r
62 UefiDriverEntryPoint\r
63 UefiRuntimeServicesTableLib\r
64 BaseMemoryLib\r
65 ReportStatusCodeLib\r
66 DebugLib\r
67 PcdLib\r
dfb74df5 68 UefiUsbLib\r
c41c3e55 69 HiiLib\r
7772b176 70\r
71[Guids]\r
72 ##\r
73 # Event registered to EFI_HII_SET_KEYBOARD_LAYOUT_EVENT_GUID group,\r
74 # which will be triggered by EFI_HII_DATABASE_PROTOCOL.SetKeyboardLayout().\r
75 #\r
76 gEfiHiiKeyBoardLayoutGuid ## SOMETIME_CONSUMES ## Event\r
ed838d0c 77\r
ed838d0c 78[Protocols]\r
7772b176 79 gEfiUsbIoProtocolGuid ## TO_START\r
80 gEfiDevicePathProtocolGuid ## TO_START\r
81 gEfiSimpleTextInProtocolGuid ## BY_START\r
82 gEfiSimpleTextInputExProtocolGuid ## BY_START\r
7772b176 83 ##\r
84 # If HII Database Protocol exists, then keyboard layout from HII database is used.\r
85 # Otherwise, USB keyboard module tries to use its carried default layout.\r
86 #\r
87 gEfiHiiDatabaseProtocolGuid ## SOMETIMES_CONSUMES (Default value is used if it's absent.)\r
8d4cd915 88 \r
6bfbb5f0 89[FeaturePcd]\r
f9876ecf 90 gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver ## SOMETIME_CONSUMES (Checked when no layout is provided by HII.) \r
7772b176 91\r
92# [Event]\r
93# ##\r
94# # Periodic timer event for generation of repeat key\r
95# #\r
96# EVENT_TYPE_PERIODIC_TIMER ## PRODUCES\r
97# ##\r
98# # Periodic timer event for delayed recovery, which deals with device error.\r
99# #\r
100# EVENT_TYPE_PERIODIC_TIMER ## PRODUCES\r
101# ##\r
102# # Event for EFI_SIMPLE_TEXT_INPUT_PROTOCOL.WaitForKey\r
103# #\r
104# EVENT_TYPE_NOTIFY_WAIT ## PRODUCES\r
105# ##\r
106# # Event for EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.WaitForKeyEx\r
107# #\r
108# EVENT_TYPE_NOTIFY_WAIT ## PRODUCES\r
109#\r
110#\r