commit | 87713eda596c13078490dde07add22a4f73ddb74 | [log] [tgz] |
---|---|---|
author | Yilong Li <liyl@google.com> | Mon Jul 26 21:19:03 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Mon Jul 26 21:19:03 2021 +0000 |
tree | e416ad4313ac7c4efaa69559f40defdf3bcdfda2 | |
parent | 8a10292ddb6695f3b4518fa9825d2ba6197f1d64 [diff] |
[goldfish] Add goldfish sensor driver. Goldfish-sensor is a multisensor device that produces sensor reports for multiple sensor devices using goldfish (qemud) pipe device. Since the device needs to provide sensor reports for multiple different kinds of sensors (currently only accelerometer and gyrometer are supported, and more will be added), HID bus device doesn't work and thus we create and manage multiple fuchsia.input.report.InputDevice devices instead. The root device (goldfish-sensor-root) is responsible for pipe asynchronous IO, managing and dispatching the pipe messages to corresponding input devices. Each input device (goldfish-sensor-...) will appear in /dev/class/input-report and serve the InputDevice FIDL protocol. TEST=added unit tests to goldfish-sensor-test - input_device_test - root_device_test - parser_test Fixed: 78205 Change-Id: I0726b47955134fa36da584097093f703f1735a1d Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/556165 Commit-Queue: Yilong Li <liyl@google.com> Reviewed-by: Suraj Malhotra <surajmalhotra@google.com> Reviewed-by: David Reveman <reveman@google.com> Reviewed-by: David Gilhooley <dgilhooley@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.