]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/BluetoothIo: Formalize function header comments.
authorRuiyu Ni <ruiyu.ni@intel.com>
Tue, 6 Jun 2017 03:07:12 +0000 (11:07 +0800)
committerRuiyu Ni <ruiyu.ni@intel.com>
Wed, 7 Jun 2017 00:46:21 +0000 (08:46 +0800)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
MdePkg/Include/Protocol/BluetoothIo.h

index d750767f09723d1dc2c00e2453437b928bdf4c31..50d08f18d226435ac9d59d7738263da0e78e3395 100644 (file)
@@ -1,19 +1,19 @@
 /** @file\r
   EFI Bluetooth IO Service Binding Protocol as defined in UEFI 2.5.\r
   EFI Bluetooth IO Protocol as defined in UEFI 2.5.\r
-  The EFI Bluetooth IO Service Binding Protocol is used to locate EFI Bluetooth IO Protocol drivers to \r
+  The EFI Bluetooth IO Service Binding Protocol is used to locate EFI Bluetooth IO Protocol drivers to\r
   create and destroy child of the driver to communicate with other Bluetooth device by using Bluetooth IO protocol.\r
 \r
-  Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials are licensed and made available under \r
-  the terms and conditions of the BSD License that accompanies this distribution.  \r
+  Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r
+  This program and the accompanying materials are licensed and made available under\r
+  the terms and conditions of the BSD License that accompanies this distribution.\r
   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
+  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
 \r
-  @par Revision Reference:          \r
+  @par Revision Reference:\r
   This Protocol is introduced in UEFI Specification 2.5\r
 \r
 **/\r
 \r
 #define EFI_BLUETOOTH_IO_SERVICE_BINDING_PROTOCOL_GUID \\r
   { \\r
-    0x388278d3, 0x7b85, 0x42f0, { 0xab, 0xa9, 0xfb, 0x4b, 0xfd, 0x69, 0xf5, 0xab   } \\r
+    0x388278d3, 0x7b85, 0x42f0, { 0xab, 0xa9, 0xfb, 0x4b, 0xfd, 0x69, 0xf5, 0xab } \\r
   }\r
-  \r
+\r
 #define EFI_BLUETOOTH_IO_PROTOCOL_GUID \\r
   { \\r
-    0x467313de, 0x4e30, 0x43f1, { 0x94, 0x3e, 0x32, 0x3f, 0x89, 0x84, 0x5d, 0xb5  } \\r
+    0x467313de, 0x4e30, 0x43f1, { 0x94, 0x3e, 0x32, 0x3f, 0x89, 0x84, 0x5d, 0xb5 } \\r
   }\r
-  \r
+\r
 typedef struct _EFI_BLUETOOTH_IO_PROTOCOL EFI_BLUETOOTH_IO_PROTOCOL;\r
 \r
 ///\r
