summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/post.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-01-29 13:35:12 +0000
committerjhb <jhb@FreeBSD.org>2014-01-29 13:35:12 +0000
commit647b92bf0a989dc8e99ced34a4fd33e2e1d6dc96 (patch)
treeddf69a1306e432a02088c43f51d6530a00ac3dec /usr.sbin/bhyve/post.c
parent3e6f6a1694cd4c4265eab094e4a811fc9f1482a2 (diff)
downloadFreeBSD-src-647b92bf0a989dc8e99ced34a4fd33e2e1d6dc96.zip
FreeBSD-src-647b92bf0a989dc8e99ced34a4fd33e2e1d6dc96.tar.gz
MFC 260206:
Rework the DSDT generation code a bit to generate more accurate info about LPC devices. Among other things, the LPC serial ports now appear as ACPI devices.
Diffstat (limited to 'usr.sbin/bhyve/post.c')
-rw-r--r--usr.sbin/bhyve/post.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/post.c b/usr.sbin/bhyve/post.c
index 092a551..5215a0c 100644
--- a/usr.sbin/bhyve/post.c
+++ b/usr.sbin/bhyve/post.c
@@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
#include <assert.h>
#include "inout.h"
+#include "pci_lpc.h"
static int
post_data_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
@@ -49,3 +50,4 @@ post_data_handler(struct vmctx *ctx, int vcpu, int in, int port, int bytes,
}
INOUT_PORT(post, 0x84, IOPORT_F_IN, post_data_handler);
+SYSRES_IO(0x84, 1);
OpenPOWER on IntegriCloud