public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ruiyu Ni <ruiyu.ni@intel.com>
To: edk2-devel@lists.01.org
Cc: Jiewen Yao <jiewen.yao@intel.com>
Subject: [PATCH 2/5] MdePkg/BluetoothConfig: Add new EFI_BLUETOOTH_CONFIG_DATA_TYPE types
Date: Tue,  6 Jun 2017 11:27:43 +0800	[thread overview]
Message-ID: <20170606032746.238188-3-ruiyu.ni@intel.com> (raw)
In-Reply-To: <20170606032746.238188-1-ruiyu.ni@intel.com>

UEFI spec 2.7 adds new EFI_BLUETOOTH_CONFIG_DATA_TYPE types.
The patch adds them to the header file.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
---
 MdePkg/Include/Protocol/BluetoothConfig.h | 25 ++++++++++++++++++++-----
 1 file changed, 20 insertions(+), 5 deletions(-)

diff --git a/MdePkg/Include/Protocol/BluetoothConfig.h b/MdePkg/Include/Protocol/BluetoothConfig.h
index b1b3f55126..4240ef0a14 100644
--- a/MdePkg/Include/Protocol/BluetoothConfig.h
+++ b/MdePkg/Include/Protocol/BluetoothConfig.h
@@ -2,7 +2,7 @@
   EFI Bluetooth Configuration Protocol as defined in UEFI 2.5.
   This protocol abstracts user interface configuration for Bluetooth device.
 
-  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 that accompanies this distribution.  
   The full text of the license may be found at
@@ -69,7 +69,7 @@ typedef enum {
   ///
   /// Remote Bluetooth device state. Data structure is EFI_BLUETOOTH_CONFIG_REMOTE_DEVICE_STATE_TYPE.
   ///
-  EfiBluetoothConfigDataTypeRemoteDeviceState,
+  EfiBluetoothConfigDataTypeRemoteDeviceState, /* Relevant for LE*/
   ///
   /// Local/Remote Bluetooth device SDP information. Data structure is UINT8[].
   ///
@@ -77,11 +77,11 @@ typedef enum {
   ///
   /// Local Bluetooth device address. Data structure is BLUETOOTH_ADDRESS.
   ///
-  EfiBluetoothConfigDataTypeBDADDR,
+  EfiBluetoothConfigDataTypeBDADDR, /* Relevant for LE*/
   ///
   /// Local Bluetooth discoverable state. Data structure is UINT8. (Page scan and/or Inquiry scan)
   ///
-  EfiBluetoothConfigDataTypeDiscoverable,
+  EfiBluetoothConfigDataTypeDiscoverable, /* Relevant for LE*/
   ///
   /// Local Bluetooth controller stored paired device list. Data structure is BLUETOOTH_ADDRESS[].
   ///
@@ -90,6 +90,21 @@ typedef enum {
   /// Local available device list. Data structure is BLUETOOTH_ADDRESS[].
   ///
   EfiBluetoothConfigDataTypeAvailableDeviceList,
+  EfiBluetoothConfigDataTypeRandomAddress, /* Relevant for LE*/
+  EfiBluetoothConfigDataTypeRSSI, /* Relevant for LE*/
+  ///
+  /// Advertisement report. Data structure is UNIT8[].
+  ///
+  EfiBluetoothConfigDataTypeAdvertisementData, /* Relevant for LE*/
+  EfiBluetoothConfigDataTypeIoCapability, /* Relevant for LE*/
+  EfiBluetoothConfigDataTypeOOBDataFlag, /* Relevant for LE*/
+  ///
+  /// KeyType of Authentication Requirements flag of local
+  /// device as UINT8, indicating requested security properties.
+  /// See Bluetooth specification 3.H.3.5.1. BIT0: MITM, BIT1:SC.
+  ///
+  EfiBluetoothConfigDataTypeKeyType, /* Relevant for LE*/
+  EfiBluetoothConfigDataTypeEncKeySize, /* Relevant for LE*/
   EfiBluetoothConfigDataTypeMax,
 } EFI_BLUETOOTH_CONFIG_DATA_TYPE;
 
@@ -324,7 +339,7 @@ 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 BLUETOOTH_ADDRESS                              *BDAddr,
   IN OUT UINTN                                      *DataSize,
   IN OUT VOID                                       *Data
   );
-- 
2.12.2.windows.2



  parent reply	other threads:[~2017-06-06  3:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-06  3:27 [PATCH 0/5] Add Bluetooth LE definitions per UEFI Spec 2.7 Ruiyu Ni
2017-06-06  3:27 ` [PATCH 1/5] MdePkg/DevicePath: Add BluetoothLe device path node support Ruiyu Ni
2017-06-06  3:27 ` Ruiyu Ni [this message]
2017-06-06  3:27 ` [PATCH 3/5] MdePkg/BluetoothHc: Add detailed function header comments Ruiyu Ni
2017-06-06  3:27 ` [PATCH 4/5] MdePkg/BluetoothIo: Formalize " Ruiyu Ni
2017-06-06  3:27 ` [PATCH 5/5] MdePkg: Add BluetoothAttribute.h and BluetoothLeConfig.h Ruiyu Ni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170606032746.238188-3-ruiyu.ni@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox