From 7b257d24d71beb43fc85b8ab3a35661d887a695f Mon Sep 17 00:00:00 2001 From: Jyotiraditya Date: Sat, 19 Sep 2020 18:31:03 +0530 Subject: [PATCH] interfaces: Introduce QTI btconfigstore v2.0 HAL. * vendor.qti.hardware.btconfigstore@2.0 based on observing libbtconfigstore expectations. Change-Id: I755c6ab6cd11de99dc3ddc4969da77ea0a251942 --- interfaces/qcom/btconfigstore/2.0/Android.bp | 15 +++++++++++ .../qcom/btconfigstore/2.0/IBTConfigStore.hal | 8 ++++++ interfaces/qcom/btconfigstore/2.0/types.hal | 27 +++++++++++++++++++ interfaces/qcom/btconfigstore/current.txt | 3 +++ 4 files changed, 53 insertions(+) create mode 100644 interfaces/qcom/btconfigstore/2.0/Android.bp create mode 100644 interfaces/qcom/btconfigstore/2.0/IBTConfigStore.hal create mode 100644 interfaces/qcom/btconfigstore/2.0/types.hal diff --git a/interfaces/qcom/btconfigstore/2.0/Android.bp b/interfaces/qcom/btconfigstore/2.0/Android.bp new file mode 100644 index 00000000..2dbca581 --- /dev/null +++ b/interfaces/qcom/btconfigstore/2.0/Android.bp @@ -0,0 +1,15 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "vendor.qti.hardware.btconfigstore@2.0", + root: "vendor.qti.hardware.btconfigstore", + system_ext_specific: true, + srcs: [ + "types.hal", + "IBTConfigStore.hal", + ], + interfaces: [ + "android.hidl.base@1.0", + ], + gen_java: true, +} diff --git a/interfaces/qcom/btconfigstore/2.0/IBTConfigStore.hal b/interfaces/qcom/btconfigstore/2.0/IBTConfigStore.hal new file mode 100644 index 00000000..4acd9641 --- /dev/null +++ b/interfaces/qcom/btconfigstore/2.0/IBTConfigStore.hal @@ -0,0 +1,8 @@ +package vendor.qti.hardware.btconfigstore@2.0; + +interface IBTConfigStore { + getVendorProperties(uint32_t vPropType) generates (Result result, vec vendorProp); + setVendorProperty(VendorProperty vendorProp) generates (Result result); + getHostAddOnFeatures() generates (Result result, HostAddOnFeatures host_features); + getControllerAddOnFeatures() generates (Result result, ControllerAddOnFeatures controller_features); +}; diff --git a/interfaces/qcom/btconfigstore/2.0/types.hal b/interfaces/qcom/btconfigstore/2.0/types.hal new file mode 100644 index 00000000..ae9869e5 --- /dev/null +++ b/interfaces/qcom/btconfigstore/2.0/types.hal @@ -0,0 +1,27 @@ +package vendor.qti.hardware.btconfigstore@2.0; + +enum Result : int32_t { + SUCCESS, + FAILED, + UNKNOWN_ERROR, + INTERNAL_ERROR, + INVALID_ARGUMENTS, + NOT_SUPPORTED, +}; + +struct VendorProperty { + uint32_t type; + string value; +}; + +struct HostAddOnFeatures { + uint8_t feat_mask_len; + vec features; +}; + +struct ControllerAddOnFeatures { + uint16_t product_id; + uint16_t rsp_version; + uint8_t feat_mask_len; + vec features; +}; diff --git a/interfaces/qcom/btconfigstore/current.txt b/interfaces/qcom/btconfigstore/current.txt index 3e0ca1a9..bb48af53 100644 --- a/interfaces/qcom/btconfigstore/current.txt +++ b/interfaces/qcom/btconfigstore/current.txt @@ -1,2 +1,5 @@ b0d81417ddc5daf549ac2fb63db24a83b4fe2fae71cd38c76f7482d029dd338f vendor.qti.hardware.btconfigstore@1.0::types 04a894025ae70cb5821de82289b1a13426583696a4d3bf99042d0a25b615c10a vendor.qti.hardware.btconfigstore@1.0::IBTConfigStore + +3c637d840916d6affda8b35359df37ea0510964242109b9e558ae8276a205d29 vendor.qti.hardware.btconfigstore@2.0::types +3fd14e41ed74c712f74b34d930e595666a838945c1877b49825160106a3d932d vendor.qti.hardware.btconfigstore@2.0::IBTConfigStore