interfaces: Introduce the QTI FM HAL.
* Based on observing FM HCI expectations. Change-Id: I54685ff840e8c4c4e5b0de3cc1bec3eb1ed29579
This commit is contained in:
parent
bb404a7d5c
commit
1adb2f7631
|
@ -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",
|
||||||
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
}
|
|
@ -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();
|
||||||
|
};
|
|
@ -0,0 +1,6 @@
|
||||||
|
package vendor.qti.hardware.fm@1.0;
|
||||||
|
|
||||||
|
interface IFmHciCallbacks {
|
||||||
|
initializationComplete(Status status);
|
||||||
|
hciEventReceived(HciPacket event);
|
||||||
|
};
|
|
@ -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;
|
Loading…
Reference in New Issue