Allow to get usb vendors and products from the usb.ids databse.
I plan to add a share/misc/usb_vendors like we do for pciconf
Prefer port version as updated more often
The code is strongly based on pciconf one
Differential D3392
usbconfig: allow to get usb vendors and products from the usb.ids database bapt on Aug 15 2015, 10:22 PM. Authored by Tags None Referenced Files
Details Allow to get usb vendors and products from the usb.ids databse. I plan to add a share/misc/usb_vendors like we do for pciconf Prefer port version as updated more often The code is strongly based on pciconf one
Diff Detail
Event TimelineComment Actions Forgot to say: before ugen0.1: <XHCI root HUB 0x8086> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: <Lenovo EasyCamera Generic> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen0.3: <USB2.0 Hub vendor 0x05e3> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.4: <product 0x3004 vendor 0x0cf3> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen0.5: <USB2.0-CRW Generic> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) After: ugen0.1: <XHCI root HUB 0x8086> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: <Lenovo EasyCamera Acer, Inc> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen0.3: <4-port hub Genesys Logic, Inc.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA) ugen0.4: <AR3012 Bluetooth 4.0 Atheros Communications, Inc.> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen0.5: <RTS5129 Card Reader Controller Realtek Semiconductor Corp.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
Comment Actions I generally like it. TAILQ vs STAILQ I'm agnostic on, though I don't see a need to traverse the list backwards ever... Comment Actions Just the one question... otherwise it looks good
Comment Actions provided the last messages looks scary I am not giving up on this, just I don't want to be my own reviewer |