aboutsummaryrefslogtreecommitdiff
path: root/include/hw/i386/vmport.h
blob: 7f566ccc025c5e99c22c5ef731a624925ab938f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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);

typedef enum {
    VMPORT_CMD_GETVERSION       = 10,
    VMPORT_CMD_GETBIOSUUID      = 19,
    VMPORT_CMD_GETRAMSIZE       = 20,
    VMPORT_CMD_VMMOUSE_DATA     = 39,
    VMPORT_CMD_VMMOUSE_STATUS   = 40,
    VMPORT_CMD_VMMOUSE_COMMAND  = 41,
    VMPORT_ENTRIES
} VMPortCommand;

static inline void vmport_init(ISABus *bus)
{
    isa_create_simple(bus, TYPE_VMPORT);
}

void vmport_register(VMPortCommand command, VMPortReadFunc *func, void *opaque);

#endif