diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2025-02-14 12:41:14 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-03-06 12:44:47 +0100 |
commit | 2d0050cbe27fed5233561451e6de64af5ecb6571 (patch) | |
tree | f87b1f1c7c62a81cf86b47385fb82e6760c71c6a /rust/hw/char/pl011/src | |
parent | 2ad011d466697d69f7f9aa84662a6553049f6556 (diff) | |
download | qemu-2d0050cbe27fed5233561451e6de64af5ecb6571.zip qemu-2d0050cbe27fed5233561451e6de64af5ecb6571.tar.gz qemu-2d0050cbe27fed5233561451e6de64af5ecb6571.tar.bz2 |
rust: chardev: provide basic bindings to character devices
Most of the character device API is pretty simple, with "0 or -errno"
or "number of bytes or -errno" as the convention for return codes.
Add safe wrappers for the API to the CharBackend bindgen-generated
struct.
The API is not complete, but it covers the parts that are used
by the PL011 device, plus qemu_chr_fe_write which is needed to
implement the standard library Write trait.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw/char/pl011/src')
0 files changed, 0 insertions, 0 deletions