git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3190
6f19259b-4bc3-4df7-8a09-
765794883524
/** @file\r
EFI_USB2_HC_PROTOCOL as defined in UEFI 2.0.\r
\r
/** @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
- 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
+#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
/**\r
Provides software reset for the USB host controller.\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
@param EfiUsbHcStateHalt The host controller is in halt\r
state. No USB transactions can occur\r
while in this state. The host\r
Explicitly set by software. 3)\r
Triggered by a fatal error such as\r
consistency check failure.\r
Explicitly set by software. 3)\r
Triggered by a fatal error such as\r
consistency check failure.\r
@param EfiUsbHcStateOperational The host controller is in an\r
operational state. When in\r
this state, the host\r
@param EfiUsbHcStateOperational The host controller is in an\r
operational state. When in\r
this state, the host\r
traffic. This state must be\r
explicitly set to enable the\r
USB bus traffic.\r
traffic. This state must be\r
explicitly set to enable the\r
USB bus traffic.\r
@param EfiUsbHcStateSuspend The host controller is in the\r
suspend state. No USB\r
transactions can occur while in\r
@param EfiUsbHcStateSuspend The host controller is in the\r
suspend state. No USB\r
transactions can occur while in\r
set by software. 2) Triggered\r
when there is no bus traffic for\r
3 microseconds.\r
set by software. 2) Triggered\r
when there is no bus traffic for\r
3 microseconds.\r
**/\r
typedef enum {\r
EfiUsbHcStateHalt,\r
**/\r
typedef enum {\r
EfiUsbHcStateHalt,\r
IN CONST EFI_USB2_HC_PROTOCOL *This,\r
OUT EFI_USB_HC_STATE *State\r
)\r
IN CONST EFI_USB2_HC_PROTOCOL *This,\r
OUT EFI_USB_HC_STATE *State\r
)\r
\r
/**\r
Sets the USB host controller to a specific state.\r
\r
/**\r
Sets the USB host controller to a specific state.\r
IN EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator,\r
OUT UINT32 *TransferResult\r
)\r
IN EFI_USB2_HC_TRANSACTION_TRANSLATOR *Translator,\r
OUT UINT32 *TransferResult\r
)\r
\r
#define EFI_USB_MAX_BULK_BUFFER_NUM 10\r
\r
\r
#define EFI_USB_MAX_BULK_BUFFER_NUM 10\r
\r
/**\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
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
@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
@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
IN CONST UINT8 PortNumber,\r
OUT EFI_USB_PORT_STATUS *PortStatus\r
)\r
IN CONST UINT8 PortNumber,\r
OUT EFI_USB_PORT_STATUS *PortStatus\r
)\r
\r
/**\r
Sets a feature for the specified root hub port.\r
\r
/**\r
Sets a feature for the specified root hub port.\r
IN UINT8 PortNumber,\r
IN EFI_USB_PORT_FEATURE PortFeature\r
)\r
IN UINT8 PortNumber,\r
IN EFI_USB_PORT_FEATURE PortFeature\r
)\r
\r
/**\r
Clears a feature for the specified root hub port.\r
\r
/**\r
Clears a feature for the specified root hub port.\r
IN UINT8 PortNumber,\r
IN EFI_USB_PORT_FEATURE PortFeature\r
)\r
IN UINT8 PortNumber,\r
IN EFI_USB_PORT_FEATURE PortFeature\r
)\r
\r
struct _EFI_USB2_HC_PROTOCOL {\r
EFI_USB2_HC_PROTOCOL_GET_CAPABILITY GetCapability;\r
\r
struct _EFI_USB2_HC_PROTOCOL {\r
EFI_USB2_HC_PROTOCOL_GET_CAPABILITY GetCapability;\r