Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/netvsc/hv_net_vsc.h
Show All 37 Lines | |||||
#ifndef __HV_NET_VSC_H__ | #ifndef __HV_NET_VSC_H__ | ||||
#define __HV_NET_VSC_H__ | #define __HV_NET_VSC_H__ | ||||
#include <sys/types.h> | #include <sys/types.h> | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/sx.h> | #include <sys/sx.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <netinet/tcp_lro.h> | #include <netinet/tcp_lro.h> | ||||
#include <net/if.h> | |||||
#include <net/if_media.h> | |||||
#include <dev/hyperv/include/hyperv.h> | #include <dev/hyperv/include/hyperv.h> | ||||
MALLOC_DECLARE(M_NETVSC); | MALLOC_DECLARE(M_NETVSC); | ||||
#define NVSP_INVALID_PROTOCOL_VERSION (0xFFFFFFFF) | #define NVSP_INVALID_PROTOCOL_VERSION (0xFFFFFFFF) | ||||
#define NVSP_PROTOCOL_VERSION_1 2 | #define NVSP_PROTOCOL_VERSION_1 2 | ||||
#define NVSP_PROTOCOL_VERSION_2 0x30002 | #define NVSP_PROTOCOL_VERSION_2 0x30002 | ||||
▲ Show 20 Lines • Show All 923 Lines • ▼ Show 20 Lines | typedef struct { | ||||
hv_bool_uint8_t link_state; | hv_bool_uint8_t link_state; | ||||
} netvsc_device_info; | } netvsc_device_info; | ||||
/* | /* | ||||
* Device-specific softc structure | * Device-specific softc structure | ||||
*/ | */ | ||||
typedef struct hn_softc { | typedef struct hn_softc { | ||||
struct ifnet *hn_ifp; | struct ifnet *hn_ifp; | ||||
struct ifmedia hn_media; | |||||
device_t hn_dev; | device_t hn_dev; | ||||
uint8_t hn_unit; | uint8_t hn_unit; | ||||
int hn_carrier; | int hn_carrier; | ||||
int hn_if_flags; | int hn_if_flags; | ||||
struct mtx hn_lock; | struct mtx hn_lock; | ||||
int hn_initdone; | int hn_initdone; | ||||
/* See hv_netvsc_drv_freebsd.c for rules on how to use */ | /* See hv_netvsc_drv_freebsd.c for rules on how to use */ | ||||
int temp_unusable; | int temp_unusable; | ||||
Show All 34 Lines |