Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108031387
D35944.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
D35944.diff
View Options
diff --git a/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c b/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c
--- a/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c
+++ b/emulators/parallels-tools/files/patch-pvmnet-if_pvmnet.c
@@ -1,6 +1,31 @@
--- pvmnet/if_pvmnet.c.orig 2014-02-14 14:09:06 UTC
+++ pvmnet/if_pvmnet.c
-@@ -364,12 +364,20 @@ pvmnetintr(void *arg)
+@@ -245,20 +245,21 @@ static driver_t pvmnet_driver = {
+ sizeof(struct pvmnet_softc)
+ };
+
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE(pvmnet, pci, pvmnet_driver, 0, 0);
++#else
+ static devclass_t pvmnet_devclass;
+
+ DRIVER_MODULE(pvmnet, pci, pvmnet_driver, pvmnet_devclass, 0, 0);
++#endif
+
+ static int
+ pvmnet_probe(device_t dev)
+ {
+ uint16_t devid, vendor;
+- uint16_t revid, sdevid;
+
+ vendor = pci_get_vendor(dev);
+ devid = pci_get_device(dev);
+- revid = pci_get_revid(dev);
+- sdevid = pci_get_subdevice(dev);
+
+ if (vendor != 0x10ec || devid != 0x8029)
+ return (ENXIO);
+@@ -364,12 +365,20 @@ pvmnetintr(void *arg)
for (offset = io_get_rcv_offset(sc);
(size = io_get_packet_size(sc, offset)); offset += FULL_PACKET_SIZE(size)) {
if (size > ETHER_MAX_LEN) {
@@ -21,7 +46,7 @@
continue;
}
m->m_pkthdr.rcvif = ifp;
-@@ -379,7 +387,11 @@ pvmnetintr(void *arg)
+@@ -379,7 +388,11 @@ pvmnetintr(void *arg)
m->m_pkthdr.len = m->m_len = size;
io_read_data(sc, offset, m);
@@ -33,7 +58,18 @@
PVMNET_UNLOCK(sc);
(*ifp->if_input)(ifp, m);
-@@ -538,7 +550,11 @@ pvmnet_start_locked(struct ifnet *ifp)
+@@ -427,8 +440,8 @@ static int pvmnet_alloc_resources(device_t dev)
+
+ error = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE,
+ NULL, pvmnetintr, sc, &sc->irq_handle);
+- if (!res)
+- return ENXIO;
++ if (error)
++ return error;
+ return (0);
+ }
+
+@@ -538,7 +551,11 @@ pvmnet_start_locked(struct ifnet *ifp)
io_notify_sndbuf_full(sc);
break;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 5:50 PM (19 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16018181
Default Alt Text
D35944.diff (1 KB)
Attached To
Mode
D35944: emulators/parallels-tools: Remove devclass from DRIVER_MODULE on recent main.
Attached
Detach File
Event Timeline
Log In to Comment