@@ -72,51 +72,51 @@ typedef struct {
 /**\r
   Get Bluetooth device information.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  DeviceInfoSize  A pointer to the size, in bytes, of the DeviceInfo buffer.\r
-  @param  DeviceInfo      A pointer to a callee allocated buffer that returns Bluetooth device information.\r
+  @param[in]   This               Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[out]  DeviceInfoSize     A pointer to the size, in bytes, of the DeviceInfo buffer.\r
+  @param[out]  DeviceInfo         A pointer to a callee allocated buffer that returns Bluetooth device information.\r
 \r
-  @retval EFI_SUCCESS           The Bluetooth device information is returned successfully.\r
-  @retval EFI_DEVICE_ERROR      A hardware error occurred trying to retrieve the Bluetooth device information.\r
+  @retval EFI_SUCCESS             The Bluetooth device information is returned successfully.\r
+  @retval EFI_DEVICE_ERROR        A hardware error occurred trying to retrieve the Bluetooth device information.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_GET_DEVICE_INFO)(\r
-  IN EFI_BLUETOOTH_IO_PROTOCOL  *This,\r
-  OUT UINTN                     *DeviceInfoSize,\r
-  OUT VOID                      **DeviceInfo\r
+  IN EFI_BLUETOOTH_IO_PROTOCOL    *This,\r
+  OUT UINTN                       *DeviceInfoSize,\r
+  OUT VOID                        **DeviceInfo\r
   );\r
-  \r
+\r
 /**\r
   Get Bluetooth SDP information.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  SdpInfoSize     A pointer to the size, in bytes, of the SdpInfo buffer.\r
-  @param  SdpInfo         A pointer to a callee allocated buffer that returns Bluetooth SDP information.\r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[out] SdpInfoSize         A pointer to the size, in bytes, of the SdpInfo buffer.\r
+  @param[out] SdpInfo             A pointer to a callee allocated buffer that returns Bluetooth SDP information.\r
 \r
-  @retval EFI_SUCCESS           The Bluetooth device information is returned successfully.\r
-  @retval EFI_DEVICE_ERROR      A hardware error occurred trying to retrieve the Bluetooth SDP information.\r
+  @retval EFI_SUCCESS             The Bluetooth device information is returned successfully.\r
+  @retval EFI_DEVICE_ERROR        A hardware error occurred trying to retrieve the Bluetooth SDP information.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_GET_SDP_INFO)(\r
-  IN EFI_BLUETOOTH_IO_PROTOCOL  *This,\r
-  OUT UINTN                     *SdpInfoSize,\r
-  OUT VOID                      **SdpInfo\r
+  IN EFI_BLUETOOTH_IO_PROTOCOL    *This,\r
+  OUT UINTN                       *SdpInfoSize,\r
+  OUT VOID                        **SdpInfo\r
   );\r
-  \r
+\r
 /**\r
   Send L2CAP message (including L2CAP header).\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  BufferSize      On input, indicates the size, in bytes, of the data buffer specified by Buffer. \r
-                          On output, indicates the amount of data actually transferred.\r
-  @param  Buffer          A pointer to the buffer of data that will be transmitted to Bluetooth L2CAP layer.\r
-  @param  Timeout         Indicating the transfer should be completed within this time frame. The units are in \r
-                          milliseconds. If Timeout is 0, then the caller must wait for the function to be completed \r
-                          until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
+  @param[in]      This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in, out] BufferSize      On input, indicates the size, in bytes, of the data buffer specified by Buffer.\r
+                                  On output, indicates the amount of data actually transferred.\r
+  @param[in]      Buffer          A pointer to the buffer of data that will be transmitted to Bluetooth L2CAP layer.\r
+  @param[in]      Timeout         Indicating the transfer should be completed within this time frame. The units are in\r
+                                  milliseconds. If Timeout is 0, then the caller must wait for the function to be completed\r
+                                  until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
 \r
   @retval EFI_SUCCESS             The L2CAP message is sent successfully.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
@@ -127,25 +127,25 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR        Sending L2CAP message fail due to host controller or device error.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_RAW_SEND)(\r
-  IN EFI_BLUETOOTH_IO_PROTOCOL  *This,\r
-  IN OUT UINTN                  *BufferSize,\r
-  IN VOID                       *Buffer,\r
-  IN UINTN                      Timeout\r
+  IN EFI_BLUETOOTH_IO_PROTOCOL      *This,\r
+  IN OUT UINTN                      *BufferSize,\r
+  IN VOID                           *Buffer,\r
+  IN UINTN                          Timeout\r
   );\r
-  \r
+\r
 /**\r
   Receive L2CAP message (including L2CAP header).\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  BufferSize      On input, indicates the size, in bytes, of the data buffer specified by Buffer. \r
-                          On output, indicates the amount of data actually transferred.\r
-  @param  Buffer          A pointer to the buffer of data that will be received from Bluetooth L2CAP layer.\r
-  @param  Timeout         Indicating the transfer should be completed within this time frame. The units are in \r
-                          milliseconds. If Timeout is 0, then the caller must wait for the function to be completed \r
-                          until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in]  BufferSize          On input, indicates the size, in bytes, of the data buffer specified by Buffer.\r
+                                  On output, indicates the amount of data actually transferred.\r
+  @param[out] Buffer              A pointer to the buffer of data that will be received from Bluetooth L2CAP layer.\r
+  @param[in]  Timeout             Indicating the transfer should be completed within this time frame. The units are in\r
+                                  milliseconds. If Timeout is 0, then the caller must wait for the function to be completed\r
+                                  until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
 \r
   @retval EFI_SUCCESS             The L2CAP message is received successfully.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
@@ -156,7 +156,7 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR        Receiving L2CAP message fail due to host controller or device error.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_RAW_RECEIVE)(\r
   IN EFI_BLUETOOTH_IO_PROTOCOL  *This,\r
@@ -164,16 +164,16 @@ EFI_STATUS
   OUT VOID                      *Buffer,\r
   IN UINTN                      Timeout\r
   );\r
-  \r
+\r
 /**\r
   Callback function, it is called when asynchronous transfer is completed.\r
 \r
-  @param  ChannelID         Bluetooth L2CAP message channel ID.\r
-  @param  Data              Data received via asynchronous transfer.\r
-  @param  DataLength        The length of Data in bytes, received via asynchronous transfer.\r
-  @param  Context           Context passed from asynchronous transfer request.\r
+  @param[in]  ChannelID         Bluetooth L2CAP message channel ID.\r
+  @param[in]  Data              Data received via asynchronous transfer.\r
+  @param[in]  DataLength        The length of Data in bytes, received via asynchronous transfer.\r
+  @param[in]  Context           Context passed from asynchronous transfer request.\r
 \r
-  @retval EFI_SUCCESS       The callback function complete successfully.\r
+  @retval EFI_SUCCESS           The callback function complete successfully.\r
 \r
 **/\r
 typedef\r
@@ -184,25 +184,25 @@ EFI_STATUS
   IN UINTN                      DataLength,\r
   IN VOID                       *Context\r
   );\r
-  \r
+\r
 /**\r
   Receive L2CAP message (including L2CAP header) in non-blocking way.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  IsNewTransfer   If TRUE, a new transfer will be submitted. If FALSE, the request is deleted.\r
-  @param  PollingInterval Indicates the periodic rate, in milliseconds, that the transfer is to be executed.\r
-  @param  DataLength      Specifies the length, in bytes, of the data to be received.\r
-  @param  Callback        The callback function. This function is called if the asynchronous transfer is \r
-                          completed.\r
-  @param  Context         Data passed into Callback function. This is optional parameter and may be NULL. \r
-  \r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in]  IsNewTransfer       If TRUE, a new transfer will be submitted. If FALSE, the request is deleted.\r
+  @param[in]  PollingInterval     Indicates the periodic rate, in milliseconds, that the transfer is to be executed.\r
+  @param[in]  DataLength          Specifies the length, in bytes, of the data to be received.\r
+  @param[in]  Callback            The callback function. This function is called if the asynchronous transfer is\r
+                                  completed.\r
+  @param[in]  Context             Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
   @retval EFI_SUCCESS             The L2CAP asynchronous receive request is submitted successfully.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
                                   - DataLength is 0.\r
                                   - If IsNewTransfer is TRUE, and an asynchronous receive request already exists.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_RAW_ASYNC_RECEIVE)(\r
   IN EFI_BLUETOOTH_IO_PROTOCOL              *This,\r
@@ -216,14 +216,14 @@ EFI_STATUS
 /**\r
   Send L2CAP message (excluding L2CAP header) to a specific channel.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  Handle          A handle created by EFI_BLUETOOTH_IO_PROTOCOL.L2CapConnect indicates which channel to send.\r
-  @param  BufferSize      On input, indicates the size, in bytes, of the data buffer specified by Buffer. \r
-                          On output, indicates the amount of data actually transferred.\r
-  @param  Buffer          A pointer to the buffer of data that will be transmitted to Bluetooth L2CAP layer.\r
-  @param  Timeout         Indicating the transfer should be completed within this time frame. The units are in \r
-                          milliseconds. If Timeout is 0, then the caller must wait for the function to be completed \r
-                          until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
+  @param[in]      This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in]      Handle          A handle created by EFI_BLUETOOTH_IO_PROTOCOL.L2CapConnect indicates which channel to send.\r
+  @param[in, out] BufferSize      On input, indicates the size, in bytes, of the data buffer specified by Buffer.\r
+                                  On output, indicates the amount of data actually transferred.\r
+  @param[in]      Buffer          A pointer to the buffer of data that will be transmitted to Bluetooth L2CAP layer.\r
+  @param[in]      Timeout         Indicating the transfer should be completed within this time frame. The units are in\r
+                                  milliseconds. If Timeout is 0, then the caller must wait for the function to be completed\r
+                                  until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
 \r
   @retval EFI_SUCCESS             The L2CAP message is sent successfully.\r
   @retval EFI_NOT_FOUND           Handle is invalid or not found.\r
@@ -235,26 +235,26 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR        Sending L2CAP message fail due to host controller or device error.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_SEND)(\r
-  IN EFI_BLUETOOTH_IO_PROTOCOL  *This,\r
-  IN EFI_HANDLE                 Handle,\r
-  IN OUT UINTN                  *BufferSize,\r
-  IN VOID                       *Buffer,\r
-  IN UINTN                      Timeout\r
+  IN EFI_BLUETOOTH_IO_PROTOCOL      *This,\r
+  IN EFI_HANDLE                     Handle,\r
+  IN OUT UINTN                      *BufferSize,\r
+  IN VOID                           *Buffer,\r
+  IN UINTN                          Timeout\r
   );\r
-  \r
+\r
 /**\r
   Receive L2CAP message (excluding L2CAP header) from a specific channel.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  Handle          A handle created by EFI_BLUETOOTH_IO_PROTOCOL.L2CapConnect indicates which channel to receive.\r
-  @param  BufferSize      Indicates the size, in bytes, of the data buffer specified by Buffer.\r
-  @param  Buffer          A pointer to the buffer of data that will be received from Bluetooth L2CAP layer.\r
-  @param  Timeout         Indicating the transfer should be completed within this time frame. The units are in \r
-                          milliseconds. If Timeout is 0, then the caller must wait for the function to be completed \r
-                          until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in]  Handle              A handle created by EFI_BLUETOOTH_IO_PROTOCOL.L2CapConnect indicates which channel to receive.\r
+  @param[out] BufferSize          Indicates the size, in bytes, of the data buffer specified by Buffer.\r
+  @param[out] Buffer              A pointer to the buffer of data that will be received from Bluetooth L2CAP layer.\r
+  @param[in]  Timeout             Indicating the transfer should be completed within this time frame. The units are in\r
+                                  milliseconds. If Timeout is 0, then the caller must wait for the function to be completed\r
+                                  until EFI_SUCCESS or EFI_DEVICE_ERROR is returned.\r
 \r
   @retval EFI_SUCCESS             The L2CAP message is received successfully.\r
   @retval EFI_NOT_FOUND           Handle is invalid or not found.\r
@@ -266,22 +266,22 @@ EFI_STATUS
   @retval EFI_DEVICE_ERROR        Receiving L2CAP message fail due to host controller or device error.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_RECEIVE)(\r
-  IN EFI_BLUETOOTH_IO_PROTOCOL  *This,\r
-  IN EFI_HANDLE                 Handle,\r
-  OUT UINTN                     *BufferSize,\r
-  OUT VOID                      **Buffer,\r
-  IN UINTN                      Timeout\r
+  IN EFI_BLUETOOTH_IO_PROTOCOL    *This,\r
+  IN EFI_HANDLE                   Handle,\r
+  OUT UINTN                       *BufferSize,\r
+  OUT VOID                        **Buffer,\r
+  IN UINTN                        Timeout\r
   );\r
-  \r
+\r
 /**\r
   Callback function, it is called when asynchronous transfer is completed.\r
 \r
-  @param  Data              Data received via asynchronous transfer.\r
-  @param  DataLength        The length of Data in bytes, received via asynchronous transfer.\r
-  @param  Context           Context passed from asynchronous transfer request.\r
+  @param[in]  Data                Data received via asynchronous transfer.\r
+  @param[in]  DataLength          The length of Data in bytes, received via asynchronous transfer.\r
+  @param[in]  Context             Context passed from asynchronous transfer request.\r
 \r
   @retval EFI_SUCCESS       The callback function complete successfully.\r
 \r
@@ -289,20 +289,21 @@ EFI_STATUS
 typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_CHANNEL_SERVICE_CALLBACK) (\r
-  IN VOID                       *Data,\r
-  IN UINTN                      DataLength,\r
-  IN VOID                       *Context\r
+  IN VOID                         *Data,\r
+  IN UINTN                        DataLength,\r
+  IN VOID                         *Context\r
   );\r
-  \r
+\r
 /**\r
   Receive L2CAP message (excluding L2CAP header) in non-blocking way from a specific channel.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  Handel          A handle created by EFI_BLUETOOTH_IO_PROTOCOL.L2CapConnect indicates which channel to receive.\r
-  @param  Callback        The callback function. This function is called if the asynchronous transfer is \r
-                          completed.\r
-  @param  Context         Data passed into Callback function. This is optional parameter and may be NULL. \r
-  \r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in]  Handel              A handle created by EFI_BLUETOOTH_IO_PROTOCOL.L2CapConnect indicates which channel\r
+                                  to receive.\r
+  @param[in]  Callback            The callback function. This function is called if the asynchronous transfer is\r
+                                  completed.\r
+  @param[in]  Context             Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
   @retval EFI_SUCCESS             The L2CAP asynchronous receive request is submitted successfully.\r
   @retval EFI_NOT_FOUND           Handle is invalid or not found.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
@@ -310,33 +311,33 @@ EFI_STATUS
                                   - If an asynchronous receive request already exists on same Handle.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_ASYNC_RECEIVE)(\r
-  IN EFI_BLUETOOTH_IO_PROTOCOL                    *This,\r
-  IN EFI_HANDLE                                   Handle,\r
-  IN EFI_BLUETOOTH_IO_CHANNEL_SERVICE_CALLBACK    Callback,\r
-  IN VOID                                         *Context\r
+  IN  EFI_BLUETOOTH_IO_PROTOCOL                   *This,\r
+  IN  EFI_HANDLE                                  Handle,\r
+  IN  EFI_BLUETOOTH_IO_CHANNEL_SERVICE_CALLBACK   Callback,\r
+  IN  VOID*                                       Context\r
   );\r
-  \r
+\r
 /**\r
   Do L2CAP connection.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  Handel          A handle to indicate this L2CAP connection.\r
-  @param  Psm             Bluetooth PSM. See Bluetooth specification for detail.\r
-  @param  Mtu             Bluetooth MTU. See Bluetooth specification for detail.\r
-  @param  Callback        The callback function. This function is called whenever there is message received \r
-                          in this channel.\r
-  @param  Context         Data passed into Callback function. This is optional parameter and may be NULL.\r
-  \r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[out] Handel              A handle to indicate this L2CAP connection.\r
+  @param[in]  Psm                 Bluetooth PSM. See Bluetooth specification for detail.\r
+  @param[in]  Mtu                 Bluetooth MTU. See Bluetooth specification for detail.\r
+  @param[in]  Callback            The callback function. This function is called whenever there is message received\r
+                                  in this channel.\r
+  @param[in]  Context             Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
   @retval EFI_SUCCESS             The Bluetooth L2CAP layer connection is created successfully.\r
   @retval EFI_INVALID_PARAMETER   One or more of the following conditions is TRUE:\r
                                   - Handle is NULL.\r
   @retval EFI_DEVICE_ERROR        A hardware error occurred trying to do Bluetooth L2CAP connection.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_CONNECT)(\r
   IN EFI_BLUETOOTH_IO_PROTOCOL                    *This,\r
@@ -346,42 +347,42 @@ EFI_STATUS
   IN EFI_BLUETOOTH_IO_CHANNEL_SERVICE_CALLBACK    Callback,\r
   IN VOID                                         *Context\r
   );\r
-  \r
+\r
 /**\r
   Do L2CAP disconnection.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  Handel          A handle to indicate this L2CAP connection.\r
-  \r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[in]  Handel              A handle to indicate this L2CAP connection.\r
+\r
   @retval EFI_SUCCESS             The Bluetooth L2CAP layer is disconnected successfully.\r
   @retval EFI_NOT_FOUND           Handle is invalid or not found.\r
   @retval EFI_DEVICE_ERROR        A hardware error occurred trying to do Bluetooth L2CAP disconnection.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_DISCONNECT)(\r
   IN EFI_BLUETOOTH_IO_PROTOCOL                    *This,\r
   IN EFI_HANDLE                                   Handle\r
   );\r
-  \r
+\r
 /**\r
   Register L2CAP callback function for special channel.\r
 \r
-  @param  This            Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
-  @param  Handel          A handle to indicate this L2CAP connection.\r
-  @param  Psm             Bluetooth PSM. See Bluetooth specification for detail.\r
-  @param  Mtu             Bluetooth MTU. See Bluetooth specification for detail.\r
-  @param  Callback        The callback function. This function is called whenever there is message received \r
-                          in this channel. NULL means unregister.\r
-  @param  Context         Data passed into Callback function. This is optional parameter and may be NULL.\r
-  \r
+  @param[in]  This                Pointer to the EFI_BLUETOOTH_IO_PROTOCOL instance.\r
+  @param[out] Handel              A handle to indicate this L2CAP connection.\r
+  @param[in]  Psm                 Bluetooth PSM. See Bluetooth specification for detail.\r
+  @param[in]  Mtu                 Bluetooth MTU. See Bluetooth specification for detail.\r
+  @param[in]  Callback            The callback function. This function is called whenever there is message received\r
+                                  in this channel. NULL means unregister.\r
+  @param[in]  Context             Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
   @retval EFI_SUCCESS             The Bluetooth L2CAP callback function is registered successfully.\r
   @retval EFI_ALREADY_STARTED     The callback function already exists when register.\r
   @retval EFI_NOT_FOUND           The callback function does not exist when unregister.\r
 \r
 **/\r
-typedef \r
+typedef\r
 EFI_STATUS\r
 (EFIAPI *EFI_BLUETOOTH_IO_L2CAP_REGISTER_SERVICE)(\r
   IN EFI_BLUETOOTH_IO_PROTOCOL                    *This,\r
@@ -391,9 +392,9 @@ EFI_STATUS
   IN EFI_BLUETOOTH_IO_CHANNEL_SERVICE_CALLBACK    Callback,\r
   IN VOID                                         *Context\r
   );\r
-  \r
+\r
 ///\r
-/// This protocol provides service for Bluetooth L2CAP (Logical Link Control and Adaptation Protocol) \r
+/// This protocol provides service for Bluetooth L2CAP (Logical Link Control and Adaptation Protocol)\r
 /// and SDP (Service Discovery Protocol).\r
 ///\r
 struct _EFI_BLUETOOTH_IO_PROTOCOL {\r