Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_net_vsc.h
Show First 20 Lines • Show All 201 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Device-specific softc structure | * Device-specific softc structure | ||||
*/ | */ | ||||
struct hn_softc { | struct hn_softc { | ||||
struct ifnet *hn_ifp; | struct ifnet *hn_ifp; | ||||
struct ifmedia hn_media; | struct ifmedia hn_media; | ||||
device_t hn_dev; | device_t hn_dev; | ||||
int hn_carrier; | |||||
int hn_if_flags; | int hn_if_flags; | ||||
struct sx hn_lock; | struct sx hn_lock; | ||||
struct vmbus_channel *hn_prichan; | struct vmbus_channel *hn_prichan; | ||||
int hn_rx_ring_cnt; | int hn_rx_ring_cnt; | ||||
int hn_rx_ring_inuse; | int hn_rx_ring_inuse; | ||||
struct hn_rx_ring *hn_rx_ring; | struct hn_rx_ring *hn_rx_ring; | ||||
Show All 12 Lines | struct hn_softc { | ||||
struct sysctl_oid *hn_tx_sysctl_tree; | struct sysctl_oid *hn_tx_sysctl_tree; | ||||
struct sysctl_oid *hn_rx_sysctl_tree; | struct sysctl_oid *hn_rx_sysctl_tree; | ||||
struct vmbus_xact_ctx *hn_xact; | struct vmbus_xact_ctx *hn_xact; | ||||
uint32_t hn_nvs_ver; | uint32_t hn_nvs_ver; | ||||
struct taskqueue *hn_mgmt_taskq; | struct taskqueue *hn_mgmt_taskq; | ||||
struct taskqueue *hn_mgmt_taskq0; | struct taskqueue *hn_mgmt_taskq0; | ||||
struct task hn_link_task; | struct task hn_link_task; | ||||
struct task hn_netchg_init; | |||||
struct timeout_task hn_netchg_status; | |||||
uint32_t hn_link_flags; /* HN_LINK_FLAG_ */ | |||||
uint32_t hn_caps; /* HN_CAP_ */ | uint32_t hn_caps; /* HN_CAP_ */ | ||||
uint32_t hn_flags; /* HN_FLAG_ */ | uint32_t hn_flags; /* HN_FLAG_ */ | ||||
void *hn_rxbuf; | void *hn_rxbuf; | ||||
uint32_t hn_rxbuf_gpadl; | uint32_t hn_rxbuf_gpadl; | ||||
struct hyperv_dma hn_rxbuf_dma; | struct hyperv_dma hn_rxbuf_dma; | ||||
uint32_t hn_chim_gpadl; | uint32_t hn_chim_gpadl; | ||||
Show All 18 Lines | |||||
#define HN_CAP_IPCS 0x0004 | #define HN_CAP_IPCS 0x0004 | ||||
#define HN_CAP_TCP4CS 0x0008 | #define HN_CAP_TCP4CS 0x0008 | ||||
#define HN_CAP_TCP6CS 0x0010 | #define HN_CAP_TCP6CS 0x0010 | ||||
#define HN_CAP_UDP4CS 0x0020 | #define HN_CAP_UDP4CS 0x0020 | ||||
#define HN_CAP_UDP6CS 0x0040 | #define HN_CAP_UDP6CS 0x0040 | ||||
#define HN_CAP_TSO4 0x0080 | #define HN_CAP_TSO4 0x0080 | ||||
#define HN_CAP_TSO6 0x0100 | #define HN_CAP_TSO6 0x0100 | ||||
#define HN_CAP_HASHVAL 0x0200 | #define HN_CAP_HASHVAL 0x0200 | ||||
#define HN_LINK_FLAG_LINKUP 0x0001 | |||||
#define HN_LINK_FLAG_NETCHG 0x0002 | |||||
/* | /* | ||||
* Externs | * Externs | ||||
*/ | */ | ||||
struct hn_send_ctx; | struct hn_send_ctx; | ||||
int hv_nv_on_send(struct vmbus_channel *chan, uint32_t rndis_mtype, | int hv_nv_on_send(struct vmbus_channel *chan, uint32_t rndis_mtype, | ||||
struct hn_send_ctx *sndc, struct vmbus_gpa *gpa, int gpa_cnt); | struct hn_send_ctx *sndc, struct vmbus_gpa *gpa, int gpa_cnt); | ||||
#endif /* __HV_NET_VSC_H__ */ | #endif /* __HV_NET_VSC_H__ */ | ||||