OSDN Git Service

New call-in/-back functions for Controller to do vendor-specific shutdown (1/2)
authorYK Jeffrey Chao <jechao@broadcom.com>
Tue, 7 May 2013 23:28:52 +0000 (16:28 -0700)
committerMatthew Xie <mattx@google.com>
Thu, 9 May 2013 19:21:17 +0000 (12:21 -0700)
commit67e4077c23bb9cc045885ae01cc83b38faecb71b
tree745e9c704500e8045f9916ad045bcad69d94680f
parented049d78633d33d4fbb3178dacfa6edbb756ae45
New call-in/-back functions for Controller to do vendor-specific shutdown (1/2)

A pair of asynchronous call-in and call-back API are added into the Host
Controller Vendor Lib interface (bt_vendor_lib.h). The caller calls this new
call-in function to inform the vendor module to perform vendor-specific
shutdown process (e.g. send HCI_RESET to BT Controller) before the caller calls
for interface cleanup() function. The vendor module is responsible for calling
call-back function to notify the caller completion of vendor-specific shutdown
process.
bug 7390787

Change-Id: I29e3c94ff78e17cdd7a06b44ae537e3b0ad1516d
hci/include/bt_hci_bdroid.h
hci/include/bt_vendor_lib.h
hci/src/bt_hci_bdroid.c
hci/src/bt_hw.c