blob: d41b94a45052ef5bf647551488384445d292052f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __ARCH_CPU_H__
#define __ARCH_CPU_H__
#include <device/device.h>
#define asmlinkage
struct cpu_driver {
struct device_operations *ops;
const struct cpu_device_id *id_table;
};
struct thread;
struct cpu_info {
struct device *cpu;
unsigned long index;
#if CONFIG(COOP_MULTITASKING)
struct thread *thread;
#endif
};
struct cpuinfo_ppc64 {
uint8_t ppc64; /* CPU family */
uint8_t ppc64_vendor; /* CPU vendor */
uint8_t ppc64_model;
};
struct cpu_info *cpu_info(void);
#endif /* __ARCH_CPU_H__ */
|