| 1 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc |
| 2 |
Date: June 2017 |
| 3 |
Contact: Lu Baolu <[email protected]> |
| 4 |
Description: |
| 5 |
xHCI compatible USB host controllers (i.e. super-speed |
| 6 |
USB3 controllers) are often implemented with the Debug |
| 7 |
Capability (DbC). It can present a debug device which |
| 8 |
is fully compliant with the USB framework and provides |
| 9 |
the equivalent of a very high performance full-duplex |
| 10 |
serial link for debug purpose. |
| 11 |
|
| 12 |
The DbC debug device shares a root port with xHCI host. |
| 13 |
When the DbC is enabled, the root port will be assigned |
| 14 |
to the Debug Capability. Otherwise, it will be assigned |
| 15 |
to xHCI. |
| 16 |
|
| 17 |
Writing "enable" to this attribute will enable the DbC |
| 18 |
functionality and the shared root port will be assigned |
| 19 |
to the DbC device. Writing "disable" to this attribute |
| 20 |
will disable the DbC functionality and the shared root |
| 21 |
port will roll back to the xHCI. |
| 22 |
|
| 23 |
Reading this attribute gives the state of the DbC. It |
| 24 |
can be one of the following states: disabled, enabled, |
| 25 |
initialized, connected, configured and stalled. |
| 26 |
|
| 27 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_idVendor |
| 28 |
Date: March 2023 |
| 29 |
Contact: Mathias Nyman <[email protected]> |
| 30 |
Description: |
| 31 |
This dbc_idVendor attribute lets us change the idVendor field |
| 32 |
presented in the USB device descriptor by this xhci debug |
| 33 |
device. |
| 34 |
Value can only be changed while debug capability (DbC) is in |
| 35 |
disabled state to prevent USB device descriptor change while |
| 36 |
connected to a USB host. |
| 37 |
The default value is 0x1d6b (Linux Foundation). |
| 38 |
It can be any 16-bit integer. |
| 39 |
|
| 40 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_idProduct |
| 41 |
Date: March 2023 |
| 42 |
Contact: Mathias Nyman <[email protected]> |
| 43 |
Description: |
| 44 |
This dbc_idProduct attribute lets us change the idProduct field |
| 45 |
presented in the USB device descriptor by this xhci debug |
| 46 |
device. |
| 47 |
Value can only be changed while debug capability (DbC) is in |
| 48 |
disabled state to prevent USB device descriptor change while |
| 49 |
connected to a USB host. |
| 50 |
The default value is 0x0010. It can be any 16-bit integer. |
| 51 |
|
| 52 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_bcdDevice |
| 53 |
Date: March 2023 |
| 54 |
Contact: Mathias Nyman <[email protected]> |
| 55 |
Description: |
| 56 |
This dbc_bcdDevice attribute lets us change the bcdDevice field |
| 57 |
presented in the USB device descriptor by this xhci debug |
| 58 |
device. |
| 59 |
Value can only be changed while debug capability (DbC) is in |
| 60 |
disabled state to prevent USB device descriptor change while |
| 61 |
connected to a USB host. |
| 62 |
The default value is 0x0010. (device rev 0.10) |
| 63 |
It can be any 16-bit integer. |
| 64 |
|
| 65 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_bInterfaceProtocol |
| 66 |
Date: March 2023 |
| 67 |
Contact: Mathias Nyman <[email protected]> |
| 68 |
Description: |
| 69 |
This attribute lets us change the bInterfaceProtocol field |
| 70 |
presented in the USB Interface descriptor by the xhci debug |
| 71 |
device. |
| 72 |
Value can only be changed while debug capability (DbC) is in |
| 73 |
disabled state to prevent USB descriptor change while |
| 74 |
connected to a USB host. |
| 75 |
The default value is 1 (GNU Remote Debug command). |
| 76 |
Other permissible value is 0 which is for vendor defined debug |
| 77 |
target. |
| 78 |
|
| 79 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_poll_interval_ms |
| 80 |
Date: February 2024 |
| 81 |
Contact: Mathias Nyman <[email protected]> |
| 82 |
Description: |
| 83 |
This attribute adjust the polling interval used to check for |
| 84 |
DbC events. Unit is milliseconds. Accepted values range from 0 |
| 85 |
up to 5000. The default value is 64 ms. |
| 86 |
This polling interval is used while DbC is enabled but has no |
| 87 |
active data transfers. |
| 88 |
|
| 89 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_serial |
| 90 |
Date: January 2026 |
| 91 |
Contact: Łukasz Bartosik <[email protected]> |
| 92 |
Description: |
| 93 |
The dbc_serial attribute allows to change the serial number |
| 94 |
string descriptor presented by the debug device when a host |
| 95 |
requests a string descriptor with iSerialNumber index. |
| 96 |
Index is found in the iSerialNumber field in the device |
| 97 |
descriptor. |
| 98 |
Value can only be changed while debug capability (DbC) is in |
| 99 |
disabled state to prevent USB device descriptor change while |
| 100 |
connected to a USB host. |
| 101 |
The default value is "0001". |
| 102 |
The field length can be from 1 to 126 characters. |
| 103 |
|
| 104 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_product |
| 105 |
Date: January 2026 |
| 106 |
Contact: Łukasz Bartosik <[email protected]> |
| 107 |
Description: |
| 108 |
The dbc_product attribute allows to change the product string |
| 109 |
descriptor presented by the debug device when a host requests |
| 110 |
a string descriptor with iProduct index. |
| 111 |
Index is found in the iProduct field in the device descriptor. |
| 112 |
Value can only be changed while debug capability (DbC) is in |
| 113 |
disabled state to prevent USB device descriptor change while |
| 114 |
connected to a USB host. |
| 115 |
The default value is "Linux USB Debug Target". |
| 116 |
The field length can be from 1 to 126 characters. |
| 117 |
|
| 118 |
What: /sys/bus/pci/drivers/xhci_hcd/.../dbc_manufacturer |
| 119 |
Date: January 2026 |
| 120 |
Contact: Łukasz Bartosik <[email protected]> |
| 121 |
Description: |
| 122 |
The dbc_manufacturer attribute allows to change the manufacturer |
| 123 |
string descriptor presented by the debug device when a host |
| 124 |
requests a string descriptor with iManufacturer index. |
| 125 |
Value can only be changed while debug capability (DbC) is in |
| 126 |
disabled state to prevent USB device descriptor change while |
| 127 |
connected to a USB host. |
| 128 |
The default value is "Linux Foundation". |
| 129 |
The field length can be from 1 to 126 characters. |