]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/Protocol/Usb2HostController.h
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Include / Protocol / Usb2HostController.h
index a2c6767a70f379390784dd8531c980413124301a..06e20beba88efd7b475f87638d6f135e3df0c044 100644 (file)
 ///\r
 typedef struct _EFI_USB2_HC_PROTOCOL EFI_USB2_HC_PROTOCOL;\r
 \r
-\r
 typedef struct {\r
-  UINT16          PortStatus;        ///< Contains current port status bitmap.\r
-  UINT16          PortChangeStatus;  ///< Contains current port status change bitmap.\r
+  UINT16    PortStatus;              ///< Contains current port status bitmap.\r
+  UINT16    PortChangeStatus;        ///< Contains current port status change bitmap.\r
 } EFI_USB_PORT_STATUS;\r
 \r
 ///\r
 /// EFI_USB_PORT_STATUS.PortStatus bit definition\r
 ///\r
-#define USB_PORT_STAT_CONNECTION    0x0001\r
-#define USB_PORT_STAT_ENABLE        0x0002\r
-#define USB_PORT_STAT_SUSPEND       0x0004\r
-#define USB_PORT_STAT_OVERCURRENT   0x0008\r
-#define USB_PORT_STAT_RESET         0x0010\r
-#define USB_PORT_STAT_POWER         0x0100\r
-#define USB_PORT_STAT_LOW_SPEED     0x0200\r
-#define USB_PORT_STAT_HIGH_SPEED    0x0400\r
-#define USB_PORT_STAT_SUPER_SPEED   0x0800\r
-#define USB_PORT_STAT_OWNER         0x2000\r
+#define USB_PORT_STAT_CONNECTION   0x0001\r
+#define USB_PORT_STAT_ENABLE       0x0002\r
+#define USB_PORT_STAT_SUSPEND      0x0004\r
+#define USB_PORT_STAT_OVERCURRENT  0x0008\r
+#define USB_PORT_STAT_RESET        0x0010\r
+#define USB_PORT_STAT_POWER        0x0100\r
+#define USB_PORT_STAT_LOW_SPEED    0x0200\r
+#define USB_PORT_STAT_HIGH_SPEED   0x0400\r
+#define USB_PORT_STAT_SUPER_SPEED  0x0800\r
+#define USB_PORT_STAT_OWNER        0x2000\r
 \r
 ///\r
 /// EFI_USB_PORT_STATUS.PortChangeStatus bit definition\r
 ///\r
-#define USB_PORT_STAT_C_CONNECTION  0x0001\r
-#define USB_PORT_STAT_C_ENABLE      0x0002\r
-#define USB_PORT_STAT_C_SUSPEND     0x0004\r
-#define USB_PORT_STAT_C_OVERCURRENT 0x0008\r
-#define USB_PORT_STAT_C_RESET       0x0010\r
-\r
+#define USB_PORT_STAT_C_CONNECTION   0x0001\r
+#define USB_PORT_STAT_C_ENABLE       0x0002\r
+#define USB_PORT_STAT_C_SUSPEND      0x0004\r
+#define USB_PORT_STAT_C_OVERCURRENT  0x0008\r
+#define USB_PORT_STAT_C_RESET        0x0010\r
 \r
 ///\r
 /// Usb port features value\r
@@ -72,14 +70,14 @@ typedef enum {
   EfiUsbPortResetChange       = 20\r
 } EFI_USB_PORT_FEATURE;\r
 \r
-#define EFI_USB_SPEED_FULL      0x0000  ///< 12 Mb/s, USB 1.1 OHCI and UHCI HC.\r
-#define EFI_USB_SPEED_LOW       0x0001  ///< 1 Mb/s, USB 1.1 OHCI and UHCI HC.\r
-#define EFI_USB_SPEED_HIGH      0x0002  ///< 480 Mb/s, USB 2.0 EHCI HC.\r
-#define EFI_USB_SPEED_SUPER     0x0003  ///< 4.8 Gb/s, USB 3.0 XHCI HC.\r
+#define EFI_USB_SPEED_FULL   0x0000     ///< 12 Mb/s, USB 1.1 OHCI and UHCI HC.\r
+#define EFI_USB_SPEED_LOW    0x0001     ///< 1 Mb/s, USB 1.1 OHCI and UHCI HC.\r
+#define EFI_USB_SPEED_HIGH   0x0002     ///< 480 Mb/s, USB 2.0 EHCI HC.\r
+#define EFI_USB_SPEED_SUPER  0x0003     ///< 4.8 Gb/s, USB 3.0 XHCI HC.\r
 \r
 typedef struct {\r
-  UINT8      TranslatorHubAddress; ///< device address\r
-  UINT8      TranslatorPortNumber; ///< the port number of the hub that device is connected to.\r
+  UINT8    TranslatorHubAddress;   ///< device address\r
+  UINT8    TranslatorPortNumber;   ///< the port number of the hub that device is connected to.\r
 } EFI_USB2_HC_TRANSACTION_TRANSLATOR;\r
 \r
 //\r
