diff options
author | Laurent Vivier <laurent@vivier.eu> | 2021-03-12 22:41:41 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2021-03-15 21:02:03 +0100 |
commit | 8c6df16ff6080365642b0583514dd03d6a7729d6 (patch) | |
tree | 618d99f863c80a6c207369230ec71a06521d1247 /hw/char/trace-events | |
parent | e7c6a8cf9f5c82aa152273e1c9e80d07b1b0c32c (diff) | |
download | qemu-8c6df16ff6080365642b0583514dd03d6a7729d6.zip qemu-8c6df16ff6080365642b0583514dd03d6a7729d6.tar.gz qemu-8c6df16ff6080365642b0583514dd03d6a7729d6.tar.bz2 |
hw/char: add goldfish-tty
Implement the goldfish tty device as defined in
https://android.googlesource.com/platform/external/qemu/+/master/docs/GOLDFISH-VIRTUAL-HARDWARE.TXT
and based on the kernel driver code:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/tty/goldfish.c
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210312214145.2936082-2-laurent@vivier.eu>
Diffstat (limited to 'hw/char/trace-events')
-rw-r--r-- | hw/char/trace-events | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/char/trace-events b/hw/char/trace-events index 81026f6..76d5293 100644 --- a/hw/char/trace-events +++ b/hw/char/trace-events @@ -20,6 +20,16 @@ virtio_console_flush_buf(unsigned int port, size_t len, ssize_t ret) "port %u, i virtio_console_chr_read(unsigned int port, int size) "port %u, size %d" virtio_console_chr_event(unsigned int port, int event) "port %u, event %d" +# goldfish_tty.c +goldfish_tty_read(void *dev, unsigned int addr, unsigned int size, uint64_t value) "tty: %p reg: 0x%02x size: %d value: 0x%"PRIx64 +goldfish_tty_write(void *dev, unsigned int addr, unsigned int size, uint64_t value) "tty: %p reg: 0x%02x size: %d value: 0x%"PRIx64 +goldfish_tty_can_receive(void *dev, unsigned int available) "tty: %p available: %u" +goldfish_tty_receive(void *dev, unsigned int size) "tty: %p size: %u" +goldfish_tty_reset(void *dev) "tty: %p" +goldfish_tty_realize(void *dev) "tty: %p" +goldfish_tty_unrealize(void *dev) "tty: %p" +goldfish_tty_instance_init(void *dev) "tty: %p" + # grlib_apbuart.c grlib_apbuart_event(int event) "event:%d" grlib_apbuart_writel_unknown(uint64_t addr, uint32_t value) "addr 0x%"PRIx64" value 0x%x" |