/** @file\r
Definitions and prototypes for DebugPort driver.\r
\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
http://opensource.org/licenses/bsd-license.php\r
//\r
// local type definitions\r
//\r
-#define DEBUGPORT_DEVICE_SIGNATURE EFI_SIGNATURE_32 ('D', 'B', 'G', 'P')\r
+#define DEBUGPORT_DEVICE_SIGNATURE SIGNATURE_32 ('D', 'B', 'G', 'P')\r
\r
//\r
// Device structure used by driver\r
UINT32 Signature;\r
EFI_HANDLE DriverBindingHandle;\r
EFI_HANDLE DebugPortDeviceHandle;\r
- VOID *DebugPortVariable;\r
\r
EFI_DEVICE_PATH_PROTOCOL *DebugPortDevicePath;\r
EFI_DEBUGPORT_PROTOCOL DebugPortInterface;\r
#define IS_UART_DEVICEPATH(dp) (DevicePathType (dp) == MESSAGING_DEVICE_PATH && DevicePathSubType (dp) == MSG_UART_DP)\r
\r
/**\r
- Debug Port Driver entry pointo. \r
+ Debug Port Driver entry point.\r
\r
Reads DebugPort variable to determine what device and settings to use as the\r
debug port. Binds exclusively to SerialIo. Reverts to defaults if no variable\r
is found.\r
\r
- @param[in] ImageHandle The firmware allocated handle for the EFI image. \r
+ @param[in] ImageHandle The firmware allocated handle for the EFI image.\r
@param[in] SystemTable A pointer to the EFI System Table.\r
- \r
+\r
@retval EFI_SUCCESS The entry point is executed successfully.\r
@retval EFI_OUT_OF_RESOURCES Fails to allocate memory for device.\r
@retval other Some error occurs when executing this entry point.\r
);\r
\r
/**\r
- Checks to see if there's not already a DebugPort interface somewhere. \r
+ Checks to see if there's not already a DebugPort interface somewhere.\r
\r
If there's a DEBUGPORT variable, the device path must match exactly. If there's\r
no DEBUGPORT variable, then device path is not checked and does not matter.\r
\r
@retval EFI_SUCCESS This driver is added to ControllerHandle.\r
@retval EFI_OUT_OF_RESOURCES Fails to allocate memory for device.\r
- @retval others Some error occurs. \r
+ @retval others Some error occurs.\r
\r
**/\r
EFI_STATUS\r
languages specified in SupportedLanguages. The\r
number of languages supported by a driver is up\r
to the driver writer. Language is specified\r
- in RFC 3066 or ISO 639-2 language code format.\r
+ in RFC 4646 or ISO 639-2 language code format.\r
\r
@param DriverName[out] A pointer to the Unicode string to return.\r
This Unicode string is the name of the\r
languages specified in SupportedLanguages. The\r
number of languages supported by a driver is up\r
to the driver writer. Language is specified in\r
- RFC 3066 or ISO 639-2 language code format.\r
+ RFC 4646 or ISO 639-2 language code format.\r
\r
@param ControllerName[out] A pointer to the Unicode string to return.\r
This Unicode string is the name of the\r
driver specified by This was returned in\r
DriverName.\r
\r
- @retval EFI_INVALID_PARAMETER ControllerHandle is not a valid EFI_HANDLE.\r
+ @retval EFI_INVALID_PARAMETER ControllerHandle is NULL.\r
\r
@retval EFI_INVALID_PARAMETER ChildHandle is not NULL and it is not a valid\r
EFI_HANDLE.\r
\r
The port itself should be fine since it was set up during initialization.\r
\r
- @param This Protocol instance pointer. \r
+ @param This Protocol instance pointer.\r
\r
@return EFI_SUCCESS Always.\r
\r
On output, the amount of data actually written.\r
@param Buffer Pointer to buffer to read.\r
\r
- @retval EFI_SUCCESS \r
- @retval others \r
+ @retval EFI_SUCCESS\r
+ @retval others\r
\r
**/\r
EFI_STATUS\r
DebugPort interface\r
@retval EFI_DEVICE_ERROR A hardware failure occured... (from SerialIo)\r
\r
-**/ \r
+**/\r
EFI_STATUS\r
EFIAPI\r
DebugPortPoll (\r