From d18d8a1d0e370f8ce6ccc2725f4170586d457e53 Mon Sep 17 00:00:00 2001 From: jljusten Date: Tue, 28 Jun 2011 16:50:26 +0000 Subject: EmulatorPkg: Remove all trailing whitespace Signed-off-by: jljusten git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11919 6f19259b-4bc3-4df7-8a09-765794883524 --- .../MiscBaseBoardManufacturerData.c | 18 +++++------ .../MiscBaseBoardManufacturerFunction.c | 26 ++++++++-------- .../MiscSubClassPlatformDxe/MiscBiosVendorData.c | 18 +++++------ .../MiscBiosVendorFunction.c | 24 +++++++-------- .../MiscBootInformationData.c | 18 +++++------ .../MiscBootInformationFunction.c | 10 +++--- .../MiscChassisManufacturerData.c | 18 +++++------ .../MiscChassisManufacturerFunction.c | 18 +++++------ .../MiscSubClassPlatformDxe/MiscDevicePath.h | 20 ++++++------ .../MiscNumberOfInstallableLanguagesData.c | 18 +++++------ .../MiscNumberOfInstallableLanguagesFunction.c | 18 +++++------ .../MiscSubClassPlatformDxe/MiscOemStringData.c | 20 ++++++------ .../MiscOemStringFunction.c | 10 +++--- .../MiscPortInternalConnectorDesignatorData.c | 18 +++++------ .../MiscPortInternalConnectorDesignatorFunction.c | 36 +++++++++++----------- .../MiscResetCapabilitiesData.c | 20 ++++++------ .../MiscResetCapabilitiesFunction.c | 14 ++++----- .../MiscSubClassPlatformDxe/MiscSubClassDriver.inf | 14 ++++----- .../MiscSubclassDriverDataTable.c | 24 +++++++-------- .../MiscSubclassDriverEntryPoint.c | 8 ++--- .../MiscSystemLanguageStringData.c | 18 +++++------ .../MiscSystemLanguageStringFunction.c | 12 ++++---- .../MiscSystemManufacturerData.c | 18 +++++------ .../MiscSystemManufacturerFunction.c | 34 ++++++++++---------- .../MiscSystemOptionStringData.c | 18 +++++------ .../MiscSystemOptionStringFunction.c | 10 +++--- .../MiscSystemSlotDesignationData.c | 20 ++++++------ .../MiscSystemSlotDesignationFunction.c | 16 +++++----- 28 files changed, 258 insertions(+), 258 deletions(-) (limited to 'EmulatorPkg/MiscSubClassPlatformDxe') diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerData.c index 52d120429f..d077092740 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscBaseBoardManufacturerData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerFunction.c index 04f5a1edc5..ce217fa263 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBaseBoardManufacturerFunction.c @@ -18,7 +18,7 @@ This function makes boot time changes to the contents of the MiscBaseBoardManufacturer (Type 2). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -109,37 +109,37 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBaseBoardManufacturer) // // Make handle chosen by smbios protocol.add automatically. // - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; // // Manu will be the 1st optional string following the formatted structure. - // - SmbiosRecord->Manufacturer = 1; + // + SmbiosRecord->Manufacturer = 1; // // ProductName will be the 2st optional string following the formatted structure. - // - SmbiosRecord->ProductName = 2; + // + SmbiosRecord->ProductName = 2; // // Version will be the 3rd optional string following the formatted structure. // - SmbiosRecord->Version = 3; + SmbiosRecord->Version = 3; // // SerialNumber will be the 4th optional string following the formatted structure. // - SmbiosRecord->SerialNumber = 4; + SmbiosRecord->SerialNumber = 4; // // AssertTag will be the 5th optional string following the formatted structure. // - SmbiosRecord->AssetTag = 5; + SmbiosRecord->AssetTag = 5; // // LocationInChassis will be the 6th optional string following the formatted structure. // - SmbiosRecord->LocationInChassis = 6; + SmbiosRecord->LocationInChassis = 6; SmbiosRecord->FeatureFlag = (*(BASE_BOARD_FEATURE_FLAGS*)&(ForType2InputData->BaseBoardFeatureFlags)); SmbiosRecord->ChassisHandle = 0; SmbiosRecord->BoardType = (UINT8)ForType2InputData->BaseBoardType; SmbiosRecord->NumberOfContainedObjectHandles = 0; - + OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1); // // Since we fill NumberOfContainedObjectHandles = 0 for simple, just after this filed to fill string @@ -156,9 +156,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBaseBoardManufacturer) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorData.c index b9a8cede83..48f08ffa91 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscBiosVendorData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorFunction.c index 6d64ef4632..7fdd47f599 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBiosVendorFunction.c @@ -25,9 +25,9 @@ @retval EFI_SUCCESS All parameters were valid and *Value & *Exponent have been set. @retval EFI_INVALID_PARAMETER Invalid parameter was found. - + **/ -EFI_STATUS +EFI_STATUS GetValueExponentBase2( IN OUT UINTN *Value, OUT UINTN *Exponent @@ -36,7 +36,7 @@ GetValueExponentBase2( if ((Value == NULL) || (Exponent == NULL)) { return EFI_INVALID_PARAMETER; } - + while ((*Value % 2) == 0) { *Value=*Value/2; (*Exponent)++; @@ -51,15 +51,15 @@ GetValueExponentBase2( @param Base2Data Pointer to Base2_Data - @retval EFI_SUCCESS Transform successfully. - @retval EFI_INVALID_PARAMETER Invalid parameter was found. + @retval EFI_SUCCESS Transform successfully. + @retval EFI_INVALID_PARAMETER Invalid parameter was found. **/ UINT16 Base2ToByteWith64KUnit ( IN EFI_EXP_BASE2_DATA *Base2Data ) -{ +{ UINT16 Value; UINT16 Exponent; @@ -109,11 +109,11 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor) } Version = (CHAR16 *) PcdGetPtr (PcdFirmwareVersionString); - if (StrLen (Version) > 0) { + if (StrLen (Version) > 0) { TokenToUpdate = STRING_TOKEN (STR_MISC_BIOS_VERSION); HiiSetString (mHiiHandle, TokenToUpdate, Version, NULL); } - + ReleaseDate = (CHAR16 *) PcdGetPtr (PcdFirmwareReleaseDateString); if (StrLen(ReleaseDate) > 0) { TokenToUpdate = STRING_TOKEN (STR_MISC_BIOS_RELEASE_DATE); @@ -140,7 +140,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor) if (DateStrLen > SMBIOS_STRING_MAX_LENGTH) { return EFI_UNSUPPORTED; } - + // // Two zeros following the last string. // @@ -156,7 +156,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor) // // Vendor will be the 1st optional string following the formatted structure. // - SmbiosRecord->Vendor = 1; + SmbiosRecord->Vendor = 1; // // Version will be the 2nd optional string following the formatted structure. // @@ -191,9 +191,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscBiosVendor) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationData.c index 0b7c57a8a7..1c184c856d 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscBootInformationData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c index 65c9792a93..98d6181501 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscBootInformationFunction.c @@ -20,7 +20,7 @@ This function makes boot time changes to the contents of the MiscBootInformation (Type 32). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -34,7 +34,7 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus) EFI_SMBIOS_HANDLE SmbiosHandle; SMBIOS_TABLE_TYPE32 *SmbiosRecord; EFI_MISC_BOOT_INFORMATION_STATUS* ForType32InputData; - + ForType32InputData = (EFI_MISC_BOOT_INFORMATION_STATUS *)RecordData; // @@ -55,7 +55,7 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus) // // Make handle chosen by smbios protocol.add automatically. // - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->BootStatus = (UINT8)ForType32InputData->BootInformationStatus; // @@ -63,9 +63,9 @@ MISC_SMBIOS_TABLE_FUNCTION(BootInformationStatus) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c index 795658bac6..8dfc848ff2 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscChassisManufacturerData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerFunction.c index fd1262b190..8e57fd5022 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscChassisManufacturerFunction.c @@ -19,7 +19,7 @@ This function makes boot time changes to the contents of the MiscChassisManufacturer (Type 3). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -91,24 +91,24 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscChassisManufacturer) // // Make handle chosen by smbios protocol.add automatically. // - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; // // Manu will be the 1st optional string following the formatted structure. - // - SmbiosRecord->Manufacturer = 1; + // + SmbiosRecord->Manufacturer = 1; SmbiosRecord->Type = (UINT8)ForType3InputData->ChassisType.ChassisType; // // Version will be the 2nd optional string following the formatted structure. // - SmbiosRecord->Version = 2; + SmbiosRecord->Version = 2; // // SerialNumber will be the 3rd optional string following the formatted structure. // - SmbiosRecord->SerialNumber = 3; + SmbiosRecord->SerialNumber = 3; // // AssertTag will be the 4th optional string following the formatted structure. // - SmbiosRecord->AssetTag = 4; + SmbiosRecord->AssetTag = 4; SmbiosRecord->BootupState = (UINT8)ForType3InputData->ChassisBootupState; SmbiosRecord->PowerSupplyState = (UINT8)ForType3InputData->ChassisPowerSupplyState; SmbiosRecord->ThermalState = (UINT8)ForType3InputData->ChassisThermalState; @@ -126,9 +126,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscChassisManufacturer) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscDevicePath.h b/EmulatorPkg/MiscSubClassPlatformDxe/MiscDevicePath.h index b1a9acfafd..0cd0e68c70 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscDevicePath.h +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscDevicePath.h @@ -1,13 +1,13 @@ /*++ - + 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: @@ -15,7 +15,7 @@ Module Name: Abstract: - Misc class required EFI Device Path definitions (Ports, slots & + Misc class required EFI Device Path definitions (Ports, slots & onboard devices) **/ @@ -33,7 +33,7 @@ Abstract: #define USB1_1_STR "ACPI(PNP0A03,0)/PCI(1D,0)." #define USB1_2_STR "ACPI(PNP0A03,0)/PCI(1D,1)." #define USB1_3_STR "ACPI(PNP0A03,0)/PCI(1D,2)." -#define USB2_1_STR "ACPI(PNP0A03,0)/PCI(1D,7)." +#define USB2_1_STR "ACPI(PNP0A03,0)/PCI(1D,7)." */ // diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesData.c index 88d9d0fb4b..e56208ae4a 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscNumberOfInstallableLanguagesData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c index 9bd7f4da6a..3c3a5f3ed7 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscNumberOfInstallableLanguagesFunction.c @@ -39,7 +39,7 @@ CurrentLanguageMatch ( CHAR8 *MatchLang; CHAR8 *EndMatchLang; UINTN CompareLength; - + Languages = HiiGetSupportedLanguages (HiiHandle); if (Languages == NULL) { return; @@ -61,10 +61,10 @@ CurrentLanguageMatch ( CompareLength = AsciiStrLen (BestLanguage); for (MatchLang = Languages, (*Offset) = 0; MatchLang != '\0'; (*Offset)++) { // - // Seek to the end of current match language. + // Seek to the end of current match language. // for (EndMatchLang = MatchLang; *EndMatchLang != '\0' && *EndMatchLang != ';'; EndMatchLang++); - + if ((EndMatchLang == MatchLang + CompareLength) && AsciiStrnCmp(MatchLang, BestLanguage, CompareLength) == 0) { // // Find the current best Language in the supported languages @@ -144,7 +144,7 @@ GetSupportedLanguageNumber ( CHAR8 *Languages; CHAR8 *LanguageString; UINT16 LangNumber; - + Languages = HiiGetSupportedLanguages (HiiHandle); if (Languages == NULL) { return 0; @@ -186,7 +186,7 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages) EFI_SMBIOS_HANDLE SmbiosHandle; SMBIOS_TABLE_TYPE13 *SmbiosRecord; EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES *ForType13InputData; - + ForType13InputData = (EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES *)RecordData; // @@ -195,7 +195,7 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages) if (RecordData == NULL) { return EFI_INVALID_PARAMETER; } - + ForType13InputData->NumberOfInstallableLanguages = GetSupportedLanguageNumber (mHiiHandle); // @@ -216,7 +216,7 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages) // // Make handle chosen by smbios protocol.add automatically. // - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->InstallableLanguages = (UINT8)ForType13InputData->NumberOfInstallableLanguages; SmbiosRecord->Flags = (UINT8)ForType13InputData->LanguageFlags.AbbreviatedLanguageFormat; @@ -228,9 +228,9 @@ MISC_SMBIOS_TABLE_FUNCTION(NumberOfInstallableLanguages) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringData.c index 1d0781586f..19c7416a44 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: - + MiscOemStringData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c index 94fc71c231..f3291828c3 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscOemStringFunction.c @@ -18,7 +18,7 @@ This function makes boot time changes to the contents of the MiscOemString (Type 11). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -59,8 +59,8 @@ MISC_SMBIOS_TABLE_FUNCTION(OemString) SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE11); // // Make handle chosen by smbios protocol.add automatically. - // - SmbiosRecord->Hdr.Handle = 0; + // + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->StringCount = 1; OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1); UnicodeStrToAsciiStr(OemStr, OptionalStrStart); @@ -70,9 +70,9 @@ MISC_SMBIOS_TABLE_FUNCTION(OemString) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorData.c index 7d511e1912..0b2a22087e 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscPortInternalConnectorDesignatorData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorFunction.c index 89c8815913..e137887803 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscPortInternalConnectorDesignatorFunction.c @@ -1,19 +1,19 @@ /*++ - + Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscPortInternalConnectorDesignatorFunction.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. @@ -69,7 +69,7 @@ Returns: { CHAR8 *OptionalStrStart; UINTN InternalRefStrLen; - UINTN ExternalRefStrLen; + UINTN ExternalRefStrLen; EFI_STRING InternalRef; EFI_STRING ExternalRef; STRING_REF TokenForInternal; @@ -78,7 +78,7 @@ Returns: SMBIOS_TABLE_TYPE8 *SmbiosRecord; EFI_SMBIOS_HANDLE SmbiosHandle; EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR *ForType8InputData; - + ForType8InputData = (EFI_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR *)RecordData; // // First check for invalid parameters. @@ -89,8 +89,8 @@ Returns: TokenForInternal = 0; TokenForExternal = 0; - - switch (ForType8InputData->PortInternalConnectorDesignator) { + + switch (ForType8InputData->PortInternalConnectorDesignator) { case STR_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR: TokenForInternal = STRING_TOKEN (STR_MISC_PORT_INTERNAL_CONNECTOR_DESIGNATOR); @@ -147,13 +147,13 @@ Returns: // // Make handle chosen by smbios protocol.add automatically. // - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->InternalReferenceDesignator = 1; SmbiosRecord->InternalConnectorType = (UINT8)ForType8InputData->PortInternalConnectorType; SmbiosRecord->ExternalReferenceDesignator = 2; SmbiosRecord->ExternalConnectorType = (UINT8)ForType8InputData->PortExternalConnectorType; SmbiosRecord->PortType = (UINT8)ForType8InputData->PortType; - + OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1); UnicodeStrToAsciiStr(InternalRef, OptionalStrStart); UnicodeStrToAsciiStr(ExternalRef, OptionalStrStart + InternalRefStrLen + 1); @@ -163,9 +163,9 @@ Returns: // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesData.c index f591a2e547..ca9ee8caca 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: - + MiscResetCapabilitiesData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesFunction.c index 8303c5a29b..33a43a3e64 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscResetCapabilitiesFunction.c @@ -18,7 +18,7 @@ This function makes boot time changes to the contents of the MiscOemString (Type 11). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -31,7 +31,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscResetCapabilities) EFI_SMBIOS_HANDLE SmbiosHandle; SMBIOS_TABLE_TYPE23 *SmbiosRecord; EFI_MISC_RESET_CAPABILITIES *ForType23InputData; - + ForType23InputData = (EFI_MISC_RESET_CAPABILITIES *)RecordData; // @@ -52,11 +52,11 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscResetCapabilities) SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE23); // // Make handle chosen by smbios protocol.add automatically. - // - SmbiosRecord->Hdr.Handle = 0; + // + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->Capabilities = *(UINT8*)&(ForType23InputData->ResetCapabilities); SmbiosRecord->ResetCount = (UINT16)ForType23InputData->ResetCount; - SmbiosRecord->ResetLimit = (UINT16)ForType23InputData->ResetLimit; + SmbiosRecord->ResetLimit = (UINT16)ForType23InputData->ResetLimit; SmbiosRecord->TimerInterval = (UINT16)ForType23InputData->ResetTimerInterval; SmbiosRecord->Timeout = (UINT16)ForType23InputData->ResetTimeout; @@ -65,9 +65,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscResetCapabilities) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf index dd759851d7..cda0d276ee 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf @@ -3,7 +3,7 @@ # # Parses the MiscSubclassDataTable and reports any generated data to the DataHub. # All .uni file who tagged with "ToolCode="DUMMY"" in following file list is included by -# MiscSubclassDriver.uni file, the StrGather tool will expand MiscSubclassDriver.uni file +# MiscSubclassDriver.uni file, the StrGather tool will expand MiscSubclassDriver.uni file # and parse all .uni file. # Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
# @@ -38,18 +38,18 @@ MiscBiosVendor.uni MiscBiosVendorData.c MiscBiosVendorFunction.c - MiscBootInformationData.c + MiscBootInformationData.c MiscBootInformationFunction.c MiscChassisManufacturer.uni MiscChassisManufacturerData.c MiscChassisManufacturerFunction.c MiscNumberOfInstallableLanguagesData.c MiscNumberOfInstallableLanguagesFunction.c - MiscOemString.uni - MiscOemStringData.c - MiscOemStringFunction.c + MiscOemString.uni + MiscOemStringData.c + MiscOemStringFunction.c MiscPortInternalConnectorDesignator.uni - MiscPortInternalConnectorDesignatorData.c + MiscPortInternalConnectorDesignatorData.c MiscPortInternalConnectorDesignatorFunction.c MiscResetCapabilitiesData.c MiscResetCapabilitiesFunction.c @@ -95,7 +95,7 @@ [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareReleaseDateString gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString - gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLang + gEfiMdePkgTokenSpaceGuid.PcdUefiVariableDefaultPlatformLang gEmulatorPkgTokenSpaceGuid.PcdEmuMemorySize diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverDataTable.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverDataTable.c index cb71f7db50..d0be1cdca0 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverDataTable.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverDataTable.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscSubclassDriverDataTable.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. @@ -66,10 +66,10 @@ EFI_MISC_SMBIOS_DATA_TABLE mMiscSubclassDataTable[] = { MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscResetCapabilities, MiscResetCapabilities), MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION(SystemLanguageString, SystemLanguageString), MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscSystemManufacturer, MiscSystemManufacturer), - MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( SystemOptionString, SystemOptionString), - MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscSystemSlotDesignation, MiscSystemSlotDesignation), + MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( SystemOptionString, SystemOptionString), + MISC_SMBIOS_TABLE_ENTRY_DATA_AND_FUNCTION( MiscSystemSlotDesignation, MiscSystemSlotDesignation), }; - + // // Number of Data Table entries. // diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c index 065ab6fef8..88a99a2108 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSubclassDriverEntryPoint.c @@ -51,7 +51,7 @@ LogMemorySmbiosRecord ( Status = gBS->LocateProtocol (&gEfiSmbiosProtocolGuid, NULL, (VOID**)&Smbios); ASSERT_EFI_ERROR (Status); - + NumSlots = 1; // @@ -63,7 +63,7 @@ LogMemorySmbiosRecord ( TotalMemorySize += StrDecimalToUint64 (MemString); while (*MemString != '\0') { if (*MemString == '!') { - MemString++; + MemString++; break; } MemString++; @@ -85,7 +85,7 @@ LogMemorySmbiosRecord ( Type19Record->StartingAddress = 0; Type19Record->EndingAddress = (UINT32)RShiftU64(TotalMemorySize, 10) - 1; Type19Record->MemoryArrayHandle = 0; - Type19Record->PartitionWidth = (UINT8)(NumSlots); + Type19Record->PartitionWidth = (UINT8)(NumSlots); // // Generate Memory Array Mapped Address info (TYPE 19) @@ -128,7 +128,7 @@ Returns: { UINTN Index; EFI_STATUS EfiStatus; - EFI_SMBIOS_PROTOCOL *Smbios; + EFI_SMBIOS_PROTOCOL *Smbios; EfiStatus = gBS->LocateProtocol(&gEfiSmbiosProtocolGuid, NULL, (VOID**)&Smbios); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringData.c index 0dc706e659..347767884e 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscSystemLanguageStringData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c index 3e10c63caa..db15a252da 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemLanguageStringFunction.c @@ -18,7 +18,7 @@ This function makes boot time changes to the contents of the MiscOemString (Type 11). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -34,7 +34,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemLanguageString) CHAR8 *OptionalStrStart; EFI_STRING Str; STRING_REF TokenToGet; - + // // First check for invalid parameters. @@ -60,23 +60,23 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemLanguageString) SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE13); // // Make handle chosen by smbios protocol.add automatically. - // + // SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->InstallableLanguages = 1; SmbiosRecord->Flags = 1; SmbiosRecord->CurrentLanguages = 1; OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1); UnicodeStrToAsciiStr(Str, OptionalStrStart); - + // // Now we have got the full smbios record, call smbios protocol to add this record. // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c index 13befc45f6..5564ad1471 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscSystemManufacturerData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c index 9d2a3cbdc1..670f379f56 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemManufacturerFunction.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscSystemManufacturerFunction.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. @@ -26,7 +26,7 @@ Abstract: This function makes boot time changes to the contents of the MiscSystemManufacturer (Type 1). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -96,8 +96,8 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer) SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE1); // // Make handle chosen by smbios protocol.add automatically. - // - SmbiosRecord->Hdr.Handle = 0; + // + SmbiosRecord->Hdr.Handle = 0; // // Manu will be the 1st optional string following the formatted structure. // @@ -105,11 +105,11 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer) // // ProductName will be the 2nd optional string following the formatted structure. // - SmbiosRecord->ProductName = 2; + SmbiosRecord->ProductName = 2; // - // Version will be the 3rd optional string following the formatted structure. + // Version will be the 3rd optional string following the formatted structure. // - SmbiosRecord->Version = 3; + SmbiosRecord->Version = 3; // // Version will be the 4th optional string following the formatted structure. // @@ -128,9 +128,9 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemManufacturer) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringData.c index 581586b857..b64181e0fb 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: MiscSystemOptionStringData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c index a910634f00..348a33ec82 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemOptionStringFunction.c @@ -20,7 +20,7 @@ This function makes boot time changes to the contents of the MiscSystemOptionString (Type 12). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -50,7 +50,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString) if (OptStrLen > SMBIOS_STRING_MAX_LENGTH) { return EFI_UNSUPPORTED; } - + // // Two zeros following the last string. // @@ -62,7 +62,7 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString) // // Make handle chosen by smbios protocol.add automatically. // - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->StringCount = 1; OptionalStrStart = (CHAR8*) (SmbiosRecord + 1); @@ -72,9 +72,9 @@ MISC_SMBIOS_TABLE_FUNCTION(SystemOptionString) // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationData.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationData.c index 11b2339331..3406fdbe08 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationData.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationData.c @@ -1,19 +1,19 @@ /*++ Copyright (c) 2006 - 2009, 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 - -THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +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 + +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. Module Name: - + MiscSystemSlotDesignationData.c - -Abstract: + +Abstract: This driver parses the mMiscSubclassDataTable structure and reports any generated data to the DataHub. diff --git a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationFunction.c b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationFunction.c index 72c4137c6b..3ed0fa74ca 100644 --- a/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationFunction.c +++ b/EmulatorPkg/MiscSubClassPlatformDxe/MiscSystemSlotDesignationFunction.c @@ -18,7 +18,7 @@ This function makes boot time changes to the contents of the MiscSystemSlotDesignator structure (Type 9). - @param RecordData Pointer to copy of RecordData from the Data Table. + @param RecordData Pointer to copy of RecordData from the Data Table. @retval EFI_SUCCESS All parameters were valid. @retval EFI_UNSUPPORTED Unexpected RecordType value. @@ -47,7 +47,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation) TokenToGet = 0; switch (ForType9InputData->SlotDesignation) { - case STR_MISC_SYSTEM_SLOT_DESIGNATION: + case STR_MISC_SYSTEM_SLOT_DESIGNATION: TokenToGet = STRING_TOKEN (STR_MISC_SYSTEM_SLOT_DESIGNATION); break; default: @@ -59,7 +59,7 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation) if (SlotDesignationStrLen > SMBIOS_STRING_MAX_LENGTH) { return EFI_UNSUPPORTED; } - + // // Two zeros following the last string. // @@ -68,28 +68,28 @@ MISC_SMBIOS_TABLE_FUNCTION(MiscSystemSlotDesignation) SmbiosRecord->Hdr.Type = EFI_SMBIOS_TYPE_SYSTEM_SLOTS; SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE9); - SmbiosRecord->Hdr.Handle = 0; + SmbiosRecord->Hdr.Handle = 0; SmbiosRecord->SlotDesignation = 1; SmbiosRecord->SlotType = ForType9InputData->SlotType; SmbiosRecord->SlotDataBusWidth = ForType9InputData->SlotDataBusWidth; SmbiosRecord->CurrentUsage = ForType9InputData->SlotUsage; SmbiosRecord->SlotLength = ForType9InputData->SlotLength; SmbiosRecord->SlotID = ForType9InputData->SlotId; - + // // Slot Characteristics // CopyMem ((UINT8 *) &SmbiosRecord->SlotCharacteristics1,(UINT8 *) &ForType9InputData->SlotCharacteristics,2); OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1); UnicodeStrToAsciiStr(SlotDesignation, OptionalStrStart); - // + // // Now we have got the full smbios record, call smbios protocol to add this record. // SmbiosHandle = 0; Status = Smbios-> Add( - Smbios, + Smbios, NULL, - &SmbiosHandle, + &SmbiosHandle, (EFI_SMBIOS_TABLE_HEADER *) SmbiosRecord ); FreePool(SmbiosRecord); -- cgit v1.2.3