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,8 +1,8 @@
|
||||
/** @file
|
||||
UEFI Component Name(2) protocol implementation for EHCI driver.
|
||||
|
||||
Copyright (c) 2006 - 2011, 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
|
||||
|
@@ -1,14 +1,14 @@
|
||||
/** @file
|
||||
/** @file
|
||||
The Ehci controller driver.
|
||||
|
||||
EhciDxe driver is responsible for managing the behavior of EHCI controller.
|
||||
It implements the interfaces of monitoring the status of all ports and transferring
|
||||
EhciDxe driver is responsible for managing the behavior of EHCI controller.
|
||||
It implements the interfaces of monitoring the status of all ports and transferring
|
||||
Control, Bulk, Interrupt and Isochronous requests to Usb2.0 device.
|
||||
|
||||
Note that EhciDxe driver is enhanced to guarantee that the EHCI controller get attached
|
||||
to the EHCI controller before a UHCI or OHCI driver attaches to the companion UHCI or
|
||||
OHCI controller. This way avoids the control transfer on a shared port between EHCI
|
||||
and companion host controller when UHCI or OHCI gets attached earlier than EHCI and a
|
||||
to the EHCI controller before a UHCI or OHCI driver attaches to the companion UHCI or
|
||||
OHCI controller. This way avoids the control transfer on a shared port between EHCI
|
||||
and companion host controller when UHCI or OHCI gets attached earlier than EHCI and a
|
||||
USB 2.0 device inserts.
|
||||
|
||||
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
@@ -1608,7 +1608,7 @@ EhcCreateUsb2Hc (
|
||||
gBS->FreePool (Ehc);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
EhcGetUsbDebugPortInfo (Ehc);
|
||||
|
||||
//
|
||||
@@ -1781,12 +1781,12 @@ EhcDriverBindingStart (
|
||||
goto CLOSE_PCIIO;
|
||||
}
|
||||
//
|
||||
// Determine if the device is UHCI or OHCI host controller or not. If yes, then find out the
|
||||
// Determine if the device is UHCI or OHCI host controller or not. If yes, then find out the
|
||||
// companion usb ehci host controller and force EHCI driver get attached to it before
|
||||
// UHCI or OHCI driver attaches to UHCI or OHCI host controller.
|
||||
//
|
||||
if ((UsbClassCReg.ProgInterface == PCI_IF_UHCI || UsbClassCReg.ProgInterface == PCI_IF_OHCI) &&
|
||||
(UsbClassCReg.BaseCode == PCI_CLASS_SERIAL) &&
|
||||
(UsbClassCReg.BaseCode == PCI_CLASS_SERIAL) &&
|
||||
(UsbClassCReg.SubClassCode == PCI_CLASS_SERIAL_USB)) {
|
||||
Status = PciIo->GetLocation (
|
||||
PciIo,
|
||||
@@ -1835,7 +1835,7 @@ EhcDriverBindingStart (
|
||||
}
|
||||
|
||||
if ((UsbClassCReg.ProgInterface == PCI_IF_EHCI) &&
|
||||
(UsbClassCReg.BaseCode == PCI_CLASS_SERIAL) &&
|
||||
(UsbClassCReg.BaseCode == PCI_CLASS_SERIAL) &&
|
||||
(UsbClassCReg.SubClassCode == PCI_CLASS_SERIAL_USB)) {
|
||||
Status = Instance->GetLocation (
|
||||
Instance,
|
||||
@@ -2098,7 +2098,7 @@ EhcDriverBindingStop (
|
||||
}
|
||||
|
||||
//
|
||||
// Disable routing of all ports to EHCI controller, so all ports are
|
||||
// Disable routing of all ports to EHCI controller, so all ports are
|
||||
// routed back to the UHCI or OHCI controller.
|
||||
//
|
||||
EhcClearOpRegBit (Ehc, EHC_CONFIG_FLAG_OFFSET, CONFIGFLAG_ROUTE_EHC);
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
Provides some data struct used by EHCI controller driver.
|
||||
|
||||
Copyright (c) 2006 - 2015, 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
|
||||
@@ -133,7 +133,7 @@ struct _USB2_HC_DEV {
|
||||
EFI_EVENT PollTimer;
|
||||
|
||||
//
|
||||
// ExitBootServicesEvent is used to stop the EHC DMA operation
|
||||
// ExitBootServicesEvent is used to stop the EHC DMA operation
|
||||
// after exit boot service.
|
||||
//
|
||||
EFI_EVENT ExitBootServiceEvent;
|
||||
|
@@ -1,14 +1,14 @@
|
||||
## @file
|
||||
# The EhciDxe driver is responsible for managing the behavior of EHCI controller.
|
||||
# It implements the interfaces of monitoring the status of all ports and transferring
|
||||
# It implements the interfaces of monitoring the status of all ports and transferring
|
||||
# Control, Bulk, Interrupt and Isochronous requests to Usb2.0 device.
|
||||
#
|
||||
# Note that EhciDxe driver is enhanced to guarantee that the EHCI controller get attached
|
||||
# to the EHCI controller before the UHCI driver attaches to the companion UHCI controller.
|
||||
# to the EHCI controller before the UHCI driver attaches to the companion UHCI controller.
|
||||
# This way avoids the control transfer on a shared port between EHCI and companion host
|
||||
# controller when UHCI gets attached earlier than EHCI and a USB 2.0 device inserts.
|
||||
#
|
||||
# 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 ARM AARCH64
|
||||
#
|
||||
# DRIVER_BINDING = gEhciDriverBinding
|
||||
# DRIVER_BINDING = gEhciDriverBinding
|
||||
# COMPONENT_NAME = gEhciComponentName
|
||||
# COMPONENT_NAME2 = gEhciComponentName2
|
||||
#
|
||||
|
@@ -3,19 +3,19 @@
|
||||
//
|
||||
// It implements the interfaces of monitoring the status of all ports and transferring
|
||||
// Control, Bulk, Interrupt and Isochronous requests to Usb2.0 device.
|
||||
//
|
||||
//
|
||||
// Note that EhciDxe driver is enhanced to guarantee that the EHCI controller get attached
|
||||
// to the EHCI controller before the UHCI driver attaches to the companion UHCI controller.
|
||||
// This way avoids the control transfer on a shared port between EHCI and companion host
|
||||
// controller when UHCI gets attached earlier than EHCI and a USB 2.0 device inserts.
|
||||
//
|
||||
// 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
|
||||
// EhciDxe 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
|
||||
"EHCI Controller DXE Driver"
|
||||
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
|
||||
EHCI transfer scheduling routines.
|
||||
|
||||
Copyright (c) 2007 - 2013, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2007 - 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
|
||||
@@ -918,7 +918,7 @@ EhcUpdateAsyncRequest (
|
||||
//
|
||||
// calculate physical address by offset.
|
||||
//
|
||||
PciAddr = (UINTN)Urb->DataPhy + ((UINTN)Qtd->Data - (UINTN)Urb->Data);
|
||||
PciAddr = (UINTN)Urb->DataPhy + ((UINTN)Qtd->Data - (UINTN)Urb->Data);
|
||||
QtdHw->Page[0] = EHC_LOW_32BIT (PciAddr);
|
||||
QtdHw->PageHigh[0]= EHC_HIGH_32BIT (PciAddr);
|
||||
}
|
||||
|
Reference in New Issue
Block a user