From 33900fd703ff2f29ffc72ff021d86ebea8e6327b Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 11 Jul 2006 15:56:44 +0000 Subject: [PATCH] Remove unused code for misc sub smbios table. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@883 6f19259b-4bc3-4df7-8a09-765794883524 --- .../MiscSubclass/MiscBiosLanguageData.c | 45 ----- .../MiscSubclass/MiscOnboardDevice.uni | Bin 2042 -> 0 bytes .../MiscSubclass/MiscOnboardDeviceData.c | 36 ---- .../MiscSubclass/MiscOnboardDeviceFunction.c | 164 ------------------ .../MiscSubclass/MiscSubclassDriver.msa | 1 - .../MiscSubclass/MiscSubclassDriver.uni | Bin 2846 -> 2778 bytes .../MiscSubclassDriverDataTable.c | 4 - 7 files changed, 250 deletions(-) delete mode 100644 EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscBiosLanguageData.c delete mode 100644 EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDevice.uni delete mode 100644 EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceData.c delete mode 100644 EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceFunction.c diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscBiosLanguageData.c b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscBiosLanguageData.c deleted file mode 100644 index 652acacb54..0000000000 --- a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscBiosLanguageData.c +++ /dev/null @@ -1,45 +0,0 @@ -/*++ - -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. - -Module Name: - - MiscBiosLanguageData.c - -Abstract: - - This driver parses the mMiscSubclassDataTable structure and reports - any generated data to the DataHub. - ---*/ - -#include "MiscSubclassDriver.h" - -// -// Static (possibly build generated) Bios Vendor data. -// -MISC_SUBCLASS_TABLE_DATA(EFI_MISC_NUMBER_OF_INSTALLABLE_LANGUAGES_DATA, NumberOfInstallableLangauges) = { - 1, // NumberOfInstallableLanguages - { // LanguageFlags - 0, // AbbreviatedLanguageFormat - 0 // Reserved - }, - 0 // CurrentLanguageNumber -}; - -// -// -// -MISC_SUBCLASS_TABLE_DATA(EFI_MISC_SYSTEM_LANGUAGE_STRING_DATA, SystemLanguageString) = { - 0, // LanguageId - STR_MISC_SYSTEM_LANGUAGE_STRING // SystemLanguageString -}; - -/* eof - MiscBiosLanguageData.c */ diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDevice.uni b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDevice.uni deleted file mode 100644 index b24529b804a360d39efd6882cbae16bf64d08392..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2042 zcmchYT~8B16o${WiT`0!VxlOm@xludFDPAQqqI#apjV`yun8?>TfqK#^?A>5B8q# zqrGFD*_5-9U9;Amf?FDU?B=Yd>_7LnvL>+ua0ywoV&>GyW?(Mto^fbZ_PW@Zvzvgw z0QaTaFoEu2!;pCn$H?gcez>s-oH|=@Zwi0Hj;xm4oYl2U`+wUb`W}*`@fvvpR#QhU zEGtaXI9#H-XPv{_vp%El-8pjMiRc5qiDO$yku|b0FJmS@+}L>SUfoWt0sUT z^bhXQ0i*D4`YZ>ZbjYW{>(V}hmhbu?UuBPC6QU!F#+-zR%8s9KZR6bZRfx#~uD*L@ zj8(xa!lc`qUqr8rpA+GIuM5>e@W1XC9*rup3gTYdiqDLlKDG>PZ|kIrlq>#Coli$a z^iL=A`6Na3T|2TAFSV^>E&IZFV8_rIIhc@zn!D^~R<~1Dsb}V?HJMZPl`la;%-W3Z zl)`c1l3T3Q9W+*$C09}_%yp+lslWZ}7tx<1N%~ukEwOXtb=-y~`x*MBt>rj7P_j~c zLf3^?Ji-^aKEo@VKbXIAA{&J(U1|yTruMy*6QyT(txd&BXT!VPW7b6Uadk|7553-0 zc}?nNLJjPfZ$#vj)MKyT0s2%GbAJn_bd?dcGWR{b6so^s*(by6P_;95i&AQ`wmR@S zQcqC-n6K$x=aTkUd|e{fSi2qZbwF|N_*O5{(X!hJ&EgTcd(`jl@=cViAn%jy_)64H z*|9?Z4_SGEFO)rpcHwcXGb#fb(8|vw; eeLSi6L9an$X`kMRK+W)%I_WK53pQ6u)PDf<9s|Yz diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceData.c b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceData.c deleted file mode 100644 index e7fa04a29b..0000000000 --- a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceData.c +++ /dev/null @@ -1,36 +0,0 @@ -/*++ - -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. - -Module Name: - - MiscOnboardDeviceData.c - -Abstract: - - This driver parses the mMiscSubclassDataTable structure and reports - any generated data to the DataHub. - ---*/ - -#include "MiscSubclassDriver.h" - -// -// Static (possibly build generated) Bios Vendor data. -// -MISC_SUBCLASS_TABLE_DATA(EFI_MISC_ONBOARD_DEVICE_DATA, MiscOnboardDevice) = { - STRING_TOKEN(STR_MISC_ONBOARD_DEVICE_DESCRIPTION), // OnBoardDeviceDescription - { // OnBoardDeviceStatus - EfiOnBoardDeviceTypeOther, // DeviceType - 0, // DeviceEnabled - 0 // Reserved - }, - 0 // OnBoardDevicePath -}; diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceFunction.c b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceFunction.c deleted file mode 100644 index d96b6cc2ad..0000000000 --- a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscOnboardDeviceFunction.c +++ /dev/null @@ -1,164 +0,0 @@ -/*++ - -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. - -Module Name: - - MiscOnboardDeviceFunction.c - -Abstract: - - Onboard device information boot time changes. - Misc. subclass type 8. - SMBIOS type 10. - ---*/ - -#include "MiscSubclassDriver.h" -#include "winntio/winntio.h" -#include "winntthunk/winntthunk.h" - -#pragma pack(1) - -typedef struct _VENDOR_DEVICE { - EFI_DEVICE_PATH_PROTOCOL Platform; - EFI_GUID PlatformGuid; - EFI_DEVICE_PATH_PROTOCOL Device; - EFI_GUID DeviceGuid; - UINT8 DeviceData[4]; - EFI_DEVICE_PATH_PROTOCOL End; - -} VENDOR_DEVICE; -#pragma pack() - -MISC_SUBCLASS_TABLE_FUNCTION ( - MiscOnboardDeviceVideo - ) -/*++ -Description: - - This function makes boot time changes to the contents of the - MiscOnboardDevice structure. - -Parameters: - - RecordType - Type of record to be processed from the Data Table. - mMiscSubclassDataTable[].RecordType - - RecordLen - Size of static RecordData from the Data Table. - mMiscSubclassDataTable[].RecordLen - - RecordData - Pointer to copy of RecordData from the Data Table. Changes made - to this copy will be written to the Data Hub but will not alter - the contents of the static Data Table. - - LogRecordData - Set *LogRecordData to TRUE to log RecordData to Data Hub. - Set *LogRecordData to FALSE when there is no more data to log. - -Returns: - - EFI_SUCCESS - All parameters were valid and *RecordData and *LogRecordData have - been set. - - EFI_UNSUPPORTED - Unexpected RecordType value. - - EFI_INVALID_PARAMETER - One of the following parameter conditions was true: - RecordLen was zero. - RecordData was NULL. - LogRecordData was NULL. ---*/ -{ - STATIC VENDOR_DEVICE mVideoDevicePath = { - { - HARDWARE_DEVICE_PATH, - HW_VENDOR_DP, - 0x14 - }, - EFI_WIN_NT_THUNK_PROTOCOL_GUID, - { - HARDWARE_DEVICE_PATH, - HW_VENDOR_DP, - 0x18 - }, - EFI_WIN_NT_UGA_GUID, - 0, - 0, - 0, - 0, - END - }; - - STATIC BOOLEAN Done = FALSE; - - // - // First check for invalid parameters. - // - if (RecordLen == 0 || RecordData == NULL || LogRecordData == NULL) { - return EFI_INVALID_PARAMETER; - } - // - // Then check for unsupported RecordType. - // - if (RecordType != EFI_MISC_ONBOARD_DEVICE_DATA_RECORD_NUMBER) { - return EFI_UNSUPPORTED; - } - // - // Is this the first time through this function? - // - if (!Done) { - // - // Yes, this is the first time. Inspect/Change the contents of the - // RecordData structure. - // - // - // Any time changes? - // - // %%TBD - // - // Set Done flag to TRUE for next pass through this function. - // Set *LogRecordData to TRUE so data will get logged to Data Hub. - // - switch (((EFI_MISC_ONBOARD_DEVICE_DATA *) RecordData)->OnBoardDeviceDescription) { - case STR_MISC_ONBOARD_DEVICE_VIDEO_DESCRIPTION: - { - CopyMem ( - &((EFI_MISC_ONBOARD_DEVICE_DATA *) RecordData)->OnBoardDevicePath, - &mVideoDevicePath, - GetDevicePathSize ((EFI_DEVICE_PATH_PROTOCOL *) &mVideoDevicePath) - ); - *RecordLen = *RecordLen - sizeof (EFI_DEVICE_PATH_PROTOCOL) + GetDevicePathSize ((EFI_DEVICE_PATH_PROTOCOL *) &mVideoDevicePath); - } - break; - } - - Done = TRUE; - *LogRecordData = TRUE; - } else { - // - // No, this is the second time. Reset the state of the Done flag - // to FALSE and tell the data logger that there is no more data - // to be logged for this record type. If any memory allocations - // were made by earlier passes, they must be released now. - // - Done = FALSE; - *LogRecordData = FALSE; - } - - return EFI_SUCCESS; -} - -/* eof - MiscOnboardDeviceFunction.c */ diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.msa b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.msa index 5dd9170816..84bad539b0 100644 --- a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.msa +++ b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.msa @@ -70,7 +70,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.--> MiscChassisManufacturerData.c MiscNumberOfInstallableLanguagesData.c MiscOemStringData.c - MiscOnboardDeviceData.c MiscPortInternalConnectorDesignatorData.c MiscResetCapabilitiesData.c MiscSystemLanguageStringData.c diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.uni b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriver.uni index 1d6899c81cfc33c9da425a1f597f4fe56849380f..bae68622105d1f2cda801d57a1e1712d1857c5c1 100644 GIT binary patch delta 12 TcmbOyc1v`F2j}J<&Pj{_AVdU! delta 42 ycmca5I!|na2dAVzLmopCLq0Gn>{!uF#-VWb_&4& diff --git a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriverDataTable.c b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriverDataTable.c index c2d149631a..bbade9bf12 100644 --- a/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriverDataTable.c +++ b/EdkNt32Pkg/Dxe/Nt32Platform/MiscSubclass/MiscSubclassDriverDataTable.c @@ -65,10 +65,6 @@ MISC_SUBCLASS_TABLE_EXTERNS ( EFI_MISC_SYSTEM_SLOT_DESIGNATION_DATA, MiscSystemSlotDesignation ); -MISC_SUBCLASS_TABLE_EXTERNS ( - EFI_MISC_ONBOARD_DEVICE_DATA, - MiscOnboardDevice - ); MISC_SUBCLASS_TABLE_EXTERNS ( EFI_MISC_OEM_STRING_DATA, OemString -- 2.39.2