]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/UsbHostController.h
Code Scrub for Protocol and Ppi Definition
[mirror_edk2.git] / MdePkg / Include / Protocol / UsbHostController.h
index 5ce92f3fe73ed78b1486dc8614623a664a5575e9..e42306a4ddccd88c02b771b4ac103623a8ab8c0c 100644 (file)
@@ -1,7 +1,11 @@
 /** @file\r
   EFI_USB_HC_PROTOCOL as defined in EFI 1.10.\r
 \r
-  Copyright (c) 2006, Intel Corporation                                                         \r
+  The USB Host Controller Protocol is used by code, typically USB bus drivers, \r
+  running in the EFI boot services environment, to perform data transactions \r
+  over a USB bus. In addition, it provides an abstraction for the root hub of the USB bus.\r
+\r
+  Copyright (c) 2006 - 2008, 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
@@ -46,7 +50,7 @@ typedef struct _EFI_USB_HC_PROTOCOL EFI_USB_HC_PROTOCOL;
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_RESET) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_RESET)(\r
   IN EFI_USB_HC_PROTOCOL     *This,\r
   IN UINT16                  Attributes\r
   );\r
@@ -66,7 +70,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_GET_STATE) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_GET_STATE)(\r
   IN  EFI_USB_HC_PROTOCOL    *This,\r
   OUT EFI_USB_HC_STATE       *State\r
   );\r
@@ -85,7 +89,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_SET_STATE) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_SET_STATE)(\r
   IN EFI_USB_HC_PROTOCOL     *This,\r
   IN EFI_USB_HC_STATE        State\r
   );\r
@@ -122,7 +126,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_CONTROL_TRANSFER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_CONTROL_TRANSFER)(\r
   IN     EFI_USB_HC_PROTOCOL       *This,\r
   IN     UINT8                     DeviceAddress,\r
   IN     BOOLEAN                   IsSlowDevice,\r
@@ -164,7 +168,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_BULK_TRANSFER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_BULK_TRANSFER)(\r
   IN     EFI_USB_HC_PROTOCOL    *This,\r
   IN     UINT8                  DeviceAddress,\r
   IN     UINT8                  EndPointAddress,\r
@@ -209,7 +213,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_ASYNC_INTERRUPT_TRANSFER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_ASYNC_INTERRUPT_TRANSFER)(\r
   IN     EFI_USB_HC_PROTOCOL                                 *This,\r
   IN     UINT8                                               DeviceAddress,\r
   IN     UINT8                                               EndPointAddress,\r
@@ -254,7 +258,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_SYNC_INTERRUPT_TRANSFER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_SYNC_INTERRUPT_TRANSFER)(\r
   IN     EFI_USB_HC_PROTOCOL    *This,\r
   IN     UINT8                  DeviceAddress,\r
   IN     UINT8                  EndPointAddress,\r
@@ -293,7 +297,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_ISOCHRONOUS_TRANSFER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_ISOCHRONOUS_TRANSFER)(\r
   IN     EFI_USB_HC_PROTOCOL    *This,\r
   IN     UINT8                  DeviceAddress,\r
   IN     UINT8                  EndPointAddress,\r
@@ -328,7 +332,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_ASYNC_ISOCHRONOUS_TRANSFER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_ASYNC_ISOCHRONOUS_TRANSFER)(\r
   IN     EFI_USB_HC_PROTOCOL                *This,\r
   IN     UINT8                              DeviceAddress,\r
   IN     UINT8                              EndPointAddress,\r
@@ -352,7 +356,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_NUMBER) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_NUMBER)(\r
   IN EFI_USB_HC_PROTOCOL    *This,\r
   OUT UINT8                 *PortNumber\r
   );\r
@@ -372,7 +376,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_STATUS) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_GET_ROOTHUB_PORT_STATUS)(\r
   IN EFI_USB_HC_PROTOCOL     *This,\r
   IN  UINT8                  PortNumber,\r
   OUT EFI_USB_PORT_STATUS    *PortStatus\r
@@ -394,7 +398,7 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_SET_ROOTHUB_PORT_FEATURE) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_SET_ROOTHUB_PORT_FEATURE)(\r
   IN EFI_USB_HC_PROTOCOL     *This,\r
   IN UINT8                   PortNumber,\r
   IN EFI_USB_PORT_FEATURE    PortFeature\r
@@ -416,12 +420,74 @@ EFI_STATUS
 **/\r
 typedef\r
 EFI_STATUS\r
-(EFIAPI *EFI_USB_HC_PROTOCOL_CLEAR_ROOTHUB_PORT_FEATURE) (\r
+(EFIAPI *EFI_USB_HC_PROTOCOL_CLEAR_ROOTHUB_PORT_FEATURE)(\r
   IN EFI_USB_HC_PROTOCOL     *This,\r
   IN UINT8                   PortNumber,\r
   IN EFI_USB_PORT_FEATURE    PortFeature\r
   );\r
 \r
+\r
+/**  \r
+  @par Protocol Description:\r
+  The EFI_USB_HC_PROTOCOL provides USB host controller management, basic data transactions\r
+  over a USB bus, and USB root hub access. A device driver that wishes to manage a USB bus in a\r
+  system retrieves the EFI_USB_HC_PROTOCOL instance that is associated with the USB bus to be\r
+  managed. A device handle for a USB host controller will minimally contain an\r
+  EFI_DEVICE_PATH_PROTOCOL instance, and an EFI_USB_HC_PROTOCOL instance. \r
+  \r
+  @param Reset \r
+  Software reset of USB. \r
+\r
+  @param GetState \r
+  Retrieves the current state of the USB host controller. \r
+\r
+  @param SetState \r
+  Sets the USB host controller to a specific state. \r
+\r
+  @param ControlTransfer \r
+  Submits a control transfer to a target USB device. \r
+\r
+  @param BulkTransfer \r
+  Submits a bulk transfer to a bulk endpoint of a USB device. \r
+\r
+  @param AsyncInterruptTransfer\r
+  Submits an asynchronous interrupt transfer to an interrupt endpoint\r
+  of a USB device. \r
+\r
+  @param SyncInterruptTransfer\r
+  Submits a synchronous interrupt transfer to an interrupt endpoint\r
+  of a USB device.\r
+\r
+  @param IsochronousTransfer \r
+  Submits isochronous transfer to an isochronous endpoint of a USB device.\r
+\r
+  @param AsyncIsochronousTransfer\r
+  Submits nonblocking USB isochronous transfer.\r
+\r
+  @param GetRootHubPortNumber \r
+  Retrieves the number of root hub ports that are produced by the\r
+  USB host controller. \r
+\r
+  @param GetRootHubPortStatus \r
+  Retrieves the status of the specified root hub port. \r
+\r
+  @param SetRootHubPortFeature\r
+  Sets the feature for the specified root hub port.\r
+\r
+  @param ClearRootHubPortFeature\r
+  Clears the feature for the specified root hub port. \r
+\r
+  @param MajorRevision \r
+  The major revision number of the USB host controller. The\r
+  revision information indicates the release of the Universal Serial\r
+  Bus Specification with which the host controller is compliant.\r
+\r
+  @param MinorRevision \r
+  The minor revision number of the USB host controller. The\r
+  revision information indicates the release of the Universal Serial\r
+  Bus Specification with which the host controller is compliant.\r
\r
+**/\r
 struct _EFI_USB_HC_PROTOCOL {\r
   EFI_USB_HC_PROTOCOL_RESET                       Reset;\r
   EFI_USB_HC_PROTOCOL_GET_STATE                   GetState;\r