diff options
Diffstat (limited to 'drivers/staging/hv/include/HvVpApi.h')
-rw-r--r-- | drivers/staging/hv/include/HvVpApi.h | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/drivers/staging/hv/include/HvVpApi.h b/drivers/staging/hv/include/HvVpApi.h index ce0784c335a..33b7475a15b 100644 --- a/drivers/staging/hv/include/HvVpApi.h +++ b/drivers/staging/hv/include/HvVpApi.h @@ -20,32 +20,26 @@ * Hank Janssen <hjanssen@microsoft.com> * */ +#ifndef __HVVPAPI_H +#define __HVVPAPI_H - -#pragma once - -/* Virtual Processor Indices */ - -typedef u32 HV_VP_INDEX, *PHV_VP_INDEX; - - -/* The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent */ -/* is set by CPUID(HvCpuIdFunctionVersionAndFeatures). */ -/* ========================================================================== */ - - -typedef enum _HV_CPUID_FUNCTION -{ - HvCpuIdFunctionVersionAndFeatures = 0x00000001, - HvCpuIdFunctionHvVendorAndMaxFunction = 0x40000000, - HvCpuIdFunctionHvInterface = 0x40000001, - - - /* The remaining functions depend on the value of HvCpuIdFunctionInterface */ - - HvCpuIdFunctionMsHvVersion = 0x40000002, - HvCpuIdFunctionMsHvFeatures = 0x40000003, - HvCpuIdFunctionMsHvEnlightenmentInformation = 0x40000004, - HvCpuIdFunctionMsHvImplementationLimits = 0x40000005 - -} HV_CPUID_FUNCTION, *PHV_CPUID_FUNCTION; +/* + * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent + * is set by CPUID(HvCpuIdFunctionVersionAndFeatures). + */ +enum hv_cpuid_function { + HvCpuIdFunctionVersionAndFeatures = 0x00000001, + HvCpuIdFunctionHvVendorAndMaxFunction = 0x40000000, + HvCpuIdFunctionHvInterface = 0x40000001, + + /* + * The remaining functions depend on the value of + * HvCpuIdFunctionInterface + */ + HvCpuIdFunctionMsHvVersion = 0x40000002, + HvCpuIdFunctionMsHvFeatures = 0x40000003, + HvCpuIdFunctionMsHvEnlightenmentInformation = 0x40000004, + HvCpuIdFunctionMsHvImplementationLimits = 0x40000005, +}; + +#endif |