2 This file contains the definination for host controller schedule routines.
4 Copyright (c) 2013-2015 Intel Corporation.
6 SPDX-License-Identifier: BSD-2-Clause-Patent
15 #include "Descriptor.h"
17 #define HCCA_MEM_SIZE 256
23 Convert Error code from OHCI format to EFI format
25 @Param ErrorCode ErrorCode in OHCI format
27 @retval ErrorCode in EFI format
38 @Param Ohc UHC private data
39 @Param Td TD_DESCRIPTOR
40 @Param Result Result to return
43 @retval FLASE means Error or Short packet
48 IN USB_OHCI_HC_DEV
*Ohc
,
54 Check the task status on an ED
56 @Param Ed Pointer to the ED task that TD hooked on
57 @Param HeadTd TD header for current transaction
59 @retval Task Status Code
66 IN TD_DESCRIPTOR
*HeadTd
72 @Param Ohc UHC private data
73 @Param ListType Pipe type
74 @Param Ed Pointer to the ED task hooked on
75 @Param HeadTd Head of TD corresponding to the task
76 @Param ErrorCode return the ErrorCode
78 @retval EFI_SUCCESS Task done
79 @retval EFI_NOT_READY Task on processing
80 @retval EFI_DEVICE_ERROR Some error occured
85 IN USB_OHCI_HC_DEV
*Ohc
,
86 IN DESCRIPTOR_LIST_TYPE ListType
,
88 IN TD_DESCRIPTOR
*HeadTd
,
93 Convert TD condition code to Efi Status
95 @Param ConditionCode Condition code to convert
97 @retval EFI_SUCCESS No error occured
98 @retval EFI_NOT_READY TD still on processing
99 @retval EFI_DEVICE_ERROR Error occured in processing TD
104 OhciTDConditionCodeToStatus (
105 IN UINT32 ConditionCode