15 #define VMW_PORT 0x5658 18 #define VMW_MAGIC 0x564d5868 21 #define VMW_BACKDOOR "inl %%dx, %%eax" 24 #define VMW_CMD_GET_VERSION 0x0a 27 #define VMW_CMD_GUESTRPC 0x1e 69 :
"=a" ( discard_a ),
"=b" ( *
ebx ),
static __attribute__((always_inline)) void vmware_cmd_get_version(uint32_t *version
Get VMware version.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
u32 version
Driver version.
#define VMW_MAGIC
VMware backdoor magic value.
#define VMW_PORT
VMware backdoor I/O port.
__asm__ __volatile__(VMW_BACKDOOR :"=a"(*version), "=b"(*magic), "=c"(*product_type), "=d"(discard_d) :"0"(VMW_MAGIC), "1"(0), "2"(VMW_CMD_GET_VERSION), "3"(VMW_PORT))
static uint16_t subcommand
uint32_t channel
RNDIS channel.
#define VMW_CMD_GET_VERSION
Get VMware version.
static uint16_t uint32_t uint16_t uint32_t * ebx
#define VMW_BACKDOOR
VMware backdoor magic instruction.
static uint32_t uint32_t * product_type
int vmware_present(void)
Detect VMware presence.
__asm__(".section \".rodata\", \"a\", " PROGBITS "\n\t" "\nprivate_key_data:\n\t" ".size private_key_data, ( . - private_key_data )\n\t" ".equ private_key_len, ( . - private_key_data )\n\t" ".previous\n\t")
#define VMW_CMD_GUESTRPC
Issue GuestRPC command.
static uint16_t uint32_t uint16_t * edxhi