summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/inout.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bhyve/inout.h')
-rw-r--r--usr.sbin/bhyve/inout.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.sbin/bhyve/inout.h b/usr.sbin/bhyve/inout.h
index f15a2c8..7f39095 100644
--- a/usr.sbin/bhyve/inout.h
+++ b/usr.sbin/bhyve/inout.h
@@ -34,13 +34,9 @@
struct vmctx;
struct vm_exit;
-/* Handler return values. */
-#define INOUT_ERROR -1
-#define INOUT_OK 0
-#define INOUT_RESTART 1
-#define INOUT_RESET 2
-#define INOUT_POWEROFF 3
-
+/*
+ * inout emulation handlers return 0 on success and -1 on failure.
+ */
typedef int (*inout_func_t)(struct vmctx *ctx, int vcpu, int in, int port,
int bytes, uint32_t *eax, void *arg);
OpenPOWER on IntegriCloud