summaryrefslogtreecommitdiffstats
path: root/hci/include
diff options
context:
space:
mode:
authorKiran Kelageri <kirankelageri@codeaurora.org>2015-08-04 15:46:33 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:21:49 -0600
commit4a924fdcae4493b082295b76511d448456c5e36a (patch)
treefef44680c55ba85f3175fdb599da8eb23e27ddd0 /hci/include
parent273de486f3b1771be80b83ed30fa7df4449c7eab (diff)
downloadandroid_system_bt-4a924fdcae4493b082295b76511d448456c5e36a.tar.gz
android_system_bt-4a924fdcae4493b082295b76511d448456c5e36a.tar.bz2
android_system_bt-4a924fdcae4493b082295b76511d448456c5e36a.zip
Bluetooth: Enable SSR.
Enabling SSR feature. Change-Id: I26eab5b3a10ac7823ff5e9f2adc3bc187939c87e
Diffstat (limited to 'hci/include')
-rw-r--r--hci/include/bt_vendor_lib.h5
-rw-r--r--hci/include/hci_layer.h5
-rw-r--r--hci/include/vendor.h5
3 files changed, 15 insertions, 0 deletions
diff --git a/hci/include/bt_vendor_lib.h b/hci/include/bt_vendor_lib.h
index 65d448bf4..e312ab8c4 100644
--- a/hci/include/bt_vendor_lib.h
+++ b/hci/include/bt_vendor_lib.h
@@ -343,6 +343,11 @@ typedef struct {
/** Closes the interface */
void (*cleanup)(void);
+
+ /** SSR cleanup is used in HW reset cases
+ * which would close all the client channels
+ * and turns off the chip*/
+ void (*ssr_cleanup)(void);
} bt_vendor_interface_t;
diff --git a/hci/include/hci_layer.h b/hci/include/hci_layer.h
index bdc468146..26841440d 100644
--- a/hci/include/hci_layer.h
+++ b/hci/include/hci_layer.h
@@ -98,6 +98,11 @@ typedef struct hci_t {
// Send some data downward through the HCI layer
void (*transmit_downward)(data_dispatcher_type_t type, void *data);
+
+ /** SSR cleanup is used in HW reset cases
+ ** which would close all the client channels
+ ** and turns off the chip*/
+ void (*ssr_cleanup)(void);
} hci_t;
const hci_t *hci_layer_get_interface();
diff --git a/hci/include/vendor.h b/hci/include/vendor.h
index 3181e6221..ec948fe60 100644
--- a/hci/include/vendor.h
+++ b/hci/include/vendor.h
@@ -65,6 +65,11 @@ typedef struct vendor_t{
// Registers a callback for an asynchronous vendor-specific command.
void (*set_callback)(vendor_async_opcode_t opcode, vendor_cb callback);
+
+ /** SSR cleanup is used in HW reset cases
+ ** which would close all the client channels
+ ** and turns off the chip*/
+ void (*ssr_cleanup) (void);
} vendor_t;
const vendor_t *vendor_get_interface();