summaryrefslogtreecommitdiff
path: root/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
diff options
context:
space:
mode:
authorOleg Ilyasov <olegi@ami.com>2024-12-09 23:57:25 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-12-14 02:56:10 +0300
commit1a440d96387bbbf04c24ef024e0bc19e99cd849f (patch)
tree9d2fc8b06cac2b03d4ffbd83f3e8d1c0778ca09f /BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
parentc7354e9c84a21fd64220cd6c258bd3dc0f5577b4 (diff)
downloadedk2-1a440d96387bbbf04c24ef024e0bc19e99cd849f.tar.xz
Retrieve the USB class specific data from the configuration descriptor
If USB device reports class specific descriptors, it is currently the job of device driver to parse the configuration to find the class specific data. The new library functions parse the configuration descriptor and return class specific interface and class specific endpoint descriptors. Also, these new functions allow to retrieve the data from non-default alternate settings without performing a switch to this setting. Switching to the alternate setting currently implies the execution of UsbSetInterface function that performs USB control trnasfer. In some cases this switch is not desirable so the new functions UsbGetInterfaceDescriptorSetting and UsbGetEndpointDescriptorSetting come in handy. Signed-off-by: Oleg Ilyasov <olegi@ami.com>
Diffstat (limited to 'BaseTools/Source/Python/Ecc/CodeFragmentCollector.py')
0 files changed, 0 insertions, 0 deletions