summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bhyve/pci_emul.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2013-07-04 05:35:56 +0000
committergrehan <grehan@FreeBSD.org>2013-07-04 05:35:56 +0000
commit4afc69bc7618a2445997ba51f65a74a54d461acb (patch)
tree1475820278721b7a4feacaea3c2716ad349e638a /usr.sbin/bhyve/pci_emul.h
parent67f40d0cd39e244cabb915e7828711647be1f159 (diff)
downloadFreeBSD-src-4afc69bc7618a2445997ba51f65a74a54d461acb.zip
FreeBSD-src-4afc69bc7618a2445997ba51f65a74a54d461acb.tar.gz
Support an optional "mac=" parameter to virtio-net config, to allow
users to set the MAC address for a device. Clean up some obsolete code in pci_virtio_net.c Allow an error return from a PCI device emulation's init routine to be propagated all the way back to the top-level and result in the process exiting. Submitted by: Dinakar Medavaram dinnu sun at gmail (original version)
Diffstat (limited to 'usr.sbin/bhyve/pci_emul.h')
-rw-r--r--usr.sbin/bhyve/pci_emul.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bhyve/pci_emul.h b/usr.sbin/bhyve/pci_emul.h
index 654b2f6..4e04a1e 100644
--- a/usr.sbin/bhyve/pci_emul.h
+++ b/usr.sbin/bhyve/pci_emul.h
@@ -183,7 +183,7 @@ struct pciecap {
uint16_t slot_status2;
} __packed;
-void init_pci(struct vmctx *ctx);
+int init_pci(struct vmctx *ctx);
void msicap_cfgwrite(struct pci_devinst *pi, int capoff, int offset,
int bytes, uint32_t val);
void msixcap_cfgwrite(struct pci_devinst *pi, int capoff, int offset,
OpenPOWER on IntegriCloud