cpu_x86.h 1.7 KB
Newer Older
J
Jiri Denemark 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * cpu_x86.h: CPU driver for CPUs with x86 compatible CPUID instruction
 *
 * Copyright (C) 2009 Red Hat, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
17
 * License along with this library.  If not, see
O
Osier Yang 已提交
18
 * <http://www.gnu.org/licenses/>.
J
Jiri Denemark 已提交
19 20
 */

21 22
#ifndef LIBVIRT_CPU_X86_H
# define LIBVIRT_CPU_X86_H
J
Jiri Denemark 已提交
23

24
# include "cpu.h"
J
Jiri Denemark 已提交
25
# include "cpu_x86_data.h"
J
Jiri Denemark 已提交
26 27 28

extern struct cpuArchDriver cpuDriverX86;

29 30
int virCPUx86DataAdd(virCPUDataPtr cpuData,
                     const virCPUx86DataItem *cpuid);
J
Jiri Denemark 已提交
31

32 33
int virCPUx86DataSetSignature(virCPUDataPtr cpuData,
                              unsigned int family,
34 35
                              unsigned int model,
                              unsigned int stepping);
36

37 38 39 40 41
uint32_t virCPUx86DataGetSignature(virCPUDataPtr cpuData,
                                   unsigned int *family,
                                   unsigned int *model,
                                   unsigned int *stepping);

42 43 44
int virCPUx86DataSetVendor(virCPUDataPtr cpuData,
                           const char *vendor);

45 46 47
int virCPUx86DataAddFeature(virCPUDataPtr cpuData,
                            const char *name);

48
#endif /* LIBVIRT_CPU_X86_H */