-
Notifications
You must be signed in to change notification settings - Fork 8
/
cpu_info.h
42 lines (34 loc) · 920 Bytes
/
cpu_info.h
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
34
35
36
37
38
39
40
41
42
/*
* PPC CPU identification
*
* Copyright 2012 Matt Evans <[email protected]>, IBM Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef CPU_INFO_H
#define CPU_INFO_H
#include <kvm/kvm.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/kvm.h>
struct cpu_info {
const char *name;
u32 tb_freq; /* timebase frequency */
u32 d_bsize; /* d-cache block size */
u32 i_bsize; /* i-cache block size */
u32 flags;
struct kvm_ppc_smmu_info mmu_info;
};
struct pvr_info {
u32 pvr_mask;
u32 pvr;
struct cpu_info *cpu_info;
};
/* Misc capabilities/CPU properties */
#define CPUINFO_FLAG_DFP 0x00000001
#define CPUINFO_FLAG_VMX 0x00000002
#define CPUINFO_FLAG_VSX 0x00000004
struct cpu_info *find_cpu_info(struct kvm *kvm);
#endif