Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142596302
D39290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D39290.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D39290: bhyve: export passthru softc
Attached
Detach File
Event Timeline
Log In to Comment