Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hyperv/netvsc/if_hnreg.h
Context not available. | |||||
#define HN_NVS_VERSION_2 0x30002 | #define HN_NVS_VERSION_2 0x30002 | ||||
#define HN_NVS_VERSION_4 0x40000 | #define HN_NVS_VERSION_4 0x40000 | ||||
#define HN_NVS_VERSION_5 0x50000 | #define HN_NVS_VERSION_5 0x50000 | ||||
#define HN_NVS_VERSION_6 0x60000 | |||||
#define HN_NVS_VERSION_61 0x60001 | |||||
#define HN_NVS_RXBUF_SIG 0xcafe | #define HN_NVS_RXBUF_SIG 0xcafe | ||||
#define HN_NVS_CHIM_SIG 0xface | #define HN_NVS_CHIM_SIG 0xface | ||||
Context not available. | |||||
uint32_t nvs_ver_min; | uint32_t nvs_ver_min; | ||||
uint32_t nvs_ver_max; | uint32_t nvs_ver_max; | ||||
uint8_t nvs_rsvd[20]; | uint8_t nvs_rsvd[20]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_init) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_init) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_rsvd; | uint32_t nvs_rsvd; | ||||
uint64_t nvs_caps; /* HN_NVS_NDIS_CONF_ */ | uint64_t nvs_caps; /* HN_NVS_NDIS_CONF_ */ | ||||
uint8_t nvs_rsvd1[12]; | uint8_t nvs_rsvd1[12]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_ndis_conf) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_ndis_conf) >= HN_NVS_REQSIZE_MIN); | ||||
#define HN_NVS_NDIS_CONF_SRIOV 0x0004 | #define HN_NVS_NDIS_CONF_SRIOV 0x0004 | ||||
#define HN_NVS_NDIS_CONF_VLAN 0x0008 | #define HN_NVS_NDIS_CONF_VLAN 0x0008 | ||||
#define HN_NVS_NDIS_CONF_RSC 0x0080 | |||||
/* No response */ | /* No response */ | ||||
struct hn_nvs_ndis_init { | struct hn_nvs_ndis_init { | ||||
Context not available. | |||||
uint32_t nvs_ndis_major; /* NDIS_VERSION_MAJOR_ */ | uint32_t nvs_ndis_major; /* NDIS_VERSION_MAJOR_ */ | ||||
uint32_t nvs_ndis_minor; /* NDIS_VERSION_MINOR_ */ | uint32_t nvs_ndis_minor; /* NDIS_VERSION_MINOR_ */ | ||||
uint8_t nvs_rsvd[20]; | uint8_t nvs_rsvd[20]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_ndis_init) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_ndis_init) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_type; /* HN_NVS_TYPE_SET_DATAPATH */ | uint32_t nvs_type; /* HN_NVS_TYPE_SET_DATAPATH */ | ||||
uint32_t nvs_active_path;/* HN_NVS_DATAPATH_* */ | uint32_t nvs_active_path;/* HN_NVS_DATAPATH_* */ | ||||
uint32_t nvs_rsvd[6]; | uint32_t nvs_rsvd[6]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_datapath) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_datapath) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_gpadl; /* RXBUF vmbus GPADL */ | uint32_t nvs_gpadl; /* RXBUF vmbus GPADL */ | ||||
uint16_t nvs_sig; /* HN_NVS_RXBUF_SIG */ | uint16_t nvs_sig; /* HN_NVS_RXBUF_SIG */ | ||||
uint8_t nvs_rsvd[22]; | uint8_t nvs_rsvd[22]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_rxbuf_conn) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_rxbuf_conn) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_type; /* HN_NVS_TYPE_RXBUF_DISCONN */ | uint32_t nvs_type; /* HN_NVS_TYPE_RXBUF_DISCONN */ | ||||
uint16_t nvs_sig; /* HN_NVS_RXBUF_SIG */ | uint16_t nvs_sig; /* HN_NVS_RXBUF_SIG */ | ||||
uint8_t nvs_rsvd[26]; | uint8_t nvs_rsvd[26]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_rxbuf_disconn) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_rxbuf_disconn) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_gpadl; /* chimney buf vmbus GPADL */ | uint32_t nvs_gpadl; /* chimney buf vmbus GPADL */ | ||||
uint16_t nvs_sig; /* NDIS_NVS_CHIM_SIG */ | uint16_t nvs_sig; /* NDIS_NVS_CHIM_SIG */ | ||||
uint8_t nvs_rsvd[22]; | uint8_t nvs_rsvd[22]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_chim_conn) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_chim_conn) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_type; /* HN_NVS_TYPE_CHIM_DISCONN */ | uint32_t nvs_type; /* HN_NVS_TYPE_CHIM_DISCONN */ | ||||
uint16_t nvs_sig; /* HN_NVS_CHIM_SIG */ | uint16_t nvs_sig; /* HN_NVS_CHIM_SIG */ | ||||
uint8_t nvs_rsvd[26]; | uint8_t nvs_rsvd[26]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_chim_disconn) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_chim_disconn) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_op; /* HN_NVS_SUBCH_OP_ */ | uint32_t nvs_op; /* HN_NVS_SUBCH_OP_ */ | ||||
uint32_t nvs_nsubch; | uint32_t nvs_nsubch; | ||||
uint8_t nvs_rsvd[20]; | uint8_t nvs_rsvd[20]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_subch_req) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_subch_req) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_chim_idx; | uint32_t nvs_chim_idx; | ||||
uint32_t nvs_chim_sz; | uint32_t nvs_chim_sz; | ||||
uint8_t nvs_rsvd[16]; | uint8_t nvs_rsvd[16]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_rndis) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_rndis) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. | |||||
uint32_t nvs_type; /* HN_NVS_TYPE_RNDIS_ACK */ | uint32_t nvs_type; /* HN_NVS_TYPE_RNDIS_ACK */ | ||||
uint32_t nvs_status; /* HN_NVS_STATUS_ */ | uint32_t nvs_status; /* HN_NVS_STATUS_ */ | ||||
uint8_t nvs_rsvd[24]; | uint8_t nvs_rsvd[24]; | ||||
uint8_t nvs_msg_pad[8]; | |||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_rndis_ack) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_rndis_ack) >= HN_NVS_REQSIZE_MIN); | ||||
Context not available. |