]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Usb/UsbMouseSimulateTouchPadDxe/ComponentName.c
change "UsbMouseSimulateTouchPad" to "UsbMouseAbsolutePointer" for more clearing...
[mirror_edk2.git] / MdeModulePkg / Bus / Usb / UsbMouseSimulateTouchPadDxe / ComponentName.c
index 0c5f88d43b71c30f0da75e9528b788fa487597b3..3e71f4e748b8ece8271b0df9d0b9475b60cb3da4 100644 (file)
@@ -11,14 +11,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 Module Name:\r
 \r
-  UsbMouseSimulateTouchPadComponentName.c\r
+  UsbMouseAbsolutePointerComponentName.c\r
 \r
 Abstract:\r
 \r
 \r
 **/\r
 \r
-#include "UsbMouseSimulateTouchPad.h"\r
+#include "UsbMouseAbsolutePointer.h"\r
 #include <Library/DebugLib.h>\r
 \r
 //\r
@@ -65,7 +65,7 @@ Abstract:
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-UsbMouseSimulateTouchPadComponentNameGetDriverName (\r
+UsbMouseAbsolutePointerComponentNameGetDriverName (\r
   IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
   IN  CHAR8                        *Language,\r
   OUT CHAR16                       **DriverName\r
@@ -142,7 +142,7 @@ UsbMouseSimulateTouchPadComponentNameGetDriverName (
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-UsbMouseSimulateTouchPadComponentNameGetControllerName (\r
+UsbMouseAbsolutePointerComponentNameGetControllerName (\r
   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
   IN  EFI_HANDLE                                      ControllerHandle,\r
   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
@@ -154,24 +154,24 @@ UsbMouseSimulateTouchPadComponentNameGetControllerName (
 //\r
 // EFI Component Name Protocol\r
 //\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gUsbMouseSimulateTouchPadComponentName = {\r
-  UsbMouseSimulateTouchPadComponentNameGetDriverName,\r
-  UsbMouseSimulateTouchPadComponentNameGetControllerName,\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL  gUsbMouseAbsolutePointerComponentName = {\r
+  UsbMouseAbsolutePointerComponentNameGetDriverName,\r
+  UsbMouseAbsolutePointerComponentNameGetControllerName,\r
   "eng"\r
 };\r
 \r
 //\r
 // EFI Component Name 2 Protocol\r
 //\r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gUsbMouseSimulateTouchPadComponentName2 = {\r
-  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) UsbMouseSimulateTouchPadComponentNameGetDriverName,\r
-  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) UsbMouseSimulateTouchPadComponentNameGetControllerName,\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gUsbMouseAbsolutePointerComponentName2 = {\r
+  (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) UsbMouseAbsolutePointerComponentNameGetDriverName,\r
+  (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) UsbMouseAbsolutePointerComponentNameGetControllerName,\r
   "en"\r
 };\r
 \r
 \r
 \r
-GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUsbMouseSimulateTouchPadDriverNameTable[] = {\r
+GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUsbMouseAbsolutePointerDriverNameTable[] = {\r
   { "eng;en", L"Usb Mouse Simulate TouchPad Driver" },\r
   { NULL , NULL }\r
 };\r
@@ -218,7 +218,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mUsbMouseSimulateTouchPad
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-UsbMouseSimulateTouchPadComponentNameGetDriverName (\r
+UsbMouseAbsolutePointerComponentNameGetDriverName (\r
   IN  EFI_COMPONENT_NAME_PROTOCOL  *This,\r
   IN  CHAR8                        *Language,\r
   OUT CHAR16                       **DriverName\r
@@ -227,9 +227,9 @@ UsbMouseSimulateTouchPadComponentNameGetDriverName (
   return LookupUnicodeString2 (\r
            Language,\r
            This->SupportedLanguages,\r
-           mUsbMouseSimulateTouchPadDriverNameTable,\r
+           mUsbMouseAbsolutePointerDriverNameTable,\r
            DriverName,\r
-           (BOOLEAN)(This == &gUsbMouseSimulateTouchPadComponentName)\r
+           (BOOLEAN)(This == &gUsbMouseAbsolutePointerComponentName)\r
            );\r
 }\r
 \r
@@ -303,7 +303,7 @@ UsbMouseSimulateTouchPadComponentNameGetDriverName (
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-UsbMouseSimulateTouchPadComponentNameGetControllerName (\r
+UsbMouseAbsolutePointerComponentNameGetControllerName (\r
   IN  EFI_COMPONENT_NAME_PROTOCOL                     *This,\r
   IN  EFI_HANDLE                                      ControllerHandle,\r
   IN  EFI_HANDLE                                      ChildHandle        OPTIONAL,\r
@@ -312,7 +312,7 @@ UsbMouseSimulateTouchPadComponentNameGetControllerName (
   )\r
 {\r
   EFI_STATUS                  Status;\r
-  USB_MOUSE_SIMULATE_TOUCHPAD_DEV               *UsbMouseSimulateTouchPadDev;\r
+  USB_MOUSE_ABSOLUTE_POINTER_DEV               *UsbMouseAbsolutePointerDev;\r
   EFI_ABSOLUTE_POINTER_PROTOCOL *AbsolutePointerProtocol;\r
   EFI_USB_IO_PROTOCOL         *UsbIoProtocol;\r
 \r
@@ -330,7 +330,7 @@ UsbMouseSimulateTouchPadComponentNameGetControllerName (
                   ControllerHandle,\r
                   &gEfiUsbIoProtocolGuid,\r
                   (VOID **) &UsbIoProtocol,\r
-                  gUsbMouseSimulateTouchPadDriverBinding.DriverBindingHandle,\r
+                  gUsbMouseAbsolutePointerDriverBinding.DriverBindingHandle,\r
                   ControllerHandle,\r
                   EFI_OPEN_PROTOCOL_BY_DRIVER\r
                   );\r
@@ -338,7 +338,7 @@ UsbMouseSimulateTouchPadComponentNameGetControllerName (
     gBS->CloseProtocol (\r
           ControllerHandle,\r
           &gEfiUsbIoProtocolGuid,\r
-          gUsbMouseSimulateTouchPadDriverBinding.DriverBindingHandle,\r
+          gUsbMouseAbsolutePointerDriverBinding.DriverBindingHandle,\r
           ControllerHandle\r
           );\r
 \r
@@ -355,7 +355,7 @@ UsbMouseSimulateTouchPadComponentNameGetControllerName (
                   ControllerHandle,\r
                  &gEfiAbsolutePointerProtocolGuid,\r
                   (VOID **) &AbsolutePointerProtocol,\r
-                  gUsbMouseSimulateTouchPadDriverBinding.DriverBindingHandle,\r
+                  gUsbMouseAbsolutePointerDriverBinding.DriverBindingHandle,\r
                   ControllerHandle,\r
                   EFI_OPEN_PROTOCOL_GET_PROTOCOL\r
                   );\r
@@ -364,14 +364,14 @@ UsbMouseSimulateTouchPadComponentNameGetControllerName (
     return Status;\r
   }\r
 \r
-  UsbMouseSimulateTouchPadDev = USB_MOUSE_SIMULATE_TOUCHPAD_DEV_FROM_MOUSE_PROTOCOL (AbsolutePointerProtocol);\r
+  UsbMouseAbsolutePointerDev = USB_MOUSE_ABSOLUTE_POINTER_DEV_FROM_MOUSE_PROTOCOL (AbsolutePointerProtocol);\r
 \r
   return LookupUnicodeString2 (\r
            Language,\r
            This->SupportedLanguages,\r
-           UsbMouseSimulateTouchPadDev->ControllerNameTable,\r
+           UsbMouseAbsolutePointerDev->ControllerNameTable,\r
            ControllerName,\r
-           (BOOLEAN)(This == &gUsbMouseSimulateTouchPadComponentName)\r
+           (BOOLEAN)(This == &gUsbMouseAbsolutePointerComponentName)\r
            );\r
 \r
 }\r