Commit a27ded92 authored by Sameer Wadgaonkar's avatar Sameer Wadgaonkar Committed by Greg Kroah-Hartman

staging: unisys: visorbus: renamed #defines in visorchipset.c to match driver namespace

Renamed #defines
* UNISYS_SPAR_LEAF_ID to UNISYS_VISOR_LEAF_ID
* UNISYS_SPAR_ID_EBX to UNISYS_VISOR_ID_EBX
* UNISYS_SPAR_ID_ECX to UNISYS_VISOR_ID_ECX
* UNISYS_SPAR_ID_EDX to UNISYS_VISOR_ID_EDX
Signed-off-by: default avatarSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2b8ec7da
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
#define MAX_CONTROLVM_PAYLOAD_BYTES (1024 * 128) #define MAX_CONTROLVM_PAYLOAD_BYTES (1024 * 128)
#define UNISYS_SPAR_LEAF_ID 0x40000000 #define UNISYS_VISOR_LEAF_ID 0x40000000
/* The s-Par leaf ID returns "UnisysSpar64" encoded across ebx, ecx, edx */ /* The s-Par leaf ID returns "UnisysSpar64" encoded across ebx, ecx, edx */
#define UNISYS_SPAR_ID_EBX 0x73696e55 #define UNISYS_VISOR_ID_EBX 0x73696e55
#define UNISYS_SPAR_ID_ECX 0x70537379 #define UNISYS_VISOR_ID_ECX 0x70537379
#define UNISYS_SPAR_ID_EDX 0x34367261 #define UNISYS_VISOR_ID_EDX 0x34367261
/* /*
* When the controlvm channel is idle for at least MIN_IDLE_SECONDS, * When the controlvm channel is idle for at least MIN_IDLE_SECONDS,
...@@ -1927,10 +1927,10 @@ static __init int visorutil_spar_detect(void) ...@@ -1927,10 +1927,10 @@ static __init int visorutil_spar_detect(void)
if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) { if (boot_cpu_has(X86_FEATURE_HYPERVISOR)) {
/* check the ID */ /* check the ID */
cpuid(UNISYS_SPAR_LEAF_ID, &eax, &ebx, &ecx, &edx); cpuid(UNISYS_VISOR_LEAF_ID, &eax, &ebx, &ecx, &edx);
return (ebx == UNISYS_SPAR_ID_EBX) && return (ebx == UNISYS_VISOR_ID_EBX) &&
(ecx == UNISYS_SPAR_ID_ECX) && (ecx == UNISYS_VISOR_ID_ECX) &&
(edx == UNISYS_SPAR_ID_EDX); (edx == UNISYS_VISOR_ID_EDX);
} else { } else {
return 0; return 0;
} }
......
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