| /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| |
| #ifndef _XEON_SP_SOC_UTIL_H_ |
| #define _XEON_SP_SOC_UTIL_H_ |
| |
| #include <cpu/x86/msr.h> |
| #include <hob_iiouds.h> |
| |
| void unlock_pam_regions(void); |
| uint8_t get_stack_busno(const uint8_t stack); |
| msr_t read_msr_ppin(void); |
| int get_threads_per_package(void); |
| int get_platform_thread_count(void); |
| const IIO_UDS *get_iio_uds(void); |
| unsigned int soc_get_num_cpus(void); |
| void xeonsp_init_cpu_config(void); |
| void set_bios_init_completion(void); |
| uint8_t soc_get_iio_ioapicid(int socket, int stack); |
| |
| struct iiostack_resource { |
| uint8_t no_of_stacks; |
| STACK_RES res[CONFIG_MAX_SOCKET * MAX_IIO_STACK]; |
| }; |
| |
| void get_iiostack_info(struct iiostack_resource *info); |
| bool is_iio_stack_res(const STACK_RES *res); |
| |
| #endif |