Commit Graph

9 Commits

Author SHA1 Message Date
Viresh Kumar
1bed5dfdbe build: Relax vm-memory dependency
This allows the use of newer versions of vm-memory and matches with
other crates (e.g. vhost, vhost-user-backend, etc) who also have such a
relaxed vm-memory dependency.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-05-04 12:45:15 +05:30
Viresh Kumar
413a840d0b gpio: Fix get_config()
get_config() must return only the relevant part of the config, as
requested by the caller, instead of returning entire config structure.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-29 16:00:36 +05:30
Viresh Kumar
131464787d gpio: Skip musl builds
Disable builds for musl, where libgpiod build fails on
rust-vmm-container due to missing tools and headers.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
c38dacd880 gpio: Update README.md and add one for gpio
This updates the main README and adds a specific one for GPIO crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
cc6d1e608f gpio: Add tests
Add tests to validate functionality of the GPIO crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-04-04 12:38:51 +05:30
Viresh Kumar
679224af8d gpio: Add support for interrupts
Add support for GPIO interrupts. Only edge interrupts are supported by
libgpiod.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
8a021c704f gpio: Process virtio requests
This patch implements process_queue() to process incoming requests.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
472870d44d gpio: Implement low level GPIO helpers
This patch implements the low level GPIO helpers responsible for pin
level functioning.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30
Viresh Kumar
5caff0a8ad gpio: Add boilerplate code
This adds the boilerplate code and its dependencies to get the basic
structure for the gpio crate.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2022-03-31 09:09:32 +05:30