/* * PPC CPU identification * * Copyright 2012 Matt Evans , 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 #include #include #include 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