]> git.proxmox.com Git - mirror_qemu.git/blob - include/hw/i386/vmport.h
7f566ccc025c5e99c22c5ef731a624925ab938f6
[mirror_qemu.git] / include / hw / i386 / vmport.h
1 #ifndef HW_VMPORT_H
2 #define HW_VMPORT_H
3
4 #include "hw/isa/isa.h"
5
6 #define TYPE_VMPORT "vmport"
7 typedef uint32_t (VMPortReadFunc)(void *opaque, uint32_t address);
8
9 typedef enum {
10 VMPORT_CMD_GETVERSION = 10,
11 VMPORT_CMD_GETBIOSUUID = 19,
12 VMPORT_CMD_GETRAMSIZE = 20,
13 VMPORT_CMD_VMMOUSE_DATA = 39,
14 VMPORT_CMD_VMMOUSE_STATUS = 40,
15 VMPORT_CMD_VMMOUSE_COMMAND = 41,
16 VMPORT_ENTRIES
17 } VMPortCommand;
18
19 static inline void vmport_init(ISABus *bus)
20 {
21 isa_create_simple(bus, TYPE_VMPORT);
22 }
23
24 void vmport_register(VMPortCommand command, VMPortReadFunc *func, void *opaque);
25
26 #endif