@@ -114,6 +112,7 @@ EFI_STATUS
 #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
 /**\r
   Provides software reset for the USB host controller.\r
 \r
@@ -192,7 +191,7 @@ EFI_STATUS
 (EFIAPI *EFI_USB2_HC_PROTOCOL_GET_STATE)(\r
   IN        EFI_USB2_HC_PROTOCOL    *This,\r
   OUT       EFI_USB_HC_STATE        *State\r
-);\r
+  );\r
 \r
 /**\r
   Sets the USB host controller to a specific state.\r
@@ -258,7 +257,7 @@ EFI_STATUS
   OUT    UINT32                             *TransferResult\r
   );\r
 \r
-#define EFI_USB_MAX_BULK_BUFFER_NUM 10\r
+#define EFI_USB_MAX_BULK_BUFFER_NUM  10\r
 \r
 /**\r
   Submits bulk transfer to a bulk endpoint of a USB device.\r
@@ -401,8 +400,8 @@ EFI_STATUS
   OUT    UINT32                                      *TransferResult\r
   );\r
 \r
-#define EFI_USB_MAX_ISO_BUFFER_NUM  7\r
-#define EFI_USB_MAX_ISO_BUFFER_NUM1 2\r
+#define EFI_USB_MAX_ISO_BUFFER_NUM   7\r
+#define EFI_USB_MAX_ISO_BUFFER_NUM1  2\r
 \r
 /**\r
   Submits isochronous transfer to an isochronous endpoint of a USB device.\r
@@ -624,35 +623,35 @@ EFI_STATUS
 /// instance, and an EFI_USB2_HC_PROTOCOL instance.\r
 ///\r
 struct _EFI_USB2_HC_PROTOCOL {\r
-  EFI_USB2_HC_PROTOCOL_GET_CAPABILITY              GetCapability;\r
-  EFI_USB2_HC_PROTOCOL_RESET                       Reset;\r
-  EFI_USB2_HC_PROTOCOL_GET_STATE                   GetState;\r
-  EFI_USB2_HC_PROTOCOL_SET_STATE                   SetState;\r
-  EFI_USB2_HC_PROTOCOL_CONTROL_TRANSFER            ControlTransfer;\r
-  EFI_USB2_HC_PROTOCOL_BULK_TRANSFER               BulkTransfer;\r
-  EFI_USB2_HC_PROTOCOL_ASYNC_INTERRUPT_TRANSFER    AsyncInterruptTransfer;\r
-  EFI_USB2_HC_PROTOCOL_SYNC_INTERRUPT_TRANSFER     SyncInterruptTransfer;\r
-  EFI_USB2_HC_PROTOCOL_ISOCHRONOUS_TRANSFER        IsochronousTransfer;\r
-  EFI_USB2_HC_PROTOCOL_ASYNC_ISOCHRONOUS_TRANSFER  AsyncIsochronousTransfer;\r
-  EFI_USB2_HC_PROTOCOL_GET_ROOTHUB_PORT_STATUS     GetRootHubPortStatus;\r
-  EFI_USB2_HC_PROTOCOL_SET_ROOTHUB_PORT_FEATURE    SetRootHubPortFeature;\r
-  EFI_USB2_HC_PROTOCOL_CLEAR_ROOTHUB_PORT_FEATURE  ClearRootHubPortFeature;\r
+  EFI_USB2_HC_PROTOCOL_GET_CAPABILITY                GetCapability;\r
+  EFI_USB2_HC_PROTOCOL_RESET                         Reset;\r
+  EFI_USB2_HC_PROTOCOL_GET_STATE                     GetState;\r
+  EFI_USB2_HC_PROTOCOL_SET_STATE                     SetState;\r
+  EFI_USB2_HC_PROTOCOL_CONTROL_TRANSFER              ControlTransfer;\r
+  EFI_USB2_HC_PROTOCOL_BULK_TRANSFER                 BulkTransfer;\r
+  EFI_USB2_HC_PROTOCOL_ASYNC_INTERRUPT_TRANSFER      AsyncInterruptTransfer;\r
+  EFI_USB2_HC_PROTOCOL_SYNC_INTERRUPT_TRANSFER       SyncInterruptTransfer;\r
+  EFI_USB2_HC_PROTOCOL_ISOCHRONOUS_TRANSFER          IsochronousTransfer;\r
+  EFI_USB2_HC_PROTOCOL_ASYNC_ISOCHRONOUS_TRANSFER    AsyncIsochronousTransfer;\r
+  EFI_USB2_HC_PROTOCOL_GET_ROOTHUB_PORT_STATUS       GetRootHubPortStatus;\r
+  EFI_USB2_HC_PROTOCOL_SET_ROOTHUB_PORT_FEATURE      SetRootHubPortFeature;\r
+  EFI_USB2_HC_PROTOCOL_CLEAR_ROOTHUB_PORT_FEATURE    ClearRootHubPortFeature;\r
 \r
   ///\r
   /// The major revision number of the USB host controller. The revision information\r
   /// indicates the release of the Universal Serial Bus Specification with which the\r
   /// host controller is compliant.\r
   ///\r
-  UINT16                                           MajorRevision;\r
+  UINT16                                             MajorRevision;\r
 \r
   ///\r
   /// The minor revision number of the USB host controller. The revision information\r
   /// indicates the release of the Universal Serial Bus Specification with which the\r
   /// host controller is compliant.\r
   ///\r
-  UINT16                                           MinorRevision;\r
+  UINT16                                             MinorRevision;\r
 };\r
 \r
-extern EFI_GUID gEfiUsb2HcProtocolGuid;\r
+extern EFI_GUID  gEfiUsb2HcProtocolGuid;\r
 \r
 #endif\r