tree: Add some SMBIOS_PROCESSOR_FAMILY macros
Change-Id: Ibe551a4c83f416ba30326077aa165818cf79c1fd Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/82648 Reviewed-by: Eric Lai <ericllai@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@@ -66,8 +66,8 @@ int smbios_write_type4(unsigned long *current, int handle)
|
||||
smbios_processor_id(t->processor_id);
|
||||
t->processor_manufacturer = smbios_processor_manufacturer(t->eos);
|
||||
t->processor_version = smbios_processor_name(t->eos);
|
||||
t->processor_family = 0xfe; /* Use processor_family2 field */
|
||||
t->processor_family2 = 0x101; /* ARMv8 */
|
||||
t->processor_family = SMBIOS_PROCESSOR_FAMILY_FROM_FAMILY2;
|
||||
t->processor_family2 = SMBIOS_PROCESSOR_FAMILY2_ARMV8;
|
||||
t->processor_type = SMBIOS_PROCESSOR_TYPE_CENTRAL;
|
||||
|
||||
smbios_cpu_get_core_counts(&t->core_count2, &t->thread_count2);
|
||||
|
@@ -68,7 +68,7 @@ static int get_socket_type(void)
|
||||
|
||||
unsigned int __weak smbios_processor_family(struct cpuid_result res)
|
||||
{
|
||||
return (res.eax > 0) ? 0x0c : 0x6;
|
||||
return (res.eax > 0) ? SMBIOS_PROCESSOR_FAMILY_PENTIUM_PRO : SMBIOS_PROCESSOR_FAMILY_INTEL486;
|
||||
}
|
||||
|
||||
static size_t get_number_of_caches(size_t max_logical_cpus_sharing_cache)
|
||||
|
@@ -584,7 +584,13 @@ enum smbios_processor_upgrade_field {
|
||||
/* defines for processor family */
|
||||
#define SMBIOS_PROCESSOR_FAMILY_OTHER 0x01
|
||||
#define SMBIOS_PROCESSOR_FAMILY_UNKNOWN 0x02
|
||||
#define SMBIOS_PROCESSOR_FAMILY_INTEL486 0x06
|
||||
#define SMBIOS_PROCESSOR_FAMILY_PENTIUM_PRO 0x0c
|
||||
#define SMBIOS_PROCESSOR_FAMILY_XEON 0xb3
|
||||
#define SMBIOS_PROCESSOR_FAMILY_FROM_FAMILY2 0xfe
|
||||
|
||||
/* defines for processor family 2 */
|
||||
#define SMBIOS_PROCESSOR_FAMILY2_ARMV8 0x101
|
||||
|
||||
/* defines for processor characteristics */
|
||||
#define PROCESSOR_64BIT_CAPABLE (1 << 2)
|
||||
|
Reference in New Issue
Block a user