]> Pileus Git - ~andy/linux/blob - drivers/staging/hv/include/HvVpApi.h
Staging: hv: remove UINT32 and INT32 typedefs
[~andy/linux] / drivers / staging / hv / include / HvVpApi.h
1 /*
2  *
3  * Copyright (c) 2009, Microsoft Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms and conditions of the GNU General Public License,
7  * version 2, as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along with
15  * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16  * Place - Suite 330, Boston, MA 02111-1307 USA.
17  *
18  * Authors:
19  *   Haiyang Zhang <haiyangz@microsoft.com>
20  *   Hank Janssen  <hjanssen@microsoft.com>
21  *
22  */
23
24
25 #pragma once
26 //
27 // Virtual Processor Indices
28 //
29 typedef u32 HV_VP_INDEX, *PHV_VP_INDEX;
30
31 //
32 // The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
33 // is set by CPUID(HvCpuIdFunctionVersionAndFeatures).
34 // ==========================================================================
35 //
36
37 typedef enum _HV_CPUID_FUNCTION
38 {
39     HvCpuIdFunctionVersionAndFeatures           = 0x00000001,
40     HvCpuIdFunctionHvVendorAndMaxFunction       = 0x40000000,
41     HvCpuIdFunctionHvInterface                  = 0x40000001,
42
43     //
44     // The remaining functions depend on the value of HvCpuIdFunctionInterface
45     //
46     HvCpuIdFunctionMsHvVersion                  = 0x40000002,
47     HvCpuIdFunctionMsHvFeatures                 = 0x40000003,
48     HvCpuIdFunctionMsHvEnlightenmentInformation = 0x40000004,
49     HvCpuIdFunctionMsHvImplementationLimits     = 0x40000005
50
51 } HV_CPUID_FUNCTION, *PHV_CPUID_FUNCTION;