MdeModulePkg: Clean up source files
1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Helper functions to parse HID report descriptor and items.
|
||||
|
||||
Copyright (c) 2004 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -160,7 +160,7 @@ GetItemData (
|
||||
There are three item types: Main, Global, and Local.
|
||||
This function parses these types of HID items according
|
||||
to tag info.
|
||||
|
||||
|
||||
@param UsbMouse The instance of USB_MOUSE_DEV
|
||||
@param HidItem The HID item to parse
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
USB Mouse Driver that manages USB mouse and produces Simple Pointer Protocol.
|
||||
|
||||
Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -335,7 +335,7 @@ USBMouseDriverBindingStart (
|
||||
);
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
|
||||
UsbMouseDevice->ControllerNameTable = NULL;
|
||||
AddUnicodeString2 (
|
||||
"eng",
|
||||
@@ -596,7 +596,7 @@ InitializeUsbMouseDevice (
|
||||
|
||||
Total = 0;
|
||||
Start = FALSE;
|
||||
Head = (USB_DESC_HEAD *)Buf;
|
||||
Head = (USB_DESC_HEAD *)Buf;
|
||||
MouseHidDesc = NULL;
|
||||
|
||||
//
|
||||
@@ -782,7 +782,7 @@ OnMouseInterruptComplete (
|
||||
|
||||
//
|
||||
// Delete & Submit this interrupt again
|
||||
// Handler of DelayedRecoveryEvent triggered by timer will re-submit the interrupt.
|
||||
// Handler of DelayedRecoveryEvent triggered by timer will re-submit the interrupt.
|
||||
//
|
||||
UsbIo->UsbAsyncInterruptTransfer (
|
||||
UsbIo,
|
||||
@@ -839,16 +839,16 @@ OnMouseInterruptComplete (
|
||||
|
||||
/**
|
||||
Retrieves the current state of a pointer device.
|
||||
|
||||
@param This A pointer to the EFI_SIMPLE_POINTER_PROTOCOL instance.
|
||||
|
||||
@param This A pointer to the EFI_SIMPLE_POINTER_PROTOCOL instance.
|
||||
@param MouseState A pointer to the state information on the pointer device.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The state of the pointer device was returned in State.
|
||||
@retval EFI_NOT_READY The state of the pointer device has not changed since the last call to
|
||||
GetState().
|
||||
GetState().
|
||||
@retval EFI_DEVICE_ERROR A device error occurred while attempting to retrieve the pointer device's
|
||||
current state.
|
||||
@retval EFI_INVALID_PARAMETER MouseState is NULL.
|
||||
current state.
|
||||
@retval EFI_INVALID_PARAMETER MouseState is NULL.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -892,13 +892,13 @@ GetMouseState (
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
Resets the pointer device hardware.
|
||||
|
||||
|
||||
@param This A pointer to the EFI_SIMPLE_POINTER_PROTOCOL instance.
|
||||
@param ExtendedVerification Indicates that the driver may perform a more exhaustive
|
||||
verification operation of the device during reset.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The device was reset.
|
||||
@retval EFI_DEVICE_ERROR The device is not functioning correctly and could not be reset.
|
||||
|
||||
@@ -937,7 +937,7 @@ UsbMouseReset (
|
||||
|
||||
@param Event Event to be signaled when there's input from mouse.
|
||||
@param Context Points to USB_MOUSE_DEV instance.
|
||||
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
|
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Helper routine and corresponding data struct used by USB Mouse Driver.
|
||||
|
||||
Copyright (c) 2004 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -310,16 +310,16 @@ UsbMouseComponentNameGetControllerName (
|
||||
|
||||
/**
|
||||
Retrieves the current state of a pointer device.
|
||||
|
||||
@param This A pointer to the EFI_SIMPLE_POINTER_PROTOCOL instance.
|
||||
|
||||
@param This A pointer to the EFI_SIMPLE_POINTER_PROTOCOL instance.
|
||||
@param MouseState A pointer to the state information on the pointer device.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The state of the pointer device was returned in State.
|
||||
@retval EFI_NOT_READY The state of the pointer device has not changed since the last call to
|
||||
GetState().
|
||||
GetState().
|
||||
@retval EFI_DEVICE_ERROR A device error occurred while attempting to retrieve the pointer device's
|
||||
current state.
|
||||
@retval EFI_INVALID_PARAMETER MouseState is NULL.
|
||||
current state.
|
||||
@retval EFI_INVALID_PARAMETER MouseState is NULL.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
@@ -329,13 +329,13 @@ GetMouseState (
|
||||
OUT EFI_SIMPLE_POINTER_STATE *MouseState
|
||||
);
|
||||
|
||||
/**
|
||||
/**
|
||||
Resets the pointer device hardware.
|
||||
|
||||
|
||||
@param This A pointer to the EFI_SIMPLE_POINTER_PROTOCOL instance.
|
||||
@param ExtendedVerification Indicates that the driver may perform a more exhaustive
|
||||
verification operation of the device during reset.
|
||||
|
||||
|
||||
@retval EFI_SUCCESS The device was reset.
|
||||
@retval EFI_DEVICE_ERROR The device is not functioning correctly and could not be reset.
|
||||
|
||||
@@ -352,7 +352,7 @@ UsbMouseReset (
|
||||
|
||||
@param Event Event to be signaled when there's input from mouse.
|
||||
@param Context Points to USB_MOUSE_DEV instance.
|
||||
|
||||
|
||||
**/
|
||||
VOID
|
||||
EFIAPI
|
||||
|
@@ -9,7 +9,7 @@
|
||||
# 1. Universal Serial Bus HID Firmware Specification, ver 1.11
|
||||
# 2. UEFI Specification, v2.1
|
||||
#
|
||||
# Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -36,7 +36,7 @@
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
|
||||
#
|
||||
# DRIVER_BINDING = gUsbMouseDriverBinding
|
||||
# DRIVER_BINDING = gUsbMouseDriverBinding
|
||||
# COMPONENT_NAME = gUsbMouseComponentName
|
||||
# COMPONENT_NAME2 = gUsbMouseComponentName2
|
||||
#
|
||||
|
@@ -9,13 +9,13 @@
|
||||
// 1. Universal Serial Bus HID Firmware Specification, ver 1.11
|
||||
// 2. UEFI Specification, v2.1
|
||||
//
|
||||
// Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
// /** @file
|
||||
// UsbMouseDxe Localized Strings and Content
|
||||
//
|
||||
// Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.<BR>
|
||||
// Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
@@ -13,8 +13,8 @@
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"USB Mouse DXE Driver"
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user