Commit b4f3fda5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cba4decd
...@@ -209,14 +209,14 @@ typedef struct _HV_PORT_INFO ...@@ -209,14 +209,14 @@ typedef struct _HV_PORT_INFO
struct struct
{ {
HV_SYNIC_SINT_INDEX TargetSint; HV_SYNIC_SINT_INDEX TargetSint;
HV_VP_INDEX TargetVp; u32 TargetVp;
u64 RsvdZ; u64 RsvdZ;
} MessagePortInfo; } MessagePortInfo;
struct struct
{ {
HV_SYNIC_SINT_INDEX TargetSint; HV_SYNIC_SINT_INDEX TargetSint;
HV_VP_INDEX TargetVp; u32 TargetVp;
u16 BaseFlagNumber; u16 BaseFlagNumber;
u16 FlagCount; u16 FlagCount;
u32 RsvdZ; u32 RsvdZ;
......
...@@ -20,32 +20,26 @@ ...@@ -20,32 +20,26 @@
* Hank Janssen <hjanssen@microsoft.com> * Hank Janssen <hjanssen@microsoft.com>
* *
*/ */
#ifndef __HVVPAPI_H
#define __HVVPAPI_H
/*
#pragma once * The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent
* is set by CPUID(HvCpuIdFunctionVersionAndFeatures).
/* Virtual Processor Indices */ */
enum hv_cpuid_function {
typedef u32 HV_VP_INDEX, *PHV_VP_INDEX; HvCpuIdFunctionVersionAndFeatures = 0x00000001,
HvCpuIdFunctionHvVendorAndMaxFunction = 0x40000000,
HvCpuIdFunctionHvInterface = 0x40000001,
/* The below CPUID leaves are present if VersionAndFeatures.HypervisorPresent */
/* is set by CPUID(HvCpuIdFunctionVersionAndFeatures). */ /*
/* ========================================================================== */ * The remaining functions depend on the value of
* HvCpuIdFunctionInterface
*/
typedef enum _HV_CPUID_FUNCTION HvCpuIdFunctionMsHvVersion = 0x40000002,
{ HvCpuIdFunctionMsHvFeatures = 0x40000003,
HvCpuIdFunctionVersionAndFeatures = 0x00000001, HvCpuIdFunctionMsHvEnlightenmentInformation = 0x40000004,
HvCpuIdFunctionHvVendorAndMaxFunction = 0x40000000, HvCpuIdFunctionMsHvImplementationLimits = 0x40000005,
HvCpuIdFunctionHvInterface = 0x40000001, };
#endif
/* The remaining functions depend on the value of HvCpuIdFunctionInterface */
HvCpuIdFunctionMsHvVersion = 0x40000002,
HvCpuIdFunctionMsHvFeatures = 0x40000003,
HvCpuIdFunctionMsHvEnlightenmentInformation = 0x40000004,
HvCpuIdFunctionMsHvImplementationLimits = 0x40000005
} HV_CPUID_FUNCTION, *PHV_CPUID_FUNCTION;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment