]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.h
MdeModulePkg/SdMmcPciHcDxe: Do not map memory for non DMA transfer
[mirror_edk2.git] / MdeModulePkg / Bus / Pci / UhciDxe / UhciSched.h
index 804f28a7e83c72315a3fdf6b25e18671c08d9440..5bcfad5c6cd90b47408ab7c635c06e4dcb40c6e6 100644 (file)
@@ -2,14 +2,8 @@
 \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
-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
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -17,21 +11,18 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #define _EFI_UHCI_SCHED_H_\r
 \r
 \r
-typedef enum {\r
-  UHCI_ASYNC_INT_SIGNATURE = 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
@@ -131,15 +122,13 @@ UhciConvertPollRate (
   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
@@ -149,16 +138,14 @@ UhciLinkQhToFrameList (
   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
@@ -197,7 +184,6 @@ UhciExecuteTransfer (
   @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
@@ -217,7 +203,6 @@ UhciCreateAsyncReq (
   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
@@ -271,6 +256,7 @@ UhciFreeAllAsyncReq (
 \r
 **/\r
 VOID\r
+EFIAPI\r
 UhciMonitorAsyncReqList (\r
   IN EFI_EVENT            Event,\r
   IN VOID                 *Context\r