Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
vmware.c File Reference
#include <linux/dmi.h>
#include <linux/module.h>
#include <asm/div64.h>
#include <asm/x86_init.h>
#include <asm/hypervisor.h>

Go to the source code of this file.

Macros

#define CPUID_VMWARE_INFO_LEAF   0x40000000
 
#define VMWARE_HYPERVISOR_MAGIC   0x564D5868
 
#define VMWARE_HYPERVISOR_PORT   0x5658
 
#define VMWARE_PORT_CMD_GETVERSION   10
 
#define VMWARE_PORT_CMD_GETHZ   45
 
#define VMWARE_PORT(cmd, eax, ebx, ecx, edx)
 

Functions

 EXPORT_SYMBOL (x86_hyper_vmware)
 

Variables

const __refconst struct
hypervisor_x86 
x86_hyper_vmware
 

Macro Definition Documentation

#define CPUID_VMWARE_INFO_LEAF   0x40000000

Definition at line 30 of file vmware.c.

#define VMWARE_HYPERVISOR_MAGIC   0x564D5868

Definition at line 31 of file vmware.c.

#define VMWARE_HYPERVISOR_PORT   0x5658

Definition at line 32 of file vmware.c.

#define VMWARE_PORT (   cmd,
  eax,
  ebx,
  ecx,
  edx 
)
Value:
__asm__("inl (%%dx)" : \
"=a"(eax), "=c"(ecx), "=d"(edx), "=b"(ebx) : \
"1"(VMWARE_PORT_CMD_##cmd), \
"memory");

Definition at line 37 of file vmware.c.

#define VMWARE_PORT_CMD_GETHZ   45

Definition at line 35 of file vmware.c.

#define VMWARE_PORT_CMD_GETVERSION   10

Definition at line 34 of file vmware.c.

Function Documentation

EXPORT_SYMBOL ( x86_hyper_vmware  )

Variable Documentation

Initial value:
= {
.name = "VMware",
.detect = vmware_platform,
.set_cpu_features = vmware_set_cpu_features,
.init_platform = vmware_platform_setup,
}

Definition at line 128 of file vmware.c.