]>
git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Bus/Pci/EhciDxe/EhciSched.h
3 This file contains the definination for host controller schedule routines.
5 Copyright (c) 2007, Intel Corporation
6 All rights reserved. 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.
16 #ifndef _EFI_EHCI_SCHED_H_
17 #define _EFI_EHCI_SCHED_H_
21 Initialize the schedule data structure such as frame list.
23 @param Ehc The EHCI device to init schedule data for.
25 @retval EFI_OUT_OF_RESOURCES Failed to allocate resource to init schedule data.
26 @retval EFI_SUCCESS The schedule data is initialized.
37 Free the schedule data. It may be partially initialized.
39 @param Ehc The EHCI device.
52 Link the queue head to the asynchronous schedule list.
53 UEFI only supports one CTRL/BULK transfer at a time
54 due to its interfaces. This simplifies the AsynList
55 management: A reclamation header is always linked to
56 the AsyncListAddr, the only active QH is appended to it.
58 @param Ehc The EHCI device.
59 @param Qh The queue head to link.
73 Unlink a queue head from the asynchronous schedule list.
74 Need to synchronize with hardware.
76 @param Ehc The EHCI device.
77 @param Qh The queue head to unlink.
83 EhcUnlinkQhFromAsync (
91 Link a queue head for interrupt transfer to the periodic
92 schedule frame list. This code is very much the same as
95 @param Ehc The EHCI device.
96 @param Qh The queue head to link.
110 Unlink an interrupt queue head from the periodic
113 @param Ehc The EHCI device.
114 @param Qh The queue head to unlink.
120 EhcUnlinkQhFromPeriod (
129 Execute the transfer by polling the URB. This is a synchronous operation.
131 @param Ehc The EHCI device.
132 @param Urb The URB to execute.
133 @param TimeOut The time to wait before abort, in millisecond.
135 @retval EFI_DEVICE_ERROR The transfer failed due to transfer error.
136 @retval EFI_TIMEOUT The transfer failed due to time out.
137 @retval EFI_SUCCESS The transfer finished OK.
150 Delete a single asynchronous interrupt transfer for
151 the device and endpoint.
153 @param Ehc The EHCI device.
154 @param DevAddr The address of the target device.
155 @param EpNum The endpoint of the target.
156 @param DataToggle Return the next data toggle to use.
158 @retval EFI_SUCCESS An asynchronous transfer is removed.
159 @retval EFI_NOT_FOUND No transfer for the device is found.
163 EhciDelAsyncIntTransfer (
167 OUT UINT8
*DataToggle
173 Remove all the asynchronous interrutp transfers.
175 @param Ehc The EHCI device.
181 EhciDelAllAsyncIntTransfers (
188 Interrupt transfer periodic check handler.
190 @param Event Interrupt event.
191 @param Context Pointer to USB2_HC_DEV.
197 EhcMoniteAsyncRequests (