Morgan Jang | bdd8636 | 2020-10-07 14:02:49 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
JingleHsuWiwynn | 014901b | 2021-10-07 10:45:47 +0800 | [diff] [blame] | 3 | #include <cpu/cpu.h> |
Morgan Jang | bdd8636 | 2020-10-07 14:02:49 +0800 | [diff] [blame] | 4 | #include <smbios.h> |
| 5 | |
| 6 | unsigned int smbios_cache_error_correction_type(u8 level) |
| 7 | { |
| 8 | return SMBIOS_CACHE_ERROR_CORRECTION_SINGLE_BIT; |
| 9 | } |
| 10 | |
| 11 | unsigned int smbios_cache_sram_type(void) |
| 12 | { |
| 13 | return SMBIOS_CACHE_SRAM_TYPE_SYNCHRONOUS; |
| 14 | } |
| 15 | |
| 16 | unsigned int smbios_cache_conf_operation_mode(u8 level) |
| 17 | { |
| 18 | switch (level) { |
| 19 | case 1: |
| 20 | return SMBIOS_CACHE_OP_MODE_WRITE_BACK; |
| 21 | case 2: |
| 22 | case 3: |
| 23 | return SMBIOS_CACHE_OP_MODE_VARIES_WITH_MEMORY_ADDRESS; |
| 24 | default: |
| 25 | return SMBIOS_CACHE_OP_MODE_UNKNOWN; |
| 26 | } |
| 27 | } |
JingleHsuWiwynn | 014901b | 2021-10-07 10:45:47 +0800 | [diff] [blame] | 28 | |
| 29 | unsigned int smbios_processor_family(struct cpuid_result res) |
| 30 | { |
| 31 | return SMBIOS_PROCESSOR_FAMILY_XEON; |
| 32 | } |
| 33 | |
| 34 | unsigned int smbios_processor_characteristics(void) |
| 35 | { |
| 36 | return PROCESSOR_64BIT_CAPABLE|PROCESSOR_MULTI_CORE|PROCESSOR_POWER_PERFORMANCE_CONTROL; |
| 37 | } |