Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/netvsc/ndis.h
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | struct ndis_offload_params { | ||||
uint8_t ndis_tcp6conn; /* 0 */ | uint8_t ndis_tcp6conn; /* 0 */ | ||||
uint32_t ndis_flags; /* 0 */ | uint32_t ndis_flags; /* 0 */ | ||||
/* NDIS >= 6.1 */ | /* NDIS >= 6.1 */ | ||||
uint8_t ndis_ipsecv2; /* NDIS_OFFLOAD_IPSECV2_ */ | uint8_t ndis_ipsecv2; /* NDIS_OFFLOAD_IPSECV2_ */ | ||||
uint8_t ndis_ipsecv2_ip4;/* NDIS_OFFLOAD_IPSECV2_ */ | uint8_t ndis_ipsecv2_ip4;/* NDIS_OFFLOAD_IPSECV2_ */ | ||||
/* NDIS >= 6.30 */ | /* NDIS >= 6.30 */ | ||||
uint8_t ndis_rsc_ip4; /* NDIS_OFFLOAD_RSC_ */ | uint8_t ndis_rsc_ip4; /* NDIS_OFFLOAD_RSC_ */ | ||||
uint8_t ndis_rsc_ip6; /* NDIS_OFFLOAD_RSC_ */ | uint8_t ndis_rsc_ip6; /* NDIS_OFFLOAD_RSC_ */ | ||||
uint32_t ndis_encap; /* NDIS_OFFLOAD_SET_ */ | uint8_t ndis_encap; /* NDIS_OFFLOAD_SET_ */ | ||||
uint32_t ndis_encap_types;/* NDIS_ENCAP_TYPE_ */ | uint8_t ndis_encap_types;/* NDIS_ENCAP_TYPE_ */ | ||||
}; | }; | ||||
#define NDIS_OFFLOAD_PARAMS_SIZE sizeof(struct ndis_offload_params) | #define NDIS_OFFLOAD_PARAMS_SIZE sizeof(struct ndis_offload_params) | ||||
#define NDIS_OFFLOAD_PARAMS_SIZE_6_1 \ | #define NDIS_OFFLOAD_PARAMS_SIZE_6_1 \ | ||||
__offsetof(struct ndis_offload_params, ndis_rsc_ip4) | __offsetof(struct ndis_offload_params, ndis_rsc_ip4) | ||||
#define NDIS_OFFLOAD_PARAMS_REV_2 2 /* NDIS 6.1 */ | #define NDIS_OFFLOAD_PARAMS_REV_2 2 /* NDIS 6.1 */ | ||||
#define NDIS_OFFLOAD_PARAMS_REV_3 3 /* NDIS 6.30 */ | #define NDIS_OFFLOAD_PARAMS_REV_3 3 /* NDIS 6.30 */ | ||||
▲ Show 20 Lines • Show All 172 Lines • ▼ Show 20 Lines | struct ndis_lsov2_offload { | ||||
uint32_t ndis_ip6_minsg; | uint32_t ndis_ip6_minsg; | ||||
uint32_t ndis_ip6_opts; | uint32_t ndis_ip6_opts; | ||||
#define NDIS_LSOV2_CAP_IP6EXT 0x001 | #define NDIS_LSOV2_CAP_IP6EXT 0x001 | ||||
#define NDIS_LSOV2_CAP_TCP6OPT 0x004 | #define NDIS_LSOV2_CAP_TCP6OPT 0x004 | ||||
}; | }; | ||||
struct ndis_ipsecv2_offload { | struct ndis_ipsecv2_offload { | ||||
uint32_t ndis_encap; /*NDIS_OFFLOAD_ENCAP_*/ | uint32_t ndis_encap; /*NDIS_OFFLOAD_ENCAP_*/ | ||||
uint16_t ndis_ip6; | uint8_t ndis_ip6; | ||||
uint16_t ndis_ip4opt; | uint8_t ndis_ip4opt; | ||||
uint16_t ndis_ip6ext; | uint8_t ndis_ip6ext; | ||||
uint16_t ndis_ah; | uint8_t ndis_ah; | ||||
uint16_t ndis_esp; | uint8_t ndis_esp; | ||||
uint16_t ndis_ah_esp; | uint8_t ndis_ah_esp; | ||||
uint16_t ndis_xport; | uint8_t ndis_xport; | ||||
uint16_t ndis_tun; | uint8_t ndis_tun; | ||||
uint16_t ndis_xport_tun; | uint8_t ndis_xport_tun; | ||||
uint16_t ndis_lso; | uint8_t ndis_lso; | ||||
uint16_t ndis_extseq; | uint8_t ndis_extseq; | ||||
uint32_t ndis_udp_esp; | uint32_t ndis_udp_esp; | ||||
uint32_t ndis_auth; | uint32_t ndis_auth; | ||||
uint32_t ndis_crypto; | uint32_t ndis_crypto; | ||||
uint32_t ndis_sa_caps; | uint32_t ndis_sa_caps; | ||||
}; | }; | ||||
struct ndis_rsc_offload { | struct ndis_rsc_offload { | ||||
uint16_t ndis_ip4; | uint8_t ndis_ip4; | ||||
uint16_t ndis_ip6; | uint8_t ndis_ip6; | ||||
}; | }; | ||||
struct ndis_encap_offload { | struct ndis_encap_offload { | ||||
uint32_t ndis_flags; | uint32_t ndis_flags; | ||||
uint32_t ndis_maxhdr; | uint32_t ndis_maxhdr; | ||||
}; | }; | ||||
struct ndis_offload { | struct ndis_offload { | ||||
▲ Show 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
#define NDIS_TXCSUM_INFO_MKL4CS(thoff, flag) \ | #define NDIS_TXCSUM_INFO_MKL4CS(thoff, flag) \ | ||||
((((uint32_t)(thoff)) << 16) | (flag)) | ((((uint32_t)(thoff)) << 16) | (flag)) | ||||
#define NDIS_TXCSUM_INFO_MKTCPCS(thoff) \ | #define NDIS_TXCSUM_INFO_MKTCPCS(thoff) \ | ||||
NDIS_TXCSUM_INFO_MKL4CS((thoff), NDIS_TXCSUM_INFO_TCPCS) | NDIS_TXCSUM_INFO_MKL4CS((thoff), NDIS_TXCSUM_INFO_TCPCS) | ||||
#define NDIS_TXCSUM_INFO_MKUDPCS(thoff) \ | #define NDIS_TXCSUM_INFO_MKUDPCS(thoff) \ | ||||
NDIS_TXCSUM_INFO_MKL4CS((thoff), NDIS_TXCSUM_INFO_UDPCS) | NDIS_TXCSUM_INFO_MKL4CS((thoff), NDIS_TXCSUM_INFO_UDPCS) | ||||
#endif /* !_NET_NDIS_H_ */ | #endif /* !_NET_NDIS_H_ */ |