X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Nt32Pkg%2FWinNtSerialIoDxe%2FComponentName.c;h=706b8a8d76f84ac44213cae5684b4f0973159569;hb=d69e8a7b79bdfb282f35616d3030f02934d6271e;hp=2b4b31a25a7810cb2b7f9555b8bdacc8978a6f0c;hpb=04369cd8fc2523bd45dccb1f615f97c950ed3c63;p=mirror_edk2.git diff --git a/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c b/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c index 2b4b31a25a..706b8a8d76 100644 --- a/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c +++ b/Nt32Pkg/WinNtSerialIoDxe/ComponentName.c @@ -1,7 +1,7 @@ -/*++ +/**@file -Copyright (c) 2006, Intel Corporation -All rights reserved. This program and the accompanying materials +Copyright (c) 2006, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -15,7 +15,7 @@ Module Name: Abstract: ---*/ +**/ #include "WinNtSerialIo.h" @@ -42,7 +42,7 @@ Abstract: languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified - in RFC 3066 or ISO 639-2 language code format. + in RFC 4646 or ISO 639-2 language code format. @param DriverName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -107,7 +107,7 @@ WinNtSerialIoComponentNameGetDriverName ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. + RFC 4646 or ISO 639-2 language code format. @param ControllerName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -152,23 +152,23 @@ WinNtSerialIoComponentNameGetControllerName ( // // EFI Component Name Protocol // -EFI_COMPONENT_NAME_PROTOCOL gWinNtSerialIoComponentName = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME_PROTOCOL gWinNtSerialIoComponentName = { WinNtSerialIoComponentNameGetDriverName, WinNtSerialIoComponentNameGetControllerName, "eng" - }; +}; // // EFI Component Name 2 Protocol // -EFI_COMPONENT_NAME2_PROTOCOL gWinNtSerialIoComponentName2 = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_COMPONENT_NAME2_PROTOCOL gWinNtSerialIoComponentName2 = { (EFI_COMPONENT_NAME2_GET_DRIVER_NAME) WinNtSerialIoComponentNameGetDriverName, (EFI_COMPONENT_NAME2_GET_CONTROLLER_NAME) WinNtSerialIoComponentNameGetControllerName, "en" - }; +}; -static EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = { +GLOBAL_REMOVE_IF_UNREFERENCED EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = { { "eng;en", L"Windows Serial I/O Driver" }, { NULL , NULL } }; @@ -193,7 +193,7 @@ static EFI_UNICODE_STRING_TABLE mWinNtSerialIoDriverNameTable[] = { languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified - in RFC 3066 or ISO 639-2 language code format. + in RFC 4646 or ISO 639-2 language code format. @param DriverName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -266,7 +266,7 @@ WinNtSerialIoComponentNameGetDriverName ( languages specified in SupportedLanguages. The number of languages supported by a driver is up to the driver writer. Language is specified in - RFC 3066 or ISO 639-2 language code format. + RFC 4646 or ISO 639-2 language code format. @param ControllerName[out] A pointer to the Unicode string to return. This Unicode string is the name of the @@ -345,7 +345,7 @@ WinNtSerialIoComponentNameGetControllerName ( Status = gBS->OpenProtocol ( ChildHandle, &gEfiSerialIoProtocolGuid, - &SerialIo, + (VOID **) &SerialIo, gWinNtSerialIoDriverBinding.DriverBindingHandle, ChildHandle, EFI_OPEN_PROTOCOL_GET_PROTOCOL