Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <[email protected]>
Cc: Jiewen Yao <[email protected]>
---
 MdePkg/Include/Protocol/BluetoothIo.h | 287 +++++++++++++++++-----------------
 1 file changed, 144 insertions(+), 143 deletions(-)

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

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to