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