mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
MdeModulePkg/Xhci: Initial XHCI DCI slot's Context value
Initialize XHCI DCI slot's context entries value. Signed-off-by: Jiangang He <jiangang.he@amd.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Garrett Kirkendall <garrett.kirkendall@amd.com> Cc: Abner Chang <abner.chang@amd.com> Cc: Kuei-Hung Lin <Kuei-Hung.Lin@amd.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
7cd55f3009
commit
8147fe090f
@ -4,6 +4,7 @@
|
||||
|
||||
Copyright (c) 2011 - 2020, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) Microsoft Corporation.<BR>
|
||||
Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
**/
|
||||
@ -2807,6 +2808,9 @@ XhcInitializeEndpointContext (
|
||||
MaxDci = 0;
|
||||
|
||||
NumEp = IfDesc->NumEndpoints;
|
||||
if (NumEp == 0) {
|
||||
MaxDci = 1;
|
||||
}
|
||||
|
||||
EpDesc = (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1);
|
||||
for (EpIndex = 0; EpIndex < NumEp; EpIndex++) {
|
||||
@ -3006,6 +3010,9 @@ XhcInitializeEndpointContext64 (
|
||||
MaxDci = 0;
|
||||
|
||||
NumEp = IfDesc->NumEndpoints;
|
||||
if (NumEp == 0) {
|
||||
MaxDci = 1;
|
||||
}
|
||||
|
||||
EpDesc = (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1);
|
||||
for (EpIndex = 0; EpIndex < NumEp; EpIndex++) {
|
||||
|
@ -3,6 +3,7 @@ PEIM to produce gPeiUsb2HostControllerPpiGuid based on gPeiUsbControllerPpiGuid
|
||||
which is used to enable recovery function from USB Drivers.
|
||||
|
||||
Copyright (c) 2014 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (C) 2022 Advanced Micro Devices, Inc. All rights reserved.<BR>
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
|
||||
@ -1752,6 +1753,9 @@ XhcPeiSetConfigCmd (
|
||||
}
|
||||
|
||||
NumEp = IfDesc->NumEndpoints;
|
||||
if ((NumEp == 0) && (MaxDci == 0)) {
|
||||
MaxDci = 1;
|
||||
}
|
||||
|
||||
EpDesc = (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1);
|
||||
for (EpIndex = 0; EpIndex < NumEp; EpIndex++) {
|
||||
@ -1974,6 +1978,9 @@ XhcPeiSetConfigCmd64 (
|
||||
}
|
||||
|
||||
NumEp = IfDesc->NumEndpoints;
|
||||
if ((NumEp == 0) && (MaxDci == 0)) {
|
||||
MaxDci = 1;
|
||||
}
|
||||
|
||||
EpDesc = (USB_ENDPOINT_DESCRIPTOR *)(IfDesc + 1);
|
||||
for (EpIndex = 0; EpIndex < NumEp; EpIndex++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user