Staging: hv: coding style cleanup of include/HvVpApi.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 19 Aug 2009 23:21:28 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:56 +0000 (12:01 -0700)
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>
drivers/staging/hv/include/HvSynicApi.h
drivers/staging/hv/include/HvVpApi.h

index 03b4d29..92944d6 100644 (file)
@@ -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;
index ce0784c..33b7475 100644 (file)
  *   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