diff options
author | jhb <jhb@FreeBSD.org> | 2014-01-29 13:35:12 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-01-29 13:35:12 +0000 |
commit | 647b92bf0a989dc8e99ced34a4fd33e2e1d6dc96 (patch) | |
tree | ddf69a1306e432a02088c43f51d6530a00ac3dec /usr.sbin/bhyve/pci_emul.h | |
parent | 3e6f6a1694cd4c4265eab094e4a811fc9f1482a2 (diff) | |
download | FreeBSD-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/pci_emul.h')
-rw-r--r-- | usr.sbin/bhyve/pci_emul.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/bhyve/pci_emul.h b/usr.sbin/bhyve/pci_emul.h index 6a1d757..b97c5b1 100644 --- a/usr.sbin/bhyve/pci_emul.h +++ b/usr.sbin/bhyve/pci_emul.h @@ -51,6 +51,9 @@ struct pci_devemu { int (*pe_init)(struct vmctx *, struct pci_devinst *, char *opts); + /* ACPI DSDT enumeration */ + void (*pe_write_dsdt)(struct pci_devinst *); + /* config space read/write callbacks */ int (*pe_cfgwrite)(struct vmctx *ctx, int vcpu, struct pci_devinst *pi, int offset, @@ -213,6 +216,7 @@ int pci_emul_add_msixcap(struct pci_devinst *pi, int msgnum, int barnum); int pci_emul_msix_twrite(struct pci_devinst *pi, uint64_t offset, int size, uint64_t value); uint64_t pci_emul_msix_tread(struct pci_devinst *pi, uint64_t offset, int size); +void pci_write_dsdt(void); static __inline void pci_set_cfgdata8(struct pci_devinst *pi, int offset, uint8_t val) |