Files
RedBear-OS/drivers/usb/xhcid/drivers.toml
T
Red Bear OS bd595851e2 base: apply Red Bear patches on latest upstream/main
251 files: init, acpid, ipcd, netcfg, ihdgd, virtio-gpud, scheme-utils,
inputd, block driver, ptyd, ramfs, randd, initfs bootstrap, path deps,
version +rb0.3.1, author attribution
2026-07-11 11:39:24 +03:00

53 lines
1.4 KiB
TOML

# xhcid built-in USB class driver configuration.
# Cross-referenced with Linux 7.1 drivers/usb/core/driver.c:usb_device_match().
#
# Drivers are spawned by xhcid's attach_device() after device enumeration
# completes (dev_desc available, port_state populated). For each interface
# on the device, xhcid matches class+subclass against this table and spawns
# the corresponding driver with $SCHEME / $PORT / $IF_NUM / $IF_PROTO
# template variables.
#
# subclass = -1 means "match any subclass" (wildcard).
[[drivers]]
name = "USB Mass Storage"
class = 8
subclass = 6 # SCSI transparent command set
command = ["usbscsid", "$SCHEME", "$PORT", "$IF_PROTO"]
[[drivers]]
name = "USB Hub"
class = 9
subclass = -1
command = ["usbhubd", "$SCHEME", "$PORT", "$IF_NUM"]
[[drivers]]
name = "USB HID"
class = 3
subclass = -1
command = ["usbhidd", "$SCHEME", "$PORT", "$IF_NUM"]
[[drivers]]
name = "USB CDC ACM"
class = 2
subclass = 2 # Abstract Control Model
command = ["redbear-acmd", "$SCHEME", "$PORT", "$IF_NUM"]
[[drivers]]
name = "USB CDC ECM"
class = 2
subclass = 6 # Ethernet Control Model
command = ["redbear-ecmd", "$SCHEME", "$PORT", "$IF_NUM"]
[[drivers]]
name = "USB Audio Class"
class = 1
subclass = -1
command = ["redbear-usbaudiod", "$SCHEME", "$PORT", "$IF_NUM"]
[[drivers]]
name = "FTDI USB Serial"
class = 255 # Vendor-specific
subclass = -1
command = ["redbear-ftdi", "$SCHEME", "$PORT", "$IF_NUM"]