2020-03-12 19:54:22 +03:00
|
|
|
#ifndef HW_VMPORT_H
|
|
|
|
#define HW_VMPORT_H
|
|
|
|
|
|
|
|
#include "hw/isa/isa.h"
|
|
|
|
|
|
|
|
#define TYPE_VMPORT "vmport"
|
|
|
|
typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address);
|
|
|
|
|
2020-03-12 19:54:23 +03:00
|
|
|
typedef enum {
|
|
|
|
VMPORT_CMD_GETVERSION = 10,
|
2020-03-12 19:54:24 +03:00
|
|
|
VMPORT_CMD_GETBIOSUUID = 19,
|
2020-03-12 19:54:23 +03:00
|
|
|
VMPORT_CMD_GETRAMSIZE = 20,
|
|
|
|
VMPORT_CMD_VMMOUSE_DATA = 39,
|
|
|
|
VMPORT_CMD_VMMOUSE_STATUS = 40,
|
|
|
|
VMPORT_CMD_VMMOUSE_COMMAND = 41,
|
2020-03-12 19:54:30 +03:00
|
|
|
VMPORT_CMD_GETHZ = 45,
|
2020-03-12 19:54:27 +03:00
|
|
|
VMPORT_CMD_GET_VCPU_INFO = 68,
|
2020-03-12 19:54:23 +03:00
|
|
|
VMPORT_ENTRIES
|
|
|
|
} VMPortCommand;
|
|
|
|
|
2020-03-12 19:54:22 +03:00
|
|
|
static inline void vmport_init(ISABus *bus)
|
|
|
|
{
|
|
|
|
isa_create_simple(bus, TYPE_VMPORT);
|
|
|
|
}
|
|
|
|
|
2020-03-12 19:54:23 +03:00
|
|
|
void vmport_register(VMPortCommand command, VMPortReadFunc *func, void *opaque);
|
2020-03-12 19:54:22 +03:00
|
|
|
|
|
|
|
#endif
|