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