diff options
author | Ruiyu Ni <ruiyu.ni@intel.com> | 2017-06-06 10:03:09 +0800 |
---|---|---|
committer | Guo Mang <mang.guo@intel.com> | 2017-07-12 11:24:53 +0800 |
commit | 0acca3e4065b6b6498faf0844185c82b3367e0c8 (patch) | |
tree | 2f1aa40d7d529b9d3b2f1c3e142f9eb0a8e6f7f3 /Core/MdePkg/Include | |
parent | b527ce3be7b615d64339e6736a92a560b80f87d0 (diff) | |
download | edk2-platforms-0acca3e4065b6b6498faf0844185c82b3367e0c8.tar.xz |
MdePkg/DevicePath: Add BluetoothLe device path node support
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
(cherry picked from commit ff5623e990782ad62c5f6943087ebafb17afe8ba)
Diffstat (limited to 'Core/MdePkg/Include')
-rw-r--r-- | Core/MdePkg/Include/IndustryStandard/Bluetooth.h | 17 | ||||
-rw-r--r-- | Core/MdePkg/Include/Protocol/DevicePath.h | 11 |
2 files changed, 26 insertions, 2 deletions
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.<BR>
+ 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
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.<BR>
+Copyright (c) 2006 - 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
@@ -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
//
|