MdeModulePkg UsbBusDxe: Remove redundant functions
The functions that are never called have been removed. They are UsbHubCtrlSetHubFeature,UsbHubCtrlResetTT,UsbHcReset, UsbHcAsyncIsochronousTransfer,UsbHcGetState,UsbHcSetState and UsbHcIsochronousTransfer. https://bugzilla.tianocore.org/show_bug.cgi?id=1062 Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: shenglei <shenglei.zhang@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
This commit is contained in:
@@ -317,74 +317,6 @@ UsbHubCtrlGetPortStatus (
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Usb hub control transfer to reset the TT (Transaction Transaltor).
|
||||
|
||||
@param HubDev The hub device.
|
||||
@param Port The port of the hub.
|
||||
|
||||
@retval EFI_SUCCESS The TT of the hub is reset.
|
||||
@retval Others Failed to reset the port.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
UsbHubCtrlResetTT (
|
||||
IN USB_DEVICE *HubDev,
|
||||
IN UINT8 Port
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = UsbCtrlRequest (
|
||||
HubDev,
|
||||
EfiUsbNoData,
|
||||
USB_REQ_TYPE_CLASS,
|
||||
USB_HUB_TARGET_HUB,
|
||||
USB_HUB_REQ_RESET_TT,
|
||||
0,
|
||||
(UINT16) (Port + 1),
|
||||
NULL,
|
||||
0
|
||||
);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Usb hub control transfer to set the hub feature.
|
||||
|
||||
@param HubDev The hub device.
|
||||
@param Feature The feature to set.
|
||||
|
||||
@retval EFI_SUCESS The feature is set for the hub.
|
||||
@retval Others Failed to set the feature.
|
||||
|
||||
**/
|
||||
EFI_STATUS
|
||||
UsbHubCtrlSetHubFeature (
|
||||
IN USB_DEVICE *HubDev,
|
||||
IN UINT8 Feature
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = UsbCtrlRequest (
|
||||
HubDev,
|
||||
EfiUsbNoData,
|
||||
USB_REQ_TYPE_CLASS,
|
||||
USB_HUB_TARGET_HUB,
|
||||
USB_HUB_REQ_SET_FEATURE,
|
||||
Feature,
|
||||
0,
|
||||
NULL,
|
||||
0
|
||||
);
|
||||
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Usb hub control transfer to set the port feature.
|
||||
|
||||
|
Reference in New Issue
Block a user