1be3f06bcSBin Meng /* 2be3f06bcSBin Meng * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> 3be3f06bcSBin Meng * 4be3f06bcSBin Meng * SPDX-License-Identifier: GPL-2.0+ 5be3f06bcSBin Meng */ 6be3f06bcSBin Meng 7be3f06bcSBin Meng #ifndef _ASM_CPU_X86_H 8be3f06bcSBin Meng #define _ASM_CPU_X86_H 9be3f06bcSBin Meng 10be3f06bcSBin Meng /** 11be3f06bcSBin Meng * cpu_x86_bind() - Bind an x86 CPU with the driver 12be3f06bcSBin Meng * 13be3f06bcSBin Meng * This updates cpu device's platform data with information from device tree, 14be3f06bcSBin Meng * like the processor local apic id. 15be3f06bcSBin Meng * 16be3f06bcSBin Meng * @dev: Device to check (UCLASS_CPU) 17be3f06bcSBin Meng * @return 0 always 18be3f06bcSBin Meng */ 19be3f06bcSBin Meng int cpu_x86_bind(struct udevice *dev); 20be3f06bcSBin Meng 21be3f06bcSBin Meng /** 22be3f06bcSBin Meng * cpu_x86_get_desc() - Get a description string for an x86 CPU 23be3f06bcSBin Meng * 24be3f06bcSBin Meng * This uses cpu_get_name() and is suitable to use as the get_desc() method for 25be3f06bcSBin Meng * the CPU uclass. 26be3f06bcSBin Meng * 27be3f06bcSBin Meng * @dev: Device to check (UCLASS_CPU) 28be3f06bcSBin Meng * @buf: Buffer to place string 29be3f06bcSBin Meng * @size: Size of string space 30be3f06bcSBin Meng * @return: 0 if OK, -ENOSPC if buffer is too small, other -ve on error 31be3f06bcSBin Meng */ 32be3f06bcSBin Meng int cpu_x86_get_desc(struct udevice *dev, char *buf, int size); 33be3f06bcSBin Meng 34*94eaa79cSAlexander Graf /** 35*94eaa79cSAlexander Graf * cpu_x86_get_vendor() - Get a vendor string for an x86 CPU 36*94eaa79cSAlexander Graf * 37*94eaa79cSAlexander Graf * This uses cpu_vendor_name() and is suitable to use as the get_vendor() 38*94eaa79cSAlexander Graf * method for the CPU uclass. 39*94eaa79cSAlexander Graf * 40*94eaa79cSAlexander Graf * @dev: Device to check (UCLASS_CPU) 41*94eaa79cSAlexander Graf * @buf: Buffer to place string 42*94eaa79cSAlexander Graf * @size: Size of string space 43*94eaa79cSAlexander Graf * @return: 0 if OK, -ENOSPC if buffer is too small, other -ve on error 44*94eaa79cSAlexander Graf */ 45*94eaa79cSAlexander Graf int cpu_x86_get_vendor(struct udevice *dev, char *buf, int size); 46*94eaa79cSAlexander Graf 47be3f06bcSBin Meng #endif /* _ASM_CPU_X86_H */ 48