aboutsummaryrefslogtreecommitdiff
path: root/hw/usb/trace-events
diff options
context:
space:
mode:
authorHongren (Zenithal) Zheng <i@zenithal.me>2022-05-19 20:38:30 +0800
committerGerd Hoffmann <kraxel@redhat.com>2022-06-14 10:34:36 +0200
commitd37d0e0e855222b89008930b8675198ce74f8d4f (patch)
treee1104ba5ac7ed71e75e5471d620983fbb9c80f36 /hw/usb/trace-events
parentd7d34918551dc48a2f6b42b44a12c7a9183f89e6 (diff)
downloadqemu-d37d0e0e855222b89008930b8675198ce74f8d4f.zip
qemu-d37d0e0e855222b89008930b8675198ce74f8d4f.tar.gz
qemu-d37d0e0e855222b89008930b8675198ce74f8d4f.tar.bz2
hw/usb/canokey: Add trace events
Signed-off-by: Hongren (Zenithal) Zheng <i@zenithal.me> Message-Id: <YoY6RoDKQIxSkFwL@Sun> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/trace-events')
-rw-r--r--hw/usb/trace-events16
1 files changed, 16 insertions, 0 deletions
diff --git a/hw/usb/trace-events b/hw/usb/trace-events
index 9773cb5..914ca71 100644
--- a/hw/usb/trace-events
+++ b/hw/usb/trace-events
@@ -345,3 +345,19 @@ usb_serial_set_baud(int bus, int addr, int baud) "dev %d:%u baud rate %d"
usb_serial_set_data(int bus, int addr, int parity, int data, int stop) "dev %d:%u parity %c, data bits %d, stop bits %d"
usb_serial_set_flow_control(int bus, int addr, int index) "dev %d:%u flow control %d"
usb_serial_set_xonxoff(int bus, int addr, uint8_t xon, uint8_t xoff) "dev %d:%u xon 0x%x xoff 0x%x"
+
+# canokey.c
+canokey_emu_stall_ep(uint8_t ep) "ep %d"
+canokey_emu_set_address(uint8_t addr) "addr %d"
+canokey_emu_prepare_receive(uint8_t ep, uint16_t size) "ep %d size %d"
+canokey_emu_transmit(uint8_t ep, uint16_t size) "ep %d size %d"
+canokey_thread_start(void)
+canokey_thread_stop(void)
+canokey_handle_reset(void)
+canokey_handle_control_setup(int request, int value, int index, int length) "request 0x%04X value 0x%04X index 0x%04X length 0x%04X"
+canokey_handle_control_out(void)
+canokey_handle_control_in(int actual_len) "len %d"
+canokey_handle_data_out(uint8_t ep_out, uint32_t out_len) "ep %d len %d"
+canokey_handle_data_in(uint8_t ep_in, uint32_t in_len) "ep %d len %d"
+canokey_realize(void)
+canokey_unrealize(void)