Hi Reinier,
Is there any wrong with the patch and the struct Dwc_otg?
the sole purpose of the struct is the access to one of the USB host-controller registers that was of particular interest for me. For illustrating the tracing facility, it is not really important. The important part is the implementation of the trace monitor.
Anyway, if you want to fix the problem, please have a look at the struct Usb_dwc_otg in base-hw/src/core/include/spec/rpi/pic.h, which does the same thing: It makes the host-controller registers visible within core.
Good luck Norman