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