interfaces: Introduce the QTI FM HAL.

* Based on observing FM HCI expectations.

Change-Id: I54685ff840e8c4c4e5b0de3cc1bec3eb1ed29579
This commit is contained in:
Alexander Koskovich 2021-07-10 19:47:56 -07:00 committed by Vishalcj17
parent bb404a7d5c
commit 1adb2f7631
No known key found for this signature in database
GPG Key ID: 5CB1A9F3F6539FB2
5 changed files with 50 additions and 0 deletions

View File

@ -31,3 +31,8 @@ hidl_package_root {
name: "vendor.qti.hardware.cryptfshw", name: "vendor.qti.hardware.cryptfshw",
path: "vendor/aospa/interfaces/qcom/cryptfshw", path: "vendor/aospa/interfaces/qcom/cryptfshw",
} }
hidl_package_root {
name: "vendor.qti.hardware.fm",
path: "vendor/aospa/interfaces/qcom/fm",
}

View File

@ -0,0 +1,16 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "vendor.qti.hardware.fm@1.0",
root: "vendor.qti.hardware.fm",
system_ext_specific: true,
srcs: [
"types.hal",
"IFmHci.hal",
"IFmHciCallbacks.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}

View File

@ -0,0 +1,13 @@
package vendor.qti.hardware.fm@1.0;
import IFmHciCallbacks;
interface IFmHci {
@entry
@callflow(next={"sendHciCommand", "close"})
initialize(IFmHciCallbacks callback);
@callflow(next={"sendHciCommand", "close"})
sendHciCommand(HciPacket command);
@exit
close();
};

View File

@ -0,0 +1,6 @@
package vendor.qti.hardware.fm@1.0;
interface IFmHciCallbacks {
initializationComplete(Status status);
hciEventReceived(HciPacket event);
};

View File

@ -0,0 +1,10 @@
package vendor.qti.hardware.fm@1.0;
enum Status : int32_t {
SUCCESS,
TRANSPORT_ERROR,
INITIALIZATION_ERROR,
UNKNOWN
};
typedef vec<uint8_t> HciPacket;