Re: [PATCH 1/6] hw/usb: Add CanoKey Implementation

2022-01-03 Thread Gerd Hoffmann
Hi, > +#ifdef DEBUG_CANOKEY > +#define DPRINTF(fmt, ...) \ > +do { printf("canokey: " fmt "\n", ## __VA_ARGS__); } while (0) Better use tracepoints instead (see docs/devel/tracing.rst). > +int canokey_emu_transmit( > +void *base, uint8_t ep, const uint8_t *pbuf, uint16_t size) > +{ > +

[PATCH 1/6] hw/usb: Add CanoKey Implementation

2021-12-23 Thread Hongren (Zenithal) Zheng
This commit added a new emulated device called CanoKey to QEMU. CanoKey implements platform independent features in canokey-core https://github.com/canokeys/canokey-core, and leaves the USB implementation to the platform. In this commit the USB part was implemented in QEMU using QEMU's USB APIs,