UsbStatus\r
);\r
//\r
- // If the request completed sucessfully and the Direction of the request is\r
+ // If the request completed successfully and the Direction of the request is\r
// EfiUsbDataIn or EfiUsbDataOut, then make sure the actual number of bytes\r
- // transfered is the same as the number of bytes requested. If a different\r
- // number of bytes were transfered, then return EFI_DEVICE_ERROR.\r
+ // transferred is the same as the number of bytes requested. If a different\r
+ // number of bytes were transferred, then return EFI_DEVICE_ERROR.\r
//\r
if (!EFI_ERROR (Status)) {\r
if (Direction != EfiUsbNoData && DataLength != RequestedDataLength) {\r
the request.\r
@param PollInterval The interval to poll the transfer result, (in ms).\r
@param DataLength The length of perodic data transfer.\r
- @param Callback The function to call periodicaly when transfer is\r
+ @param Callback The function to call periodically when transfer is\r
ready.\r
@param Context The context to the callback.\r
\r
@param DeviceEndpoint The device endpoint.\r
@param Data The data to transfer.\r
@param DataLength The length of perodic data transfer.\r
- @param IsochronousCallBack The function to call periodicaly when transfer is\r
+ @param IsochronousCallBack The function to call periodically when transfer is\r
ready.\r
@param Context The context to the callback.\r
\r
if (IsDevicePathEnd (RemainingDevicePath)) {\r
//\r
// If RemainingDevicePath is the End of Device Path Node,\r
- // skip enumerate any device and return EFI_SUCESSS\r
+ // skip enumerate any device and return EFI_SUCCESS\r
//\r
return EFI_SUCCESS;\r
}\r
\r
//\r
// Stands for the real USB device. Each device may\r
-// has several seperately working interfaces.\r
+// has several separately working interfaces.\r
//\r
struct _USB_DEVICE {\r
USB_BUS *Bus;\r
// USB Bus driver need to control the recursive connect policy of the bus, only those wanted\r
// usb child device will be recursively connected.\r
//\r
- // WantedUsbIoDPList tracks the Usb child devices which user want to recursivly fully connecte,\r
- // every wanted child device is stored in a item of the WantedUsbIoDPList, whose structrure is\r
+ // WantedUsbIoDPList tracks the Usb child devices which user want to recursively fully connecte,\r
+ // every wanted child device is stored in a item of the WantedUsbIoDPList, whose structure is\r
// DEVICE_PATH_LIST_ITEM\r
//\r
LIST_ENTRY WantedUsbIoDPList;\r
Check whether a usb child device is the wanted device in a bus.\r
\r
@param Bus The Usb bus's private data pointer.\r
- @param UsbIf The usb child device inferface.\r
+ @param UsbIf The usb child device interface.\r
\r
@retval True If a usb child device is the wanted device in a bus.\r
@retval False If a usb child device is *NOT* the wanted device in a bus.\r
);\r
\r
/**\r
- Recursively connnect every wanted usb child device to ensure they all fully connected.\r
+ Recursively connect every wanted usb child device to ensure they all fully connected.\r
Check all the child Usb IO handles in this bus, recursively connecte if it is wanted usb child device.\r
\r
@param UsbBusId Point to EFI_USB_BUS_PROTOCOL interface.\r
the request.\r
@param PollInterval The interval to poll the transfer result, (in ms).\r
@param DataLength The length of perodic data transfer.\r
- @param Callback The function to call periodicaly when transfer is\r
+ @param Callback The function to call periodically when transfer is\r
ready.\r
@param Context The context to the callback.\r
\r
@param DeviceEndpoint The device endpoint.\r
@param Data The data to transfer.\r
@param DataLength The length of perodic data transfer.\r
- @param IsochronousCallBack The function to call periodicaly when transfer is\r
+ @param IsochronousCallBack The function to call periodically when transfer is\r
ready.\r
@param Context The context to the callback.\r
\r
\r
//\r
// After port is reset, hub establishes a signal path between\r
- // the device and host (DEFALUT state). Device's registers are\r
+ // the device and host (DEFAULT state). Device's registers are\r
// reset, use default address 0 (host enumerates one device at\r
// a time) , and ready to respond to control transfer at EP 0.\r
//\r
// OK, actually something is changed, save the change map\r
// then signal the HUB to do enumeration. This is a good\r
// practise since UsbOnHubInterrupt is called in the context\r
- // of host contrller's AsyncInterrupt monitor.\r
+ // of host controller's AsyncInterrupt monitor.\r
//\r
HubIf->ChangeMap = AllocateZeroPool (DataLength);\r
\r
\r
//\r
// OK, set IsHub to TRUE. Now usb bus can handle this device\r
- // as a working HUB. If failed eariler, bus driver will not\r
+ // as a working HUB. If failed earlier, bus driver will not\r
// recognize it as a hub. Other parts of the bus should be able\r
// to work.\r
//\r
\r
#pragma pack(1)\r
//\r
-// Hub descriptor, the last two fields are of variable lenght.\r
+// Hub descriptor, the last two fields are of variable length.\r
//\r
typedef struct {\r
UINT8 Length;\r
// If connect class policy, determine whether to create device handle by the five fields\r
// in class device path node.\r
//\r
- // In addtion, hub interface is always matched for this policy.\r
+ // In addition, hub interface is always matched for this policy.\r
//\r
if ((ActIfDesc->InterfaceClass == USB_HUB_CLASS_CODE) &&\r
(ActIfDesc->InterfaceSubClass == USB_HUB_SUBCLASS_CODE)) {\r
} else {\r
//\r
// If RemainingDevicePath is the End of Device Path Node,\r
- // skip enumerate any device and return EFI_SUCESSS\r
+ // skip enumerate any device and return EFI_SUCCESS\r
//\r
return EFI_SUCCESS;\r
}\r
Check whether a usb child device is the wanted device in a bus.\r
\r
@param Bus The Usb bus's private data pointer.\r
- @param UsbIf The usb child device inferface.\r
+ @param UsbIf The usb child device interface.\r
\r
@retval True If a usb child device is the wanted device in a bus.\r
@retval False If a usb child device is *NOT* the wanted device in a bus.\r
}\r
\r
/**\r
- Recursively connnect every wanted usb child device to ensure they all fully connected.\r
+ Recursively connect every wanted usb child device to ensure they all fully connected.\r
Check all the child Usb IO handles in this bus, recursively connecte if it is wanted usb child device.\r
\r
@param UsbBusId Point to EFI_USB_BUS_PROTOCOL interface.\r
@param UsbResult The result of transfer.\r
\r
@retval EFI_SUCCESS The control transfer finished without error.\r
- @retval Others The control transfer failed, reason returned in UsbReslt.\r
+ @retval Others The control transfer failed, reason returned in UsbResult.\r
\r
**/\r
EFI_STATUS\r
#define MAXBYTES 8\r
#pragma pack(1)\r
//\r
-// Hub descriptor, the last two fields are of variable lenght.\r
+// Hub descriptor, the last two fields are of variable length.\r
//\r
typedef struct {\r
UINT8 Length;\r
/** @file\r
-Common Libarary for PEI USB\r
+Common Library for PEI USB\r
\r
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>\r
\r
/** @file\r
-Common Libarary for PEI USB\r
+Common Library for PEI USB\r
\r
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved. <BR>\r
\r
@param DeviceEndpoint Endpoint number and its direction in bit 7.\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 DataLength The length of the data buffer.\r
@param Timeout Indicates the maximum time, in millisecond, which the\r
transfer is allowed to complete. If Timeout is 0, then\r
the caller must wait for the function to be completed\r
@param DeviceEndpoint Endpoint number and its direction in bit 7.\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 DataLength The length of the data buffer.\r
@param Timeout Indicates the maximum time, in millisecond, which the\r
transfer is allowed to complete. If Timeout is 0, then\r
the caller must wait for the function to be completed\r