/** @file\r
The module is used to implement Usb Io PPI interfaces.\r
\r
-Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved. <BR>\r
- \r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>\r
+\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions\r
of the BSD License which accompanies this distribution. The\r
\r
/**\r
Submits control transfer to a target USB device.\r
- \r
+\r
@param PeiServices The pointer of EFI_PEI_SERVICES.\r
@param This The pointer of PEI_USB_IO_PPI.\r
@param Request USB device request to send.\r
PeiUsbDev->UsbHcPpi,\r
PeiUsbDev->DeviceAddress,\r
PeiUsbDev->DeviceSpeed,\r
- PeiUsbDev->MaxPacketSize0,\r
+ (UINT8) PeiUsbDev->MaxPacketSize0,\r
Request,\r
Direction,\r
Data,\r
}\r
}\r
\r
+ DEBUG ((EFI_D_INFO, "PeiUsbControlTransfer: %r\n", Status));\r
return Status;\r
}\r
\r
/**\r
Submits bulk transfer to a bulk endpoint of a USB device.\r
- \r
+\r
@param PeiServices The pointer of EFI_PEI_SERVICES.\r
@param This The pointer of PEI_USB_IO_PPI.\r
@param DeviceEndpoint Endpoint number and its direction in bit 7.\r
- @param Data A pointer to the buffer of data to transmit \r
+ @param Data A pointer to the buffer of data to transmit\r
from or receive into.\r
@param DataLength The lenght of the data buffer.\r
@param Timeout Indicates the maximum time, in millisecond, which the\r
PeiUsbDev->DataToggle = (UINT16) (PeiUsbDev->DataToggle ^ (1 << EndpointIndex));\r
}\r
\r
+ DEBUG ((EFI_D_INFO, "PeiUsbBulkTransfer: %r\n", Status));\r
return Status;\r
}\r
\r