mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 00:24:07 +02:00
ShellPkg SmbiosView: Add decoding of SMBIOS spec 3.1.1
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=349 Cc: Ruiyu Ni <ruiyu.ni@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
This commit is contained in:
parent
4fa7b3e24a
commit
5734d486b6
@ -1106,7 +1106,7 @@ SmbiosPrintStructure (
|
|||||||
// Management Controller Host Interface (Type 42)
|
// Management Controller Host Interface (Type 42)
|
||||||
//
|
//
|
||||||
case 42:
|
case 42:
|
||||||
PRINT_STRUCT_VALUE_H (Struct, Type42, InterfaceType);
|
DisplayMCHostInterfaceType (Struct->Type42->InterfaceType, Option);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1818,6 +1818,10 @@ DisplayProcessorFamily (
|
|||||||
Print (L"AMD Opteron(TM) X3000 Series APU\n");
|
Print (L"AMD Opteron(TM) X3000 Series APU\n");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 0x6B:
|
||||||
|
Print (L"AMD Zen Processor Family\n");
|
||||||
|
break;
|
||||||
|
|
||||||
case 0x70:
|
case 0x70:
|
||||||
ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_HOBBIT_FAMILY), gShellDebug1HiiHandle);
|
ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_PRINTINFO_HOBBIT_FAMILY), gShellDebug1HiiHandle);
|
||||||
break;
|
break;
|
||||||
|
@ -575,6 +575,10 @@ TABLE_ITEM ProcessorUpgradeTable[] = {
|
|||||||
{
|
{
|
||||||
0x37,
|
0x37,
|
||||||
L"Socket SP3"
|
L"Socket SP3"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
0x38,
|
||||||
|
L"Socket SP3r2"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3156,6 +3160,22 @@ TABLE_ITEM IPMIDIBMCInterfaceTypeTable[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
TABLE_ITEM MCHostInterfaceTypeTable[] = {
|
||||||
|
{
|
||||||
|
0x3F00,
|
||||||
|
L" MCTP Host Interface "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
0x40,
|
||||||
|
L" Network Host Interface "
|
||||||
|
},
|
||||||
|
{
|
||||||
|
0xF0,
|
||||||
|
L" OEM defined "
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
TABLE_ITEM StructureTypeInfoTable[] = {
|
TABLE_ITEM StructureTypeInfoTable[] = {
|
||||||
{
|
{
|
||||||
0,
|
0,
|
||||||
@ -4524,6 +4544,23 @@ DisplayIPMIDIBMCInterfaceType (
|
|||||||
PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable, Key);
|
PRINT_TABLE_ITEM (IPMIDIBMCInterfaceTypeTable, Key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
Display Management Controller Host Interface (Type 42) information.
|
||||||
|
|
||||||
|
@param[in] Key The key of the structure.
|
||||||
|
@param[in] Option The optional information.
|
||||||
|
**/
|
||||||
|
VOID
|
||||||
|
DisplayMCHostInterfaceType (
|
||||||
|
IN UINT8 Key,
|
||||||
|
IN UINT8 Option
|
||||||
|
)
|
||||||
|
{
|
||||||
|
ShellPrintHiiEx(-1,-1,NULL,STRING_TOKEN (STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE), gShellDebug1HiiHandle);
|
||||||
|
PRINT_INFO_OPTION (Key, Option);
|
||||||
|
PRINT_TABLE_ITEM (MCHostInterfaceTypeTable, Key);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Display the structure type information.
|
Display the structure type information.
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Build a table, each item is (key, info) pair.
|
Build a table, each item is (key, info) pair.
|
||||||
and give a interface of query a string out of a table.
|
and give a interface of query a string out of a table.
|
||||||
|
|
||||||
Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
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
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
@ -779,4 +779,16 @@ DisplayIPMIDIBMCInterfaceType (
|
|||||||
IN UINT8 Option
|
IN UINT8 Option
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
Display Management Controller Host Interface (Type 42) information.
|
||||||
|
|
||||||
|
@param[in] Key The key of the structure.
|
||||||
|
@param[in] Option The optional information.
|
||||||
|
**/
|
||||||
|
VOID
|
||||||
|
DisplayMCHostInterfaceType (
|
||||||
|
IN UINT8 Key,
|
||||||
|
IN UINT8 Option
|
||||||
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// /**
|
// /**
|
||||||
//
|
//
|
||||||
// Copyright (c) 2005 - 2015, Intel Corporation. All rights reserved.<BR>
|
// Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||||
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>
|
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.<BR>
|
||||||
// (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP<BR>
|
// (C) Copyright 2015-2017 Hewlett Packard Enterprise Development LP<BR>
|
||||||
// This program and the accompanying materials
|
// This program and the accompanying materials
|
||||||
@ -444,6 +444,7 @@
|
|||||||
#string STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE #language en-US "Management Device - Address Type:"
|
#string STR_SMBIOSVIEW_QUERYTABLE_MANAGEMENT_DEV_ADDR_TYPE #language en-US "Management Device - Address Type:"
|
||||||
#string STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE #language en-US "Memory Channel Type:"
|
#string STR_SMBIOSVIEW_QUERYTABLE_MEM_CHANNEL_TYPE #language en-US "Memory Channel Type:"
|
||||||
#string STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE #language en-US "BMC Interface Type:"
|
#string STR_SMBIOSVIEW_QUERYTABLE_BMC_INTERFACE_TYPE #language en-US "BMC Interface Type:"
|
||||||
|
#string STR_SMBIOSVIEW_QUERYTABLE_MC_HOST_INTERFACE_TYPE #language en-US "MC Host Interface Type:"
|
||||||
#string STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE #language en-US "Structure Type:"
|
#string STR_SMBIOSVIEW_QUERYTABLE_STRUCT_TYPE #language en-US "Structure Type:"
|
||||||
#string STR_SMBIOSVIEW_SMBIOSVIEW_ONE_VAR_ARGV #language en-US "%s "
|
#string STR_SMBIOSVIEW_SMBIOSVIEW_ONE_VAR_ARGV #language en-US "%s "
|
||||||
#string STR_SMBIOSVIEW_SMBIOSVIEW_QUERY_STRUCT_COND #language en-US "Query Structure, conditions are:\r\n"
|
#string STR_SMBIOSVIEW_SMBIOSVIEW_QUERY_STRUCT_COND #language en-US "Query Structure, conditions are:\r\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user