xhci offers a debugging interface which uses a special usb 3 cable wit the D+,
D- and VBUS pairs disconnected. This interface allows a target device to
configure its xhci controller as a debugging channel which can then be used to
provide a serial link between the target and a debug host.
This change extracts the udbc host mode driver from hrs's xhci implementation.
xhci debug target support will come in the future, I am currently aiming for
early in the 16 branch point. I can test the host mode today and it seems to me
to be generally useful for debugging linux or windows targets and for FreeBSD
15 to be able to debug 16+
This diff:
- extracts the driver and makefile changes
- removes if 0'd code
- formats the driver with clang format
- adds a man page
I'll have intermittent availability for the next three weeks and am happy for
this review to mature a bit. My goal is to commit near the start of August.