]>
Commit | Line | Data |
---|---|---|
6bfbb5f0 | 1 | ## @file\r |
6036e94d | 2 | # USB Keyboard Driver that manages USB keyboard and produces Simple Text Input(Ex) Protocol.\r |
ed838d0c | 3 | #\r |
7772b176 | 4 | # USB Keyboard Driver consumes USB I/O Protocol and Device Path Protocol, and produces\r |
5 | # Simple Text Input Protocol and Simple Text Input Ex Protocol on USB keyboard devices.\r | |
6 | # It initializes the keyboard layout according to info retrieved from HII database.\r | |
7 | # If HII cannot provide the info, this module uses its carried default one if PCD allows.\r | |
8 | # It manages the USB keyboard device via Asynchronous Interrupt Transfer of USB I/O Protocol,\r | |
9 | # and parses the data according to USB HID documents.\r | |
10 | # This module refers to following specifications:\r | |
11 | # 1. Universal Serial Bus HID Firmware Specification, ver 1.11\r | |
12 | # 2. Universal Serial Bus HID Usage Tables, ver 1.12\r | |
13 | # 3. UEFI Specification, v2.1\r | |
14 | #\r | |
d1102dba | 15 | # Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r |
ed838d0c | 16 | #\r |
cd5ebaa0 | 17 | # This program and the accompanying materials\r |
ed838d0c | 18 | # are licensed and made available under the terms and conditions of the BSD License\r |
19 | # which accompanies this distribution. The full text of the license may be found at\r | |
20 | # http://opensource.org/licenses/bsd-license.php\r | |
21 | #\r | |
22 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
23 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
24 | #\r | |
25 | #\r | |
6bfbb5f0 | 26 | ##\r |
ed838d0c | 27 | \r |
ed838d0c | 28 | [Defines]\r |
29 | INF_VERSION = 0x00010005\r | |
30 | BASE_NAME = UsbKbDxe\r | |
6036e94d | 31 | MODULE_UNI_FILE = UsbKbDxe.uni\r |
ed838d0c | 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 | |
a065efc7 | 40 | # VALID_ARCHITECTURES = IA32 X64 IPF EBC ARM AARCH64\r |
ed838d0c | 41 | #\r |
d1102dba | 42 | # DRIVER_BINDING = gUsbKeyboardDriverBinding\r |
d354ab7f | 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 | |
6036e94d | 72 | #\r |
7772b176 | 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 | |
6036e94d SZ |
76 | gEfiHiiKeyBoardLayoutGuid ## SOMETIMES_CONSUMES ## Event\r |
77 | gUsbKeyboardLayoutPackageGuid ## SOMETIMES_CONSUMES ## HII\r | |
78 | gUsbKeyboardLayoutKeyGuid ## SOMETIMES_PRODUCES ## UNDEFINED\r | |
ed838d0c | 79 | \r |
ed838d0c | 80 | [Protocols]\r |
7772b176 | 81 | gEfiUsbIoProtocolGuid ## TO_START\r |
82 | gEfiDevicePathProtocolGuid ## TO_START\r | |
83 | gEfiSimpleTextInProtocolGuid ## BY_START\r | |
84 | gEfiSimpleTextInputExProtocolGuid ## BY_START\r | |
6036e94d | 85 | #\r |
7772b176 | 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 | |
6036e94d | 89 | gEfiHiiDatabaseProtocolGuid ## SOMETIMES_CONSUMES\r |
d1102dba | 90 | \r |
6bfbb5f0 | 91 | [FeaturePcd]\r |
6036e94d | 92 | gEfiMdeModulePkgTokenSpaceGuid.PcdDisableDefaultKeyboardLayoutInUsbKbDriver ## CONSUMES\r |
7772b176 | 93 | \r |
94 | # [Event]\r | |
6036e94d | 95 | # EVENT_TYPE_RELATIVE_TIMER ## CONSUMES\r |
7772b176 | 96 | #\r |
6036e94d SZ |
97 | \r |
98 | [UserExtensions.TianoCore."ExtraFiles"]\r | |
99 | UsbKbDxeExtra.uni\r |