]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add some USB related definitions defined n Uefi 2.1 into Usb2HostController.h
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Jul 2007 06:24:38 +0000 (06:24 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Jul 2007 06:24:38 +0000 (06:24 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3190 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Protocol/Usb2HostController.h

index 053a1e574933791b71dbeb038dbd2b8d89965b3a..81ad7732a653c260a83257788b5e4b9efc18eb77 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   EFI_USB2_HC_PROTOCOL as defined in UEFI 2.0.\r
 \r
-  Copyright (c) 2006, 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
+  Copyright (c) 2006, 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
+  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
 \r
 **/\r
 \r
@@ -66,6 +66,10 @@ EFI_STATUS
   )\r
 ;\r
 \r
+#define EFI_USB_HC_RESET_GLOBAL             0x0001\r
+#define EFI_USB_HC_RESET_HOST_CONTROLLER    0x0002\r
+#define EFI_USB_HC_RESET_GLOBAL_WITH_DEBUG  0x0004\r
+#define EFI_USB_HC_RESET_HOST_WITH_DEBUG    0x0008\r
 /**\r
   Provides software reset for the USB host controller.\r
 \r
@@ -93,7 +97,7 @@ EFI_STATUS
 ;\r
 \r
 /**\r
-   \r
+\r
   @param EfiUsbHcStateHalt  The host controller is in halt\r
                             state. No USB transactions can occur\r
                             while in this state. The host\r
@@ -103,8 +107,8 @@ EFI_STATUS
                             Explicitly set by software. 3)\r
                             Triggered by a fatal error such as\r
                             consistency check failure.\r
-  \r
-  \r
+\r
+\r
   @param EfiUsbHcStateOperational   The host controller is in an\r
                                     operational state. When in\r
                                     this state, the host\r
@@ -112,8 +116,8 @@ EFI_STATUS
                                     traffic. This state must be\r
                                     explicitly set to enable the\r
                                     USB bus traffic.\r
-  \r
-  \r
+\r
+\r
   @param EfiUsbHcStateSuspend   The host controller is in the\r
                                 suspend state. No USB\r
                                 transactions can occur while in\r
@@ -123,7 +127,7 @@ EFI_STATUS
                                 set by software. 2) Triggered\r
                                 when there is no bus traffic for\r
                                 3 microseconds.\r
-  \r
+\r
 **/\r
 typedef enum {\r
   EfiUsbHcStateHalt,\r
@@ -151,7 +155,7 @@ EFI_STATUS
   IN CONST  EFI_USB2_HC_PROTOCOL    *This,\r
   OUT       EFI_USB_HC_STATE        *State\r
 )\r
-;  \r
+;\r
 \r
 /**\r
   Sets the USB host controller to a specific state.\r
@@ -217,7 +221,7 @@ EFI_STATUS
   IN     EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator,\r
   OUT    UINT32                             *TransferResult\r
   )\r
-;  \r
+;\r
 \r
 #define EFI_USB_MAX_BULK_BUFFER_NUM 10\r
 \r
@@ -271,7 +275,7 @@ EFI_STATUS
 /**\r
   Submits an asynchronous interrupt transfer to an interrupt endpoint of a USB device.\r
   Translator parameter doesn't exist in UEFI2.0 spec, but it will be updated in the following specification version.\r
-  \r
+\r
   @param  This                A pointer to the EFI_USB2_HC_PROTOCOL instance.\r
   @param  DeviceAddress       Represents the address of the target device on the USB.\r
   @param  EndPointAddress     The combination of an endpoint number and an endpoint direction of the\r
@@ -475,7 +479,7 @@ EFI_STATUS
   IN CONST  UINT8                   PortNumber,\r
   OUT       EFI_USB_PORT_STATUS     *PortStatus\r
   )\r
-;  \r
+;\r
 \r
 /**\r
   Sets a feature for the specified root hub port.\r
@@ -497,7 +501,7 @@ EFI_STATUS
   IN UINT8                   PortNumber,\r
   IN EFI_USB_PORT_FEATURE    PortFeature\r
   )\r
-;  \r
+;\r
 \r
 /**\r
   Clears a feature for the specified root hub port.\r
@@ -519,7 +523,7 @@ EFI_STATUS
   IN UINT8                   PortNumber,\r
   IN EFI_USB_PORT_FEATURE    PortFeature\r
   )\r
-;  \r
+;\r
 \r
 struct _EFI_USB2_HC_PROTOCOL {\r
   EFI_USB2_HC_PROTOCOL_GET_CAPABILITY              GetCapability;\r