2 This file contains the definination for host controller schedule routines.
4 Copyright (c) 2013-2015 Intel Corporation.
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 #include "Descriptor.h"
23 #define HCCA_MEM_SIZE 256
29 Convert Error code from OHCI format to EFI format
31 @Param ErrorCode ErrorCode in OHCI format
33 @retval ErrorCode in EFI format
44 @Param Ohc UHC private data
45 @Param Td TD_DESCRIPTOR
46 @Param Result Result to return
49 @retval FLASE means Error or Short packet
54 IN USB_OHCI_HC_DEV
*Ohc
,
60 Check the task status on an ED
62 @Param Ed Pointer to the ED task that TD hooked on
63 @Param HeadTd TD header for current transaction
65 @retval Task Status Code
72 IN TD_DESCRIPTOR
*HeadTd
78 @Param Ohc UHC private data
79 @Param ListType Pipe type
80 @Param Ed Pointer to the ED task hooked on
81 @Param HeadTd Head of TD corresponding to the task
82 @Param ErrorCode return the ErrorCode
84 @retval EFI_SUCCESS Task done
85 @retval EFI_NOT_READY Task on processing
86 @retval EFI_DEVICE_ERROR Some error occured
91 IN USB_OHCI_HC_DEV
*Ohc
,
92 IN DESCRIPTOR_LIST_TYPE ListType
,
94 IN TD_DESCRIPTOR
*HeadTd
,
99 Convert TD condition code to Efi Status
101 @Param ConditionCode Condition code to convert
103 @retval EFI_SUCCESS No error occured
104 @retval EFI_NOT_READY TD still on processing
105 @retval EFI_DEVICE_ERROR Error occured in processing TD
110 OhciTDConditionCodeToStatus (
111 IN UINT32 ConditionCode