From a92e224f9a38c5928ba7a0db42884b0985fb2c62 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 30 Apr 2019 19:16:14 +0200 Subject: [PATCH] listusb: add some standard subclass codes From https://www.usb.org/defined-class-codes Change-Id: Icd029ff2078650fad3c2fa90f1d82cf80b0662b0 Reviewed-on: https://review.haiku-os.org/c/1423 Reviewed-by: Rene Gollent --- src/bin/listusb/listusb.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/bin/listusb/listusb.cpp b/src/bin/listusb/listusb.cpp index 2c21ef0e57..4fc0d01d82 100644 --- a/src/bin/listusb/listusb.cpp +++ b/src/bin/listusb/listusb.cpp @@ -73,6 +73,14 @@ SubclassName(int classNumber, int subclass) if (classNumber == 0xEF) { if (subclass == 0x02) return " (Common)"; + if (subclass == 0x04) + return " (RNDIS)"; + if (subclass == 0x05) + return " (USB3 Vision)"; + if (subclass == 0x06) + return " (STEP)"; + if (subclass == 0x07) + return " (DVB Command Interface)"; } if (classNumber == USB_VIDEO_DEVICE_CLASS) { @@ -87,6 +95,16 @@ SubclassName(int classNumber, int subclass) return " (Collection)"; } } + + if (classNumber == 0xFE) { + if (subclass == 0x01) + return " (Firmware Upgrade)"; + if (subclass == 0x02) + return " (IrDA)"; + if (subclass == 0x03) + return " (Test and measurement)"; + } + return ""; }