Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | |||||
#include "hv_net_vsc.h" | #include "hv_net_vsc.h" | ||||
#include "hv_rndis.h" | #include "hv_rndis.h" | ||||
#include "hv_rndis_filter.h" | #include "hv_rndis_filter.h" | ||||
#include "vmbus_if.h" | #include "vmbus_if.h" | ||||
/* Short for Hyper-V network interface */ | /* Short for Hyper-V network interface */ | ||||
#define NETVSC_DEVNAME "hn" | #define NETVSC_DEVNAME "hn" | ||||
#define HN_XACT_REQ_SIZE (2 * PAGE_SIZE) | |||||
#define HN_XACT_RESP_SIZE (2 * PAGE_SIZE) | |||||
/* | /* | ||||
* It looks like offset 0 of buf is reserved to hold the softc pointer. | * It looks like offset 0 of buf is reserved to hold the softc pointer. | ||||
* The sc pointer evidently not needed, and is not presently populated. | * The sc pointer evidently not needed, and is not presently populated. | ||||
* The packet offset is where the netvsc_packet starts in the buffer. | * The packet offset is where the netvsc_packet starts in the buffer. | ||||
*/ | */ | ||||
#define HV_NV_SC_PTR_OFFSET_IN_BUF 0 | #define HV_NV_SC_PTR_OFFSET_IN_BUF 0 | ||||
#define HV_NV_PACKET_OFFSET_IN_BUF 16 | #define HV_NV_PACKET_OFFSET_IN_BUF 16 | ||||
▲ Show 20 Lines • Show All 2,942 Lines • Show Last 20 Lines |