2 Provides some data struct used by OHCI controller driver.
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.
20 #include "Descriptor.h"
32 @Param Ohc UHC private data
34 @retval TD structure pointer
39 IN USB_OHCI_HC_DEV
*Ohc
46 @Param Ohc UHC private data
47 @Param Td Pointer to a TD to free
49 @retval EFI_SUCCESS TD freed
54 IN USB_OHCI_HC_DEV
*Ohc
,
62 @Param Ohc Device private data
64 @retval ED descriptor pointer
77 @Param Ohc UHC private data
78 @Param Ed Pointer to a ED to free
80 @retval EFI_SUCCESS ED freed
86 IN USB_OHCI_HC_DEV
*Ohc
,
94 @Param Ohc Device private data
95 @Param Ed Pointer to a ED to free
97 @retval EFI_SUCCESS ED freed
101 OhciFreeAllTDFromED (
102 IN USB_OHCI_HC_DEV
*Ohc
,
110 @Param Ed Ed to be attached
111 @Param NewEd Ed to attach
113 @retval EFI_SUCCESS NewEd attached to Ed
114 @retval EFI_INVALID_PARAMETER Ed is NULL
119 IN ED_DESCRIPTOR
*Ed
,
120 IN ED_DESCRIPTOR
*NewEd
124 Attach an ED to an ED list
126 @Param OHC UHC private data
127 @Param ListType Type of the ED list
128 @Param Ed ED to attach
129 @Param EdList ED list to be attached
131 @retval EFI_SUCCESS ED attached to ED list
136 IN USB_OHCI_HC_DEV
*Ohc
,
137 IN DESCRIPTOR_LIST_TYPE ListType
,
138 IN ED_DESCRIPTOR
*Ed
,
139 IN ED_DESCRIPTOR
*EdList
143 IN TD_DESCRIPTOR
*Td1
,
144 IN TD_DESCRIPTOR
*Td2
152 @Param Ed ED which TD list attach on
153 @Param HeadTd Head of the TD list to attach
155 @retval EFI_SUCCESS TD list attached on the ED
159 OhciAttachTDListToED (
160 IN ED_DESCRIPTOR
*Ed
,
161 IN TD_DESCRIPTOR
*HeadTd
167 Set value to ED specific field
169 @Param Ed ED to be set
170 @Param Field Field to be set
171 @Param Value Value to set
173 @retval EFI_SUCCESS Value set
178 IN ED_DESCRIPTOR
*Ed
,
186 Get value from an ED's specific field
189 @Param Field Field to get value from
191 @retval Value of the field
196 IN ED_DESCRIPTOR
*Ed
,
203 Set value to TD specific field
205 @Param Td TD to be set
206 @Param Field Field to be set
207 @Param Value Value to set
209 @retval EFI_SUCCESS Value set
214 IN TD_DESCRIPTOR
*Td
,
222 Get value from ED specific field
225 @Param Field Field to get value from
227 @retval Value of the field
233 IN TD_DESCRIPTOR
*Td
,