\r
The definition for EHCI register operation routines.\r
\r
-Copyright (c) 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
#define _EFI_UHCI_SCHED_H_\r
\r
\r
-typedef enum {\r
- UHCI_ASYNC_INT_SIGNATURE = EFI_SIGNATURE_32 ('u', 'h', 'c', 'a'),\r
-\r
- //\r
- // The failure mask for USB transfer return status. If any of\r
- // these bit is set, the transfer failed. EFI_USB_ERR_NOEXECUTE\r
- // and EFI_USB_ERR_NAK are not considered as error condition:\r
- // the transfer is still going on.\r
- //\r
- USB_ERR_FAIL_MASK = EFI_USB_ERR_STALL | EFI_USB_ERR_BUFFER |\r
- EFI_USB_ERR_BABBLE | EFI_USB_ERR_CRC |\r
- EFI_USB_ERR_TIMEOUT | EFI_USB_ERR_BITSTUFF |\r
- EFI_USB_ERR_SYSTEM\r
+#define UHCI_ASYNC_INT_SIGNATURE SIGNATURE_32 ('u', 'h', 'c', 'a')\r
+//\r
+// The failure mask for USB transfer return status. If any of\r
+// these bit is set, the transfer failed. EFI_USB_ERR_NOEXECUTE\r
+// and EFI_USB_ERR_NAK are not considered as error condition:\r
+// the transfer is still going on.\r
+//\r
+#define USB_ERR_FAIL_MASK (EFI_USB_ERR_STALL | EFI_USB_ERR_BUFFER | \\r
+ EFI_USB_ERR_BABBLE | EFI_USB_ERR_CRC | \\r
+ EFI_USB_ERR_TIMEOUT | EFI_USB_ERR_BITSTUFF | \\r
+ EFI_USB_ERR_SYSTEM)\r
\r
-}UHCI_ERR_FAIL_MASK;\r
\r
//\r
// Structure to return the result of UHCI QH execution.\r
Link a queue head (for asynchronous interrupt transfer) to\r
the frame list.\r
\r
- @param FrameBase The base of the frame list.\r
+ @param Uhc The UHCI device.\r
@param Qh The queue head to link into.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
UhciLinkQhToFrameList (\r
- UINT32 *FrameBase,\r
+ USB_HC_DEV *Uhc,\r
UHCI_QH_SW *Qh\r
);\r
\r
the precedence node, and pointer there next to QhSw's\r
next.\r
\r
- @param FrameBase The base address of the frame list.\r
+ @param Uhc The UHCI device.\r
@param Qh The queue head to unlink.\r
\r
- @return None.\r
-\r
**/\r
VOID\r
UhciUnlinkQhFromFrameList (\r
- UINT32 *FrameBase,\r
- UHCI_QH_SW *Qh\r
+ USB_HC_DEV *Uhc,\r
+ UHCI_QH_SW *Qh\r
);\r
\r
\r
@param EndPoint EndPoint Address.\r
@param DataLen Data length.\r
@param Interval Polling Interval when inserted to frame list.\r
- @param Mapping Mapping value.\r
@param Data Data buffer, unmapped.\r
@param Callback Callback after interrupt transfeer.\r
@param Context Callback Context passed as function parameter.\r
IN UINT8 EndPoint,\r
IN UINTN DataLen,\r
IN UINTN Interval,\r
- IN VOID *Mapping,\r
IN UINT8 *Data,\r
IN EFI_ASYNC_USB_TRANSFER_CALLBACK Callback,\r
IN VOID *Context,\r
\r
**/\r
VOID\r
+EFIAPI\r
UhciMonitorAsyncReqList (\r
IN EFI_EVENT Event,\r
IN VOID *Context\r