]>
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.
36 Free the schedule data. It may be partially initialized.
38 @param Ehc The EHCI device.
50 Link the queue head to the asynchronous schedule list.
51 UEFI only supports one CTRL/BULK transfer at a time
52 due to its interfaces. This simplifies the AsynList
53 management: A reclamation header is always linked to
54 the AsyncListAddr, the only active QH is appended to it.
56 @param Ehc The EHCI device.
57 @param Qh The queue head to link.
70 Unlink a queue head from the asynchronous schedule list.
71 Need to synchronize with hardware.
73 @param Ehc The EHCI device.
74 @param Qh The queue head to unlink.
80 EhcUnlinkQhFromAsync (
87 Link a queue head for interrupt transfer to the periodic
88 schedule frame list. This code is very much the same as
91 @param Ehc The EHCI device.
92 @param Qh The queue head to link.
105 Unlink an interrupt queue head from the periodic
108 @param Ehc The EHCI device.
109 @param Qh The queue head to unlink.
115 EhcUnlinkQhFromPeriod (
123 Execute the transfer by polling the URB. This is a synchronous operation.
125 @param Ehc The EHCI device.
126 @param Urb The URB to execute.
127 @param TimeOut The time to wait before abort, in millisecond.
129 @retval EFI_DEVICE_ERROR The transfer failed due to transfer error.
130 @retval EFI_TIMEOUT The transfer failed due to time out.
131 @retval EFI_SUCCESS The transfer finished OK.
143 Delete a single asynchronous interrupt transfer for
144 the device and endpoint.
146 @param Ehc The EHCI device.
147 @param DevAddr The address of the target device.
148 @param EpNum The endpoint of the target.
149 @param DataToggle Return the next data toggle to use.
151 @retval EFI_SUCCESS An asynchronous transfer is removed.
152 @retval EFI_NOT_FOUND No transfer for the device is found.
156 EhciDelAsyncIntTransfer (
160 OUT UINT8
*DataToggle
165 Remove all the asynchronous interrutp transfers.
167 @param Ehc The EHCI device.
173 EhciDelAllAsyncIntTransfers (
179 Interrupt transfer periodic check handler.
181 @param Event Interrupt event.
182 @param Context Pointer to USB2_HC_DEV.
188 EhcMoniteAsyncRequests (