TianoCore EDK2 master
Loading...
Searching...
No Matches
BluetoothConfig.h
Go to the documentation of this file.
1
13#ifndef __EFI_BLUETOOTH_CONFIG_PROTOCOL_H__
14#define __EFI_BLUETOOTH_CONFIG_PROTOCOL_H__
15
17
18#define EFI_BLUETOOTH_CONFIG_PROTOCOL_GUID \
19 { \
20 0x62960cf3, 0x40ff, 0x4263, { 0xa7, 0x7c, 0xdf, 0xde, 0xbd, 0x19, 0x1b, 0x4b } \
21 }
22
24
25typedef UINT32 EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_TYPE;
26#define EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_CONNECTED 0x1
27#define EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_PAIRED 0x2
28
32typedef struct {
48 UINT8 RemoteDeviceName[BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE];
50
54typedef enum {
87 EfiBluetoothConfigDataTypeRandomAddress, /* Relevant for LE*/
88 EfiBluetoothConfigDataTypeRSSI, /* Relevant for LE*/
93 EfiBluetoothConfigDataTypeIoCapability, /* Relevant for LE*/
94 EfiBluetoothConfigDataTypeOOBDataFlag, /* Relevant for LE*/
101 EfiBluetoothConfigDataTypeEncKeySize, /* Relevant for LE*/
102 EfiBluetoothConfigDataTypeMax,
104
108typedef enum {
128 EfiBluetoothCallbackTypeMax
130
134typedef enum {
156
167typedef
171 );
172
183typedef
187 IN VOID *Context,
189 );
190
207typedef
211 IN BOOLEAN ReScan,
212 IN UINT8 ScanType,
214 IN VOID *Context
215 );
216
229typedef
233 IN BLUETOOTH_ADDRESS *BD_ADDR
234 );
235
249typedef
253 IN BLUETOOTH_ADDRESS *BD_ADDR,
254 IN UINT8 Reason
255 );
256
276typedef
281 IN OUT UINTN *DataSize,
282 IN OUT VOID *Data
283 );
284
301typedef
306 IN UINTN DataSize,
307 IN VOID *Data
308 );
309
330typedef
335 IN BLUETOOTH_ADDRESS *BDAddr,
336 IN OUT UINTN *DataSize,
337 IN OUT VOID *Data
338 );
339
355typedef
359 IN VOID *Context,
361 IN VOID *InputBuffer,
362 IN UINTN InputBufferSize,
363 OUT VOID **OutputBuffer,
364 OUT UINTN *OutputBufferSize
365 );
366
377typedef
382 IN VOID *Context
383 );
384
396typedef
400 IN VOID *Context,
401 IN BLUETOOTH_ADDRESS *BDAddr,
402 OUT UINT8 LinkKey[BLUETOOTH_HCI_LINK_KEY_SIZE]
403 );
404
415typedef
420 IN VOID *Context
421 );
422
434typedef
438 IN VOID *Context,
439 IN BLUETOOTH_ADDRESS *BDAddr,
440 IN UINT8 LinkKey[BLUETOOTH_HCI_LINK_KEY_SIZE]
441 );
442
453typedef
458 IN VOID *Context
459 );
460
474typedef
478 IN VOID *Context,
480 IN BLUETOOTH_ADDRESS *BDAddr,
481 IN VOID *InputBuffer,
482 IN UINTN InputBufferSize
483 );
484
495typedef
500 IN VOID *Context
501 );
502
517 EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK RegisterLinkConnectCompleteCallback;
518};
519
520extern EFI_GUID gEfiBluetoothConfigProtocolGuid;
521
522#endif
UINT64 UINTN
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_BLUETOOTH_CONFIG_DATA_TYPE
@ EfiBluetoothConfigDataTypeKeyType
@ EfiBluetoothConfigDataTypeClassOfDevice
@ EfiBluetoothConfigDataTypeDeviceName
@ EfiBluetoothConfigDataTypeRemoteDeviceState
@ EfiBluetoothConfigDataTypeControllerStoredPairedDeviceList
@ EfiBluetoothConfigDataTypeBDADDR
@ EfiBluetoothConfigDataTypeDiscoverable
@ EfiBluetoothConfigDataTypeSdpInfo
@ EfiBluetoothConfigDataTypeAdvertisementData
@ EfiBluetoothConfigDataTypeAvailableDeviceList
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK_FUNCTION)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN VOID *Context, IN BLUETOOTH_ADDRESS *BDAddr, OUT UINT8 LinkKey[BLUETOOTH_HCI_LINK_KEY_SIZE])
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK_FUNCTION)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN VOID *Context, IN EFI_BLUETOOTH_PIN_CALLBACK_TYPE CallbackType, IN VOID *InputBuffer, IN UINTN InputBufferSize, OUT VOID **OutputBuffer, OUT UINTN *OutputBufferSize)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_DISCONNECT)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN BLUETOOTH_ADDRESS *BD_ADDR, IN UINT8 Reason)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_REGISTER_PIN_CALLBACK_FUNCTION Callback, IN VOID *Context)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_SET_DATA)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType, IN UINTN DataSize, IN VOID *Data)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_INIT)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_GET_DATA)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType, IN OUT UINTN *DataSize, IN OUT VOID *Data)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK_FUNCTION)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN VOID *Context, IN EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE CallbackType, IN BLUETOOTH_ADDRESS *BDAddr, IN VOID *InputBuffer, IN UINTN InputBufferSize)
EFI_BLUETOOTH_PIN_CALLBACK_TYPE
@ EfiBluetoothCallbackTypeOOBDataRequest
@ EfiBluetoothCallbackTypePinCodeRequest
@ EfiBluetoothCallbackTypeUserConfirmationRequest
@ EfiBluetoothCallbackTypeUserPasskeyNotification
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_GET_REMOTE_DATA)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_DATA_TYPE DataType, IN BLUETOOTH_ADDRESS *BDAddr, IN OUT UINTN *DataSize, IN OUT VOID *Data)
EFI_BLUETOOTH_CONNECT_COMPLETE_CALLBACK_TYPE
@ EfiBluetoothConnCallbackTypeDisconnected
@ EfiBluetoothConnCallbackTypeConnected
@ EfiBluetoothConnCallbackTypeEncrypted
@ EfiBluetoothConnCallbackTypeAuthenticated
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_SCAN)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN BOOLEAN ReScan, IN UINT8 ScanType, IN EFI_BLUETOOTH_CONFIG_SCAN_CALLBACK_FUNCTION Callback, IN VOID *Context)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK_FUNCTION Callback, IN VOID *Context)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_REGISTER_GET_LINK_KEY_CALLBACK_FUNCTION Callback, IN VOID *Context)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN EFI_BLUETOOTH_CONFIG_REGISTER_CONNECT_COMPLETE_CALLBACK_FUNCTION Callback, IN VOID *Context)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_CONNECT)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN BLUETOOTH_ADDRESS *BD_ADDR)
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_REGISTER_SET_LINK_KEY_CALLBACK_FUNCTION)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN VOID *Context, IN BLUETOOTH_ADDRESS *BDAddr, IN UINT8 LinkKey[BLUETOOTH_HCI_LINK_KEY_SIZE])
EFI_STATUS(EFIAPI * EFI_BLUETOOTH_CONFIG_SCAN_CALLBACK_FUNCTION)(IN EFI_BLUETOOTH_CONFIG_PROTOCOL *This, IN VOID *Context, IN EFI_BLUETOOTH_SCAN_CALLBACK_INFORMATION *CallbackInfo)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
BLUETOOTH_CLASS_OF_DEVICE ClassOfDevice
Definition: Base.h:213