+/** @file\r
+ EFI Bluetooth Configuration Protocol as defined in UEFI 2.5.\r
+ This protocol abstracts user interface configuration for Bluetooth device.\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
+ 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
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+ @par Revision Reference: \r
+ This Protocol is introduced in UEFI Specification 2.5\r
+\r
+**/\r
+\r
+#ifndef __EFI_BLUETOOTH_CONFIG_PROTOCOL_H__\r
+#define __EFI_BLUETOOTH_CONFIG_PROTOCOL_H__\r
+\r
+#include <IndustryStandard/Bluetooth.h>\r
+\r
+#define EFI_BLUETOOTH_CONFIG_PROTOCOL_GUID \\r
+ { \\r
+ 0x62960cf3, 0x40ff, 0x4263, { 0xa7, 0x7c, 0xdf, 0xde, 0xbd, 0x19, 0x1b, 0x4b } \\r
+ }\r
+ \r
+typedef struct _EFI_BLUETOOTH_CONFIG_PROTOCOL EFI_BLUETOOTH_CONFIG_PROTOCOL;\r
+\r
+typedef UINT32 EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_TYPE;\r
+#define EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_CONNECTED 0x1\r
+#define EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_PAIRED 0x2\r
+\r
+///\r
+/// EFI_BLUETOOTH_SCAN_CALLBACK_INFORMATION\r
+///\r
+typedef struct {\r
+ ///\r
+ /// 48bit Bluetooth device address.\r
+ ///\r
+ BLUETOOTH_ADDRESS BDAddr;\r
+ ///\r
+ /// State of the remote deive \r
+ ///\r
+ UINT8 RemoteDeviceState;\r
+ ///\r
+ /// Bluetooth ClassOfDevice. See Bluetooth specification for detail.\r
+ ///\r
+ BLUETOOTH_CLASS_OF_DEVICE ClassOfDevice;\r
+ ///\r
+ /// Remote device name\r
+ ///\r
+ UINT8 RemoteDeviceName[BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE];\r
+} EFI_BLUETOOTH_SCAN_CALLBACK_INFORMATION;\r
+\r
+///\r
+/// EFI_BLUETOOTH_CONFIG_DATA_TYPE\r
+///\r
+typedef enum {\r
+ ///\r
+ /// Local/Remote Bluetooth device name. Data structure is zero terminated CHAR8[].\r
+ ///\r
+ EfiBluetoothConfigDataTypeDeviceName,\r
+ ///\r
+ /// Local/Remote Bluetooth device ClassOfDevice. Data structure is BLUETOOTH_CLASS_OF_DEVICE.\r
+ ///\r
+ EfiBluetoothConfigDataTypeClassOfDevice,\r
+ ///\r
+ /// Remote Bluetooth device state. Data structure is EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_TYPE.\r
+ ///\r
+ EfiBluetoothConfigDataTypeRemoteDeviceState,\r
+ ///\r
+ /// Local/Remote Bluetooth device SDP information. Data structure is UINT8[].\r
+ ///\r
+ EfiBluetoothConfigDataTypeSdpInfo,\r
+ ///\r
+ /// Local Bluetooth device address. Data structure is BLUETOOTH_ADDRESS.\r
+ ///\r
+ EfiBluetoothConfigDataTypeBDADDR,\r
+ ///\r
+ /// Local Bluetooth discoverable state. Data structure is UINT8. (Page scan and/or Inquiry scan)\r
+ ///\r
+ EfiBluetoothConfigDataTypeDiscoverable,\r
+ ///\r
+ /// Local Bluetooth controller stored paired device list. Data structure is BLUETOOTH_ADDRESS[].\r
+ ///\r
+ EfiBluetoothConfigDataTypeControllerStoredPairedDeviceList,\r
+ ///\r
+ /// Local available device list. Data structure is BLUETOOTH_ADDRESS[].\r
+ ///\r
+ EfiBluetoothConfigDataTypeAvailableDeviceList,\r
+ EfiBluetoothConfigDataTypeMax,\r
+} EFI_BLUETOOTH_CONFIG_DATA_TYPE;\r
+\r
+///\r
+/// EFI_BLUETOOTH_PIN_CALLBACK_TYPE.\r
+///\r
+typedef enum {\r
+ ///\r
+ /// For SSP - passkey entry. Input buffer is Passkey (4 bytes). No output buffer. \r
+ /// See Bluetooth HCI command for detail.\r
+ ///\r
+ EfiBluetoothCallbackTypeUserPasskeyNotification,\r
+ ///\r
+ /// For SSP - just work and numeric comparison. Input buffer is numeric value (4 bytes). \r
+ /// Output buffer is BOOLEAN (1 byte). See Bluetooth HCI command for detail.\r
+ ///\r
+ EfiBluetoothCallbackTypeUserConfirmationRequest,\r
+ ///\r
+ /// For SSP - OOB. See Bluetooth HCI command for detail.\r
+ ///\r
+ EfiBluetoothCallbackTypeOOBDataRequest,\r
+ ///\r
+ /// For legacy paring. No input buffer. Output buffer is PIN code( <= 16 bytes). \r
+ /// See Bluetooth HCI command for detail.\r
+ ///\r
+ EfiBluetoothCallbackTypePinCodeRequest,\r
+ EfiBluetoothCallbackTypeMax\r
+} EFI_BLUETOOTH_PIN_CALLBACK_TYPE;\r
+\r
+///\r
+/// EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE.\r
+///\r
+typedef enum {\r
+ ///\r
+ /// This callback is called when Bluetooth receive Disconnection_Complete event. Input buffer is Event \r
+ /// Parameters of Disconnection_Complete Event defined in Bluetooth specification.\r
+ ///\r
+ EfiBluetoothConnCallbackTypeDisconnected,\r
+ ///\r
+ /// This callback is called when Bluetooth receive Connection_Complete event. Input buffer is Event \r
+ /// Parameters of Connection_Complete Event defined in Bluetooth specification.\r
+ ///\r
+ EfiBluetoothConnCallbackTypeConnected,\r
+ ///\r
+ /// This callback is called when Bluetooth receive Authentication_Complete event. Input buffer is Event \r
+ /// Parameters of Authentication_Complete Event defined in Bluetooth specification.\r
+ ///\r
+ EfiBluetoothConnCallbackTypeAuthenticated,\r
+ ///\r
+ /// This callback is called when Bluetooth receive Encryption_Change event. Input buffer is Event \r
+ /// Parameters of Encryption_Change Event defined in Bluetooth specification.\r
+ ///\r
+ EfiBluetoothConnCallbackTypeEncrypted\r
+} EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE;\r
+\r
+ \r
+/**\r
+ Initialize Bluetooth host controller and local device.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+\r
+ @retval EFI_SUCCESS The Bluetooth host controller and local device is initialized successfully.\r
+ @retval EFI_DEVICE_ERROR A hardware error occurred trying to initialize the Bluetooth host controller \r
+ and local device.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_INIT)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This\r
+ );\r
+ \r
+/**\r
+ Callback function, it is called if a Bluetooth device is found during scan process.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Context Context passed from scan request.\r
+ @param CallbackInfo Data related to scan result. NULL CallbackInfo means scan complete.\r
+\r
+ @retval EFI_SUCCESS The callback function complete successfully.\r
+\r
+**/\r
+typedef\r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_SCAN_CALLBACK_FUNCTION) (\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN VOID *Context,\r
+ IN EFI_BLUETOOTH_SCAN_CALLBACK_INFORMATION *CallbackInfo\r
+ );\r
+ \r
+/**\r
+ Scan Bluetooth device.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param ReScan If TRUE, a new scan request is submitted no matter there is scan result before. \r
+ If FALSE and there is scan result, the previous scan result is returned and no scan request \r
+ is submitted.\r
+ @param ScanType Bluetooth scan type, Inquiry and/or Page. See Bluetooth specification for detail.\r
+ @param Callback The callback function. This function is called if a Bluetooth device is found during scan \r
+ process.\r
+ @param Context Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
+ @retval EFI_SUCCESS The Bluetooth scan request is submitted.\r
+ @retval EFI_DEVICE_ERROR A hardware error occurred trying to scan the Bluetooth device.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_SCAN)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN BOOLEAN ReScan,\r
+ IN UINT8 ScanType,\r
+ IN EFI_BLUETOOTH_CONFIG_SCAN_CALLBACK_FUNCTION Callback,\r
+ IN VOID *Context\r
+ );\r
+ \r
+/**\r
+ Connect a Bluetooth device.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param BD_ADDR The address of Bluetooth device to be connected.\r
+\r
+ @retval EFI_SUCCESS The Bluetooth device is connected successfully.\r
+ @retval EFI_ALREADY_STARTED The Bluetooth device is already connected.\r
+ @retval EFI_NOT_FOUND The Bluetooth device is not found.\r
+ @retval EFI_DEVICE_ERROR A hardware error occurred trying to connect the Bluetooth device.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_CONNECT)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN BLUETOOTH_ADDRESS *BD_ADDR\r
+ );\r
+\r
+/**\r
+ Disconnect a Bluetooth device.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param BD_ADDR The address of Bluetooth device to be connected.\r
+ @param Reason Bluetooth disconnect reason. See Bluetooth specification for detail.\r
+\r
+ @retval EFI_SUCCESS The Bluetooth device is disconnected successfully.\r
+ @retval EFI_NOT_STARTED The Bluetooth device is not connected.\r
+ @retval EFI_NOT_FOUND The Bluetooth device is not found.\r
+ @retval EFI_DEVICE_ERROR A hardware error occurred trying to disconnect the Bluetooth device.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_DISCONNECT)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN BLUETOOTH_ADDRESS *BD_ADDR,\r
+ IN UINT8 Reason\r
+ );\r
+ \r
+/**\r
+ Get Bluetooth configuration data.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param DataType Configuration data type.\r
+ @param DataSize On input, indicates the size, in bytes, of the data buffer specified by Data.\r
+ On output, indicates the amount of data actually returned.\r
+ @param Data A pointer to the buffer of data that will be returned.\r
+\r
+ @retval EFI_SUCCESS The Bluetooth configuration data is returned successfully.\r
+ @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
+ - DataSize is NULL.\r
+ - *DataSize is 0.\r
+ - Data is NULL.\r
+ @retval EFI_UNSUPPORTED The DataType is unsupported.\r
+ @retval EFI_NOT_FOUND The DataType is not found.\r
+ @retval EFI_BUFFER_TOO_SMALL The buffer is too small to hold the buffer.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_GET_DATA)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType,\r
+ IN OUT UINTN *DataSize,\r
+ IN OUT VOID *Data\r
+ );\r
+ \r
+/**\r
+ Set Bluetooth configuration data.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param DataType Configuration data type.\r
+ @param DataSize Indicates the size, in bytes, of the data buffer specified by Data.\r
+ @param Data A pointer to the buffer of data that will be set.\r
+\r
+ @retval EFI_SUCCESS The Bluetooth configuration data is set successfully.\r
+ @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
+ - DataSize is 0.\r
+ - Data is NULL.\r
+ @retval EFI_UNSUPPORTED The DataType is unsupported.\r
+ @retval EFI_BUFFER_TOO_SMALL Cannot set configuration data.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_SET_DATA)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType,\r
+ IN UINTN DataSize,\r
+ IN VOID *Data\r
+ );\r
+ \r
+/**\r
+ Get remove Bluetooth device configuration data.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param DataType Configuration data type.\r
+ @param BDAddr Remote Bluetooth device address.\r
+ @param DataSize On input, indicates the size, in bytes, of the data buffer specified by Data.\r
+ On output, indicates the amount of data actually returned.\r
+ @param Data A pointer to the buffer of data that will be returned.\r
+\r
+ @retval EFI_SUCCESS The remote Bluetooth device configuration data is returned successfully.\r
+ @retval EFI_INVALID_PARAMETER One or more of the following conditions is TRUE:\r
+ - DataSize is NULL.\r
+ - *DataSize is 0.\r
+ - Data is NULL.\r
+ @retval EFI_UNSUPPORTED The DataType is unsupported.\r
+ @retval EFI_NOT_FOUND The DataType is not found.\r
+ @retval EFI_BUFFER_TOO_SMALL The buffer is too small to hold the buffer.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_GET_REMOTE_DATA)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType,\r
+ IN BLUETOOTH_ADDRESS BDAddr,\r
+ IN OUT UINTN *DataSize,\r
+ IN OUT VOID *Data\r
+ );\r
+ \r
+/**\r
+ The callback function for PIN code.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Context Context passed from registration.\r
+ @param CallbackType Callback type in EFI_BLUETOOTH_PIN_CALLBACK_TYPE.\r
+ @param InputBuffer A pointer to the buffer of data that is input from callback caller.\r
+ @param InputBufferSize Indicates the size, in bytes, of the data buffer specified by InputBuffer.\r
+ @param OutputBuffer A pointer to the buffer of data that will be output from callback callee. \r
+ Callee allocates this buffer by using EFI Boot Service AllocatePool().\r
+ @param OutputBufferSize Indicates the size, in bytes, of the data buffer specified by OutputBuffer.\r
+\r
+ @retval EFI_SUCCESS The callback function complete successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK_FUNCTION)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN VOID *Context,\r
+ IN EFI_BLUETOOTH_PIN_CALLBACK_TYPE CallbackType,\r
+ IN VOID *InputBuffer,\r
+ IN UINTN InputBufferSize,\r
+ OUT VOID **OutputBuffer,\r
+ OUT UINTN *OutputBufferSize\r
+ );\r
+ \r
+/**\r
+ Register PIN callback function.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Callback The callback function. NULL means unregister.\r
+ @param Context Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
+ @retval EFI_SUCCESS The PIN callback function is registered successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK_FUNCTION Callback,\r
+ IN VOID *Context\r
+ );\r
+\r
+/**\r
+ The callback function to get link key.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Context Context passed from registration.\r
+ @param BDAddr A pointer to Bluetooth device address.\r
+ @param LinkKey A pointer to the buffer of link key.\r
+\r
+ @retval EFI_SUCCESS The callback function complete successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK_FUNCTION)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN VOID *Context,\r
+ IN BLUETOOTH_ADDRESS *BDAddr,\r
+ OUT UINT8 LinkKey[BLUETOOTH_HCI_LINK_KEY_SIZE]\r
+ );\r
+ \r
+/**\r
+ Register get link key callback function.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Callback The callback function. NULL means unregister.\r
+ @param Context Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
+ @retval EFI_SUCCESS The link key callback function is registered successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK_FUNCTION Callback,\r
+ IN VOID *Context\r
+ );\r
+ \r
+/**\r
+ The callback function to set link key.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Context Context passed from registration.\r
+ @param BDAddr A pointer to Bluetooth device address.\r
+ @param LinkKey A pointer to the buffer of link key.\r
+\r
+ @retval EFI_SUCCESS The callback function complete successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK_FUNCTION)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN VOID *Context,\r
+ IN BLUETOOTH_ADDRESS *BDAddr,\r
+ IN UINT8 LinkKey[BLUETOOTH_HCI_LINK_KEY_SIZE]\r
+ );\r
+ \r
+/**\r
+ Register set link key callback function.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Callback The callback function. NULL means unregister.\r
+ @param Context Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
+ @retval EFI_SUCCESS The link key callback function is registered successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK_FUNCTION Callback,\r
+ IN VOID *Context\r
+ );\r
+ \r
+/**\r
+ The callback function. It is called after connect completed.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Context Context passed from registration.\r
+ @param CallbackType Callback type in EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE.\r
+ @param BDAddr A pointer to Bluetooth device address.\r
+ @param InputBuffer A pointer to the buffer of data that is input from callback caller.\r
+ @param InputBufferSize Indicates the size, in bytes, of the data buffer specified by InputBuffer.\r
+\r
+ @retval EFI_SUCCESS The callback function complete successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK_FUNCTION)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN VOID *Context,\r
+ IN EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE CallbackType,\r
+ IN BLUETOOTH_ADDRESS *BDAddr,\r
+ IN VOID *InputBuffer,\r
+ IN UINTN InputBufferSize\r
+ );\r
+ \r
+/**\r
+ Register link connect complete callback function.\r
+\r
+ @param This Pointer to the EFI_BLUETOOTH_CONFIG_PROTOCOL instance.\r
+ @param Callback The callback function. NULL means unregister.\r
+ @param Context Data passed into Callback function. This is optional parameter and may be NULL.\r
+\r
+ @retval EFI_SUCCESS The link connect complete callback function is registered successfully.\r
+\r
+**/\r
+typedef \r
+EFI_STATUS\r
+(EFIAPI *EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK)(\r
+ IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This,\r
+ IN EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK_FUNCTION Callback,\r
+ IN VOID *Context\r
+ );\r
+ \r
+///\r
+/// This protocol abstracts user interface configuration for Bluetooth device.\r
+///\r
+struct _EFI_BLUETOOTH_CONFIG_PROTOCOL {\r
+ EFI_BLUETOOTH_CONFIG_INIT Init;\r
+ EFI_BLUETOOTH_CONFIG_SCAN Scan;\r
+ EFI_BLUETOOTH_CONFIG_CONNECT Connect;\r
+ EFI_BLUETOOTH_CONFIG_DISCONNECT Disconnect;\r
+ EFI_BLUETOOTH_CONFIG_GET_DATA GetData;\r
+ EFI_BLUETOOTH_CONFIG_SET_DATA SetData;\r
+ EFI_BLUETOOTH_CONFIG_GET_REMOTE_DATA GetRemoteData;\r
+ EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK RegisterPinCallback;\r
+ EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK RegisterGetLinkKeyCallback;\r
+ EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK RegisterSetLinkKeyCallback;\r
+ EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK RegisterLinkConnectCompleteCallback;\r
+};\r
+\r
+extern EFI_GUID gEfiBluetoothConfigProtocolGuid;\r
+\r
+#endif\r