mirror of
https://github.com/acidanthera/audk.git
synced 2025-08-18 16:18:12 +02:00
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>
26 lines
698 B
C
26 lines
698 B
C
/** @file
|
|
|
|
Common header file shared by all source files.
|
|
|
|
This file includes package header files, library classes and protocol, PPI & GUID definitions.
|
|
|
|
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
|
Copyright (c) 2024, American Megatrends International LLC. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
**/
|
|
|
|
#ifndef _UEFI_USB_LIB_INTERNAL_H_
|
|
#define _UEFI_USB_LIB_INTERNAL_H_
|
|
|
|
#include <Uefi.h>
|
|
|
|
#include <Library/UefiUsbLib.h>
|
|
#include <Library/BaseMemoryLib.h>
|
|
#include <Library/DebugLib.h>
|
|
#include <Library/PcdLib.h>
|
|
#include <Library/UefiBootServicesTableLib.h>
|
|
|
|
#include <IndustryStandard/Usb.h>
|
|
|
|
#endif
|