From 39e97c396d2f2a0b0b5ff72d0557302acc1dbe42 Mon Sep 17 00:00:00 2001 From: Feng Tian Date: Mon, 27 Apr 2015 05:25:03 +0000 Subject: MdeModulePkg/XhciDxe: rename "Lenth" to "Length" in TRB structs Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Feng Tian Reviewed-by: Laszlo Ersek Reviewed-by: Baraneedharan Anbazhagan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17205 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c | 12 ++++++------ MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.h | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'MdeModulePkg') diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c index 657020f0da..c353d494c4 100644 --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c @@ -2,7 +2,7 @@ XHCI transfer scheduling routines. -Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.
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 @@ -295,7 +295,7 @@ XhcCreateTransferTrb ( TrbStart->TrbCtrSetup.wValue = Urb->Request->Value; TrbStart->TrbCtrSetup.wIndex = Urb->Request->Index; TrbStart->TrbCtrSetup.wLength = Urb->Request->Length; - TrbStart->TrbCtrSetup.Lenth = 8; + TrbStart->TrbCtrSetup.Length = 8; TrbStart->TrbCtrSetup.IntTarget = 0; TrbStart->TrbCtrSetup.IOC = 1; TrbStart->TrbCtrSetup.IDT = 1; @@ -321,7 +321,7 @@ XhcCreateTransferTrb ( TrbStart = (TRB *)(UINTN)EPRing->RingEnqueue; TrbStart->TrbCtrData.TRBPtrLo = XHC_LOW_32BIT(Urb->DataPhy); TrbStart->TrbCtrData.TRBPtrHi = XHC_HIGH_32BIT(Urb->DataPhy); - TrbStart->TrbCtrData.Lenth = (UINT32) Urb->DataLen; + TrbStart->TrbCtrData.Length = (UINT32) Urb->DataLen; TrbStart->TrbCtrData.TDSize = 0; TrbStart->TrbCtrData.IntTarget = 0; TrbStart->TrbCtrData.ISP = 1; @@ -387,7 +387,7 @@ XhcCreateTransferTrb ( TrbStart = (TRB *)(UINTN)EPRing->RingEnqueue; TrbStart->TrbNormal.TRBPtrLo = XHC_LOW_32BIT((UINT8 *) Urb->DataPhy + TotalLen); TrbStart->TrbNormal.TRBPtrHi = XHC_HIGH_32BIT((UINT8 *) Urb->DataPhy + TotalLen); - TrbStart->TrbNormal.Lenth = (UINT32) Len; + TrbStart->TrbNormal.Length = (UINT32) Len; TrbStart->TrbNormal.TDSize = 0; TrbStart->TrbNormal.IntTarget = 0; TrbStart->TrbNormal.ISP = 1; @@ -422,7 +422,7 @@ XhcCreateTransferTrb ( TrbStart = (TRB *)(UINTN)EPRing->RingEnqueue; TrbStart->TrbNormal.TRBPtrLo = XHC_LOW_32BIT((UINT8 *) Urb->DataPhy + TotalLen); TrbStart->TrbNormal.TRBPtrHi = XHC_HIGH_32BIT((UINT8 *) Urb->DataPhy + TotalLen); - TrbStart->TrbNormal.Lenth = (UINT32) Len; + TrbStart->TrbNormal.Length = (UINT32) Len; TrbStart->TrbNormal.TDSize = 0; TrbStart->TrbNormal.IntTarget = 0; TrbStart->TrbNormal.ISP = 1; @@ -1137,7 +1137,7 @@ XhcCheckUrbResult ( if ((TRBType == TRB_TYPE_DATA_STAGE) || (TRBType == TRB_TYPE_NORMAL) || (TRBType == TRB_TYPE_ISOCH)) { - CheckedUrb->Completed += (CheckedUrb->DataLen - EvtTrb->Lenth); + CheckedUrb->Completed += (CheckedUrb->DataLen - EvtTrb->Length); } break; diff --git a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.h b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.h index 023c1089f2..1b6e34590e 100644 --- a/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.h +++ b/MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.h @@ -2,7 +2,7 @@ This file contains the definition for XHCI host controller schedule routines. -Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.
+Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.
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 @@ -224,7 +224,7 @@ typedef struct _TRANSFER_TRB_NORMAL { UINT32 TRBPtrHi; - UINT32 Lenth:17; + UINT32 Length:17; UINT32 TDSize:5; UINT32 IntTarget:10; @@ -253,7 +253,7 @@ typedef struct _TRANSFER_TRB_CONTROL_SETUP { UINT32 wIndex:16; UINT32 wLength:16; - UINT32 Lenth:17; + UINT32 Length:17; UINT32 RsvdZ1:5; UINT32 IntTarget:10; @@ -276,7 +276,7 @@ typedef struct _TRANSFER_TRB_CONTROL_DATA { UINT32 TRBPtrHi; - UINT32 Lenth:17; + UINT32 Length:17; UINT32 TDSize:5; UINT32 IntTarget:10; @@ -325,7 +325,7 @@ typedef struct _EVT_TRB_TRANSFER { UINT32 TRBPtrHi; - UINT32 Lenth:24; + UINT32 Length:24; UINT32 Completecode:8; UINT32 CycleBit:1; -- cgit v1.2.3