summaryrefslogtreecommitdiff
path: root/emulator/vhci.h
diff options
context:
space:
mode:
authorManish Mandlik <mmandlik@google.com>2023-03-29 23:08:02 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-03-30 10:46:21 -0700
commit8bd2f29617743a5587ca9679957c2e4bf3b78aa9 (patch)
tree21a0163b0b090d2f9c052c7b3f6e6ae90db2e507 /emulator/vhci.h
parent2b022fa5297a56875f06c2b5612258cd99dcbe74 (diff)
downloadbluez-8bd2f29617743a5587ca9679957c2e4bf3b78aa9.tar.gz
vhci: Add support to trigger devcoredump and read the dump file
Add vhci support to trigger the hci devcoredump by writing to force_devcoredump debugfs entry and read the generated devcoredump file.
Diffstat (limited to 'emulator/vhci.h')
-rw-r--r--emulator/vhci.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/emulator/vhci.h b/emulator/vhci.h
index 6da56cb58..68eae4c4a 100644
--- a/emulator/vhci.h
+++ b/emulator/vhci.h
@@ -29,3 +29,5 @@ int vhci_set_msft_opcode(struct vhci *vhci, uint16_t opcode);
int vhci_set_aosp_capable(struct vhci *vhci, bool enable);
int vhci_set_emu_opcode(struct vhci *vhci, uint16_t opcode);
int vhci_set_force_static_address(struct vhci *vhci, bool enable);
+int vhci_force_devcd(struct vhci *vhci, const void *data, size_t len);
+int vhci_read_devcd(struct vhci *vhci, void *buf, size_t size);