]>
Commit | Line | Data |
---|---|---|
1 | ## @file\r | |
2 | # USB Keyboard Driver that manages USB keyboard and produces Simple Text Input\r | |
3 | # Protocol and Simple Text Input Ex Protocol.\r | |
4 | #\r | |
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 | |
16 | # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r | |
17 | #\r | |
18 | # 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 | |
27 | ##\r | |
28 | \r | |
29 | [Defines]\r | |
30 | INF_VERSION = 0x00010005\r | |
31 | BASE_NAME = UsbKbDxe\r | |
32 | FILE_GUID = 2D2E62CF-9ECF-43b7-8219-94E7FC713DFE\r | |
33 | MODULE_TYPE = UEFI_DRIVER\r | |
34 | VERSION_STRING = 1.0\r | |
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 | |
42 | # DRIVER_BINDING = gUsbKeyboardDriverBinding \r | |
43 | # COMPONENT_NAME = gUsbKeyboardComponentName\r | |
44 | # COMPONENT_NAME2 = gUsbKeyboardComponentName2\r | |
45 | #\r | |
46 | \r | |
47 | [Sources]\r | |
48 | EfiKey.c\r | |
49 | EfiKey.h\r | |
50 | KeyBoard.c\r | |
51 | ComponentName.c\r | |
52 | KeyBoard.h\r | |
53 | \r | |
54 | [Packages]\r | |
55 | MdePkg/MdePkg.dec\r | |
56 | MdeModulePkg/MdeModulePkg.dec\r | |
57 | \r | |
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 | |
68 | UefiUsbLib\r | |
69 | HiiLib\r | |
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 | |
77 | gUsbKeyboardLayoutPackageGuid\r | |
78 | gUsbKeyboardLayoutKeyGuid\r | |
79 | \r | |
80 | [Protocols]\r | |
81 | gEfiUsbIoProtocolGuid ## TO_START\r | |
82 | gEfiDevicePathProtocolGuid ## TO_START\r | |
83 | gEfiSimpleTextInProtocolGuid ## BY_START\r | |
84 | gEfiSimpleTextInputExProtocolGuid ## BY_START\r | |
85 | ##\r | |
86 | # If HII Database Protocol exists, then keyboard layout from HII database is used.\r | |
87 | # Otherwise, USB keyboard module tries to use its carried default layout.\r | |
88 | #\r | |
89 | gEfiHiiDatabaseProtocolGuid ## SOMETIMES_CONSUMES (Default value is used if it's absent.)\r | |
90 | \r | |
91 | [FeaturePcd]\r | |
92 | gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver ## SOMETIME_CONSUMES (Checked when no layout is provided by HII.) \r | |
93 | \r | |
94 | # [Event]\r | |
95 | # ##\r | |
96 | # # Periodic timer event for generation of repeat key\r | |
97 | # #\r | |
98 | # EVENT_TYPE_PERIODIC_TIMER ## PRODUCES\r | |
99 | # ##\r | |
100 | # # Periodic timer event for delayed recovery, which deals with device error.\r | |
101 | # #\r | |
102 | # EVENT_TYPE_PERIODIC_TIMER ## PRODUCES\r | |
103 | # ##\r | |
104 | # # Event for EFI_SIMPLE_TEXT_INPUT_PROTOCOL.WaitForKey\r | |
105 | # #\r | |
106 | # EVENT_TYPE_NOTIFY_WAIT ## PRODUCES\r | |
107 | # ##\r | |
108 | # # Event for EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL.WaitForKeyEx\r | |
109 | # #\r | |
110 | # EVENT_TYPE_NOTIFY_WAIT ## PRODUCES\r | |
111 | #\r | |
112 | #\r |