Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/hv_net_vsc.h
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Lines | |||||
#define TRANSPORT_TYPE_IPV6_TCP ((TYPE_IPV6 << 16) | TYPE_TCP) | #define TRANSPORT_TYPE_IPV6_TCP ((TYPE_IPV6 << 16) | TYPE_TCP) | ||||
#define TRANSPORT_TYPE_IPV6_UDP ((TYPE_IPV6 << 16) | TYPE_UDP) | #define TRANSPORT_TYPE_IPV6_UDP ((TYPE_IPV6 << 16) | TYPE_UDP) | ||||
typedef struct { | typedef struct { | ||||
uint8_t mac_addr[6]; /* Assumption unsigned long */ | uint8_t mac_addr[6]; /* Assumption unsigned long */ | ||||
uint8_t link_state; | uint8_t link_state; | ||||
} netvsc_device_info; | } netvsc_device_info; | ||||
#define HN_XACT_REQ_PGCNT 2 | |||||
#define HN_XACT_RESP_PGCNT 2 | |||||
#define HN_XACT_REQ_SIZE (HN_XACT_REQ_PGCNT * PAGE_SIZE) | |||||
#define HN_XACT_RESP_SIZE (HN_XACT_RESP_PGCNT * PAGE_SIZE) | |||||
#ifndef HN_USE_TXDESC_BUFRING | #ifndef HN_USE_TXDESC_BUFRING | ||||
struct hn_txdesc; | struct hn_txdesc; | ||||
SLIST_HEAD(hn_txdesc_list, hn_txdesc); | SLIST_HEAD(hn_txdesc_list, hn_txdesc); | ||||
#else | #else | ||||
struct buf_ring; | struct buf_ring; | ||||
#endif | #endif | ||||
struct hn_tx_ring; | struct hn_tx_ring; | ||||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | typedef struct hn_softc { | ||||
uint32_t hn_flags; | uint32_t hn_flags; | ||||
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; | ||||
struct hyperv_dma hn_chim_dma; | struct hyperv_dma hn_chim_dma; | ||||
uint32_t hn_rndis_rid; | |||||
} hn_softc_t; | } hn_softc_t; | ||||
#define HN_FLAG_RXBUF_CONNECTED 0x0001 | #define HN_FLAG_RXBUF_CONNECTED 0x0001 | ||||
#define HN_FLAG_CHIM_CONNECTED 0x0002 | #define HN_FLAG_CHIM_CONNECTED 0x0002 | ||||
/* | /* | ||||
* Externs | * Externs | ||||
*/ | */ | ||||
Show All 14 Lines |