/// structure as defined here. Future version of this specification may extend this data structure in a\r
/// backward compatible way and increase the value of Version.\r
///\r
- UINT32 Version;\r
+ UINT32 Version;\r
///\r
/// Passive scanning or active scanning. See Bluetooth specification.\r
///\r
- UINT8 ScanType;\r
+ UINT8 ScanType;\r
///\r
/// Recommended scan interval to be used while performing scan.\r
///\r
- UINT16 ScanInterval;\r
+ UINT16 ScanInterval;\r
///\r
/// Recommended scan window to be used while performing a scan.\r
///\r
- UINT16 ScanWindow;\r
+ UINT16 ScanWindow;\r
///\r
/// Recommended scanning filter policy to be used while performing a scan.\r
///\r
- UINT8 ScanningFilterPolicy;\r
+ UINT8 ScanningFilterPolicy;\r
///\r
/// This is one byte flag to serve as a filter to remove unneeded scan\r
/// result. For example, set BIT0 means scan in LE Limited Discoverable\r
/// Mode. Set BIT1 means scan in LE General Discoverable Mode.\r
///\r
- UINT8 AdvertisementFlagFilter;\r
+ UINT8 AdvertisementFlagFilter;\r
} EFI_BLUETOOTH_LE_CONFIG_SCAN_PARAMETER;\r
\r
-typedef struct{\r
- BLUETOOTH_LE_ADDRESS BDAddr;\r
- BLUETOOTH_LE_ADDRESS DirectAddress;\r
- UINT8 RemoteDeviceState;\r
- INT8 RSSI;\r
- UINTN AdvertisementDataSize;\r
- VOID *AdvertisementData;\r
+typedef struct {\r
+ BLUETOOTH_LE_ADDRESS BDAddr;\r
+ BLUETOOTH_LE_ADDRESS DirectAddress;\r
+ UINT8 RemoteDeviceState;\r
+ INT8 RSSI;\r
+ UINTN AdvertisementDataSize;\r
+ VOID *AdvertisementData;\r
} EFI_BLUETOOTH_LE_SCAN_CALLBACK_INFORMATION;\r
\r
/**\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SCAN_CALLBACK_FUNCTION) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SCAN_CALLBACK_FUNCTION)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN VOID *Context,\r
IN EFI_BLUETOOTH_LE_SCAN_CALLBACK_INFORMATION *CallbackInfo\r
/// extend this data structure in a backward compatible way and\r
/// increase the value of Version.\r
///\r
- UINT32 Version;\r
+ UINT32 Version;\r
///\r
/// Recommended scan interval to be used while performing scan before connect.\r
///\r
- UINT16 ScanInterval;\r
+ UINT16 ScanInterval;\r
///\r
/// Recommended scan window to be used while performing a connection\r
///\r
- UINT16 ScanWindow;\r
+ UINT16 ScanWindow;\r
///\r
/// Minimum allowed connection interval. Shall be less than or equal to ConnIntervalMax.\r
///\r
- UINT16 ConnIntervalMin;\r
+ UINT16 ConnIntervalMin;\r
///\r
/// Maximum allowed connection interval. Shall be greater than or equal to ConnIntervalMin.\r
///\r
- UINT16 ConnIntervalMax;\r
+ UINT16 ConnIntervalMax;\r
///\r
/// Slave latency for the connection in number of connection events.\r
///\r
- UINT16 ConnLatency;\r
+ UINT16 ConnLatency;\r
///\r
/// Link supervision timeout for the connection.\r
///\r
- UINT16 SupervisionTimeout;\r
+ UINT16 SupervisionTimeout;\r
} EFI_BLUETOOTH_LE_CONFIG_CONNECT_PARAMETER;\r
\r
/**\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_DATA)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType,\r
IN OUT UINTN *DataSize,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SET_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SET_DATA)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType,\r
IN UINTN DataSize,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType,\r
IN BLUETOOTH_LE_ADDRESS *BDAddr,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_SMP_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_SMP_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN VOID *Context,\r
IN BLUETOOTH_LE_ADDRESS *BDAddr,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_LE_SMP_CALLBACK Callback,\r
IN VOID *Context\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN BLUETOOTH_LE_ADDRESS *BDAddr,\r
IN EFI_BLUETOOTH_LE_SMP_EVENT_DATA_TYPE EventDataType,\r
\r
typedef enum {\r
// For local device only\r
- EfiBluetoothSmpLocalIR, /* If Key hierarchy is supported */\r
- EfiBluetoothSmpLocalER, /* If Key hierarchy is supported */\r
+ EfiBluetoothSmpLocalIR, /* If Key hierarchy is supported */\r
+ EfiBluetoothSmpLocalER, /* If Key hierarchy is supported */\r
EfiBluetoothSmpLocalDHK, /* If Key hierarchy is supported. OPTIONAL */\r
// For peer specific\r
EfiBluetoothSmpKeysDistributed = 0x1000,\r
EfiBluetoothSmpPeerRand,\r
EfiBluetoothSmpPeerEDIV,\r
EfiBluetoothSmpPeerSignCounter,\r
- EfiBluetoothSmpLocalLTK, /* If Key hierarchy not supported */\r
- EfiBluetoothSmpLocalIRK, /* If Key hierarchy not supported */\r
+ EfiBluetoothSmpLocalLTK, /* If Key hierarchy not supported */\r
+ EfiBluetoothSmpLocalIRK, /* If Key hierarchy not supported */\r
EfiBluetoothSmpLocalCSRK, /* If Key hierarchy not supported */\r
EfiBluetoothSmpLocalSignCounter,\r
EfiBluetoothSmpLocalDIV,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_SMP_GET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SMP_GET_DATA_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN VOID *Context,\r
IN BLUETOOTH_LE_ADDRESS *BDAddr,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_LE_CONFIG_SMP_GET_DATA_CALLBACK Callback,\r
IN VOID *Context\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_SMP_SET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_SMP_SET_DATA_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN VOID *Context,\r
IN BLUETOOTH_LE_ADDRESS *BDAddr,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI * EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_LE_CONFIG_SMP_SET_DATA_CALLBACK Callback,\r
IN VOID *Context\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_CONNECT_COMPLETE_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_CONNECT_COMPLETE_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN VOID *Context,\r
IN EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE CallbackType,\r
**/\r
typedef\r
EFI_STATUS\r
-(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK) (\r
+(EFIAPI *EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK)(\r
IN EFI_BLUETOOTH_LE_CONFIG_PROTOCOL *This,\r
IN EFI_BLUETOOTH_LE_CONFIG_CONNECT_COMPLETE_CALLBACK Callback,\r
IN VOID *Context\r
/// This protocol abstracts user interface configuration for BluetoothLe device.\r
///\r
struct _EFI_BLUETOOTH_LE_CONFIG_PROTOCOL {\r
- EFI_BLUETOOTH_LE_CONFIG_INIT Init;\r
- EFI_BLUETOOTH_LE_CONFIG_SCAN Scan;\r
- EFI_BLUETOOTH_LE_CONFIG_CONNECT Connect;\r
- EFI_BLUETOOTH_LE_CONFIG_DISCONNECT Disconnect;\r
- EFI_BLUETOOTH_LE_CONFIG_GET_DATA GetData;\r
- EFI_BLUETOOTH_LE_CONFIG_SET_DATA SetData;\r
- EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA GetRemoteData;\r
- EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK RegisterSmpAuthCallback;\r
- EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA SendSmpAuthData;\r
- EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK RegisterSmpGetDataCallback;\r
- EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK RegisterSmpSetDataCallback;\r
- EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK RegisterLinkConnectCompleteCallback;\r
+ EFI_BLUETOOTH_LE_CONFIG_INIT Init;\r
+ EFI_BLUETOOTH_LE_CONFIG_SCAN Scan;\r
+ EFI_BLUETOOTH_LE_CONFIG_CONNECT Connect;\r
+ EFI_BLUETOOTH_LE_CONFIG_DISCONNECT Disconnect;\r
+ EFI_BLUETOOTH_LE_CONFIG_GET_DATA GetData;\r
+ EFI_BLUETOOTH_LE_CONFIG_SET_DATA SetData;\r
+ EFI_BLUETOOTH_LE_CONFIG_GET_REMOTE_DATA GetRemoteData;\r
+ EFI_BLUETOOTH_LE_REGISTER_SMP_AUTH_CALLBACK RegisterSmpAuthCallback;\r
+ EFI_BLUETOOTH_LE_SEND_SMP_AUTH_DATA SendSmpAuthData;\r
+ EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_GET_DATA_CALLBACK RegisterSmpGetDataCallback;\r
+ EFI_BLUETOOTH_LE_CONFIG_REGISTER_SMP_SET_DATA_CALLBACK RegisterSmpSetDataCallback;\r
+ EFI_BLUETOOTH_LE_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK RegisterLinkConnectCompleteCallback;\r
};\r
\r
-extern EFI_GUID gEfiBluetoothLeConfigProtocolGuid;\r
+extern EFI_GUID gEfiBluetoothLeConfigProtocolGuid;\r
\r
#endif\r