Page MenuHomeFreeBSD

D39290.diff
No OneTemporary

D39290.diff

diff --git a/usr.sbin/bhyve/pci_passthru.h b/usr.sbin/bhyve/pci_passthru.h
--- a/usr.sbin/bhyve/pci_passthru.h
+++ b/usr.sbin/bhyve/pci_passthru.h
@@ -11,5 +11,20 @@
#include "pci_emul.h"
+struct passthru_softc {
+ struct pci_devinst *psc_pi;
+ /* ROM is handled like a BAR */
+ struct pcibar psc_bar[PCI_BARMAX_WITH_ROM + 1];
+ struct {
+ int capoff;
+ int msgctrl;
+ int emulated;
+ } psc_msi;
+ struct {
+ int capoff;
+ } psc_msix;
+ struct pcisel psc_sel;
+};
+
uint32_t read_config(const struct pcisel *sel, long reg, int width);
void write_config(const struct pcisel *sel, long reg, int width, uint32_t data);
diff --git a/usr.sbin/bhyve/pci_passthru.c b/usr.sbin/bhyve/pci_passthru.c
--- a/usr.sbin/bhyve/pci_passthru.c
+++ b/usr.sbin/bhyve/pci_passthru.c
@@ -80,21 +80,6 @@
static int pcifd = -1;
-struct passthru_softc {
- struct pci_devinst *psc_pi;
- /* ROM is handled like a BAR */
- struct pcibar psc_bar[PCI_BARMAX_WITH_ROM + 1];
- struct {
- int capoff;
- int msgctrl;
- int emulated;
- } psc_msi;
- struct {
- int capoff;
- } psc_msix;
- struct pcisel psc_sel;
-};
-
static int
msi_caplen(int msgctrl)
{

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 22, 9:13 AM (19 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27800338
Default Alt Text
D39290.diff (1 KB)

Event Timeline