Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135579106
D6444.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
D6444.diff
View Options
Index: head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
===================================================================
--- head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -113,6 +113,7 @@
#include <machine/in_cksum.h>
#include <dev/hyperv/include/hyperv.h>
+#include <dev/hyperv/include/hyperv_busdma.h>
#include "hv_net_vsc.h"
#include "hv_rndis.h"
#include "hv_rndis_filter.h"
@@ -2171,18 +2172,6 @@
}
static void
-hn_dma_map_paddr(void *arg, bus_dma_segment_t *segs, int nseg, int error)
-{
- bus_addr_t *paddr = arg;
-
- if (error)
- return;
-
- KASSERT(nseg == 1, ("too many segments %d!", nseg));
- *paddr = segs->ds_addr;
-}
-
-static void
hn_create_rx_data(struct hn_softc *sc, int ring_cnt)
{
struct sysctl_oid_list *child;
@@ -2472,7 +2461,7 @@
error = bus_dmamap_load(txr->hn_tx_rndis_dtag,
txd->rndis_msg_dmap,
txd->rndis_msg, HN_RNDIS_MSG_LEN,
- hn_dma_map_paddr, &txd->rndis_msg_paddr,
+ hyperv_dma_map_paddr, &txd->rndis_msg_paddr,
BUS_DMA_NOWAIT);
if (error) {
device_printf(sc->hn_dev,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 12, 12:19 AM (37 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25185901
Default Alt Text
D6444.diff (1 KB)
Attached To
Mode
D6444: hyperv/hn: Use hyperv busdma(9) helper.
Attached
Detach File
Event Timeline
Log In to Comment