| commit | b27a085d64ad6a66cdf3ee97d4845d03f3d9e85d | [log] [tgz] |
|---|---|---|
| author | Yilong Li <liyl@google.com> | Thu Sep 10 05:49:03 2020 +0000 |
| committer | CQ Bot <commit-bot@chromium.org> | Thu Sep 10 05:49:03 2020 +0000 |
| tree | ffd5f3a5370f04a7f470b866b3139a210fff932f | |
| parent | c6d996b38e8cee33e8c876dae930a34047f62b40 [diff] |
[goldfish] Support composite device in goldfish_control driver.
This change adds support of goldfish-control-2 composite device to
"goldfish-control" driver so that it can access the goldfish address
space device.
Since only one control device is supported on the device (otherwise
there will be multiple goldfish heaps and goldfish display devices),
we do not create a new driver, instead we add some #ifdefs to the
original driver to control which device to bind to.
Currently whether to use the composite device is controlled by a
build-time argument "goldfish_control_use_composite_device" (default
to false) to control which type of device the driver binds to. This
will be switched to true by defualt in a subsequent change.
TEST=goldfish_test with goldfish_control_use_composite_driver = true
goldfish_test with goldfish_control_use_composite_driver = false
Change-Id: I5411a432c65010cdaf64ca259fa5749ec2461dd4
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/424654
Commit-Queue: Yilong Li <liyl@google.com>
Reviewed-by: David Reveman <reveman@google.com>
Testability-Review: David Reveman <reveman@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.
See Getting Started.
See fuchsia.dev.