From 0acca3e4065b6b6498faf0844185c82b3367e0c8 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Tue, 6 Jun 2017 10:03:09 +0800 Subject: MdePkg/DevicePath: Add BluetoothLe device path node support Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni Reviewed-by: Hao A Wu (cherry picked from commit ff5623e990782ad62c5f6943087ebafb17afe8ba) --- Core/MdePkg/Include/IndustryStandard/Bluetooth.h | 17 ++++++++++++++++- Core/MdePkg/Include/Protocol/DevicePath.h | 11 ++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'Core/MdePkg/Include') diff --git a/Core/MdePkg/Include/IndustryStandard/Bluetooth.h b/Core/MdePkg/Include/IndustryStandard/Bluetooth.h index 7dc9d558dc..caea3ac034 100644 --- a/Core/MdePkg/Include/IndustryStandard/Bluetooth.h +++ b/Core/MdePkg/Include/IndustryStandard/Bluetooth.h @@ -2,7 +2,7 @@ This file contains the Bluetooth definitions that are consumed by drivers. These definitions are from Bluetooth Core Specification Version 4.0 June, 2010 - Copyright (c) 2015, Intel Corporation. All rights reserved.
+ Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -38,6 +38,21 @@ typedef struct { UINT16 MajorServiceClass:11; } BLUETOOTH_CLASS_OF_DEVICE; +/// +/// BLUETOOTH_LE_ADDRESS +/// +typedef struct { + /// + /// 48-bit Bluetooth device address + /// + UINT8 Address[6]; + /// + /// 0x00 - Public Device Address + /// 0x01 - Random Device Address + /// + UINT8 Type; +} BLUETOOTH_LE_ADDRESS; + #pragma pack() #define BLUETOOTH_HCI_COMMAND_LOCAL_READABLE_NAME_MAX_SIZE 248 diff --git a/Core/MdePkg/Include/Protocol/DevicePath.h b/Core/MdePkg/Include/Protocol/DevicePath.h index aa7aec793e..220fa90765 100644 --- a/Core/MdePkg/Include/Protocol/DevicePath.h +++ b/Core/MdePkg/Include/Protocol/DevicePath.h @@ -5,7 +5,7 @@ from a software point of view. The path must persist from boot to boot, so it can not contain things like PCI bus numbers that change from boot to boot. -Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.
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 @@ -938,6 +938,15 @@ typedef struct { UINT8 SSId[32]; } WIFI_DEVICE_PATH; +/// +/// Bluetooth LE Device Path SubType. +/// +#define MSG_BLUETOOTH_LE_DP 0x1E +typedef struct { + EFI_DEVICE_PATH_PROTOCOL Header; + BLUETOOTH_LE_ADDRESS Address; +} BLUETOOTH_LE_DEVICE_PATH; + // // Media Device Path // -- cgit v1.2.3