diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-08-19 16:21:28 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:56 -0700 |
commit | b4f3fda5d475931d596d5cf599a193f42b857594 (patch) | |
tree | 68d427eed65d9327ea122e63a0e4ea0ded152049 /drivers | |
parent | cba4decdd3dcd224b17631572456951aace0a27e (diff) | |
download | linux-b4f3fda5d475931d596d5cf599a193f42b857594.tar.gz linux-b4f3fda5d475931d596d5cf599a193f42b857594.tar.bz2 linux-b4f3fda5d475931d596d5cf599a193f42b857594.zip |
Staging: hv: coding style cleanup of include/HvVpApi.h
Coding style fixes for include/HvVpApi.h
All of the include/Hv*.h files should be merged eventually...
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/hv/include/HvSynicApi.h | 4 | ||||
-rw-r--r-- | drivers/staging/hv/include/HvVpApi.h | 50 |
2 files changed, 24 insertions, 30 deletions
diff --git a/drivers/staging/hv/include/HvSynicApi.h b/drivers/staging/hv/include/HvSynicApi.h index 03b4d290eb46..92944d612cb2 100644 --- a/drivers/staging/hv/include/HvSynicApi.h +++ b/drivers/staging/hv/include/HvSynicApi.h @@ -209,14 +209,14 @@ typedef struct _HV_PORT_INFO struct { HV_SYNIC_SINT_INDEX TargetSint; - HV_VP_INDEX TargetVp; + u32 TargetVp; u64 RsvdZ; } MessagePortInfo; struct { HV_SYNIC_SINT_INDEX TargetSint; - HV_VP_INDEX TargetVp; + u32 TargetVp; u16 BaseFlagNumber; u16 FlagCount; u32 RsvdZ; diff --git a/drivers/staging/hv/include/HvVpApi.h b/drivers/staging/hv/include/HvVpApi.h index ce0784c335a8..33b7475a15ba 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 |