Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/netvsc/if_hnreg.h
Show All 38 Lines | |||||
#define HN_NVS_RNDIS_MTYPE_DATA 0 | #define HN_NVS_RNDIS_MTYPE_DATA 0 | ||||
#define HN_NVS_RNDIS_MTYPE_CTRL 1 | #define HN_NVS_RNDIS_MTYPE_CTRL 1 | ||||
/* | /* | ||||
* NVS message transacion status codes. | * NVS message transacion status codes. | ||||
*/ | */ | ||||
#define HN_NVS_STATUS_OK 1 | #define HN_NVS_STATUS_OK 1 | ||||
#define HN_NVS_STATUS_FAILED 2 | |||||
/* | /* | ||||
* NVS request/response message types. | * NVS request/response message types. | ||||
*/ | */ | ||||
#define HN_NVS_TYPE_INIT 1 | #define HN_NVS_TYPE_INIT 1 | ||||
#define HN_NVS_TYPE_INIT_RESP 2 | #define HN_NVS_TYPE_INIT_RESP 2 | ||||
#define HN_NVS_TYPE_NDIS_INIT 100 | #define HN_NVS_TYPE_NDIS_INIT 100 | ||||
#define HN_NVS_TYPE_RXBUF_CONN 101 | #define HN_NVS_TYPE_RXBUF_CONN 101 | ||||
#define HN_NVS_TYPE_RXBUF_CONNRESP 102 | #define HN_NVS_TYPE_RXBUF_CONNRESP 102 | ||||
#define HN_NVS_TYPE_RXBUF_DISCONN 103 | #define HN_NVS_TYPE_RXBUF_DISCONN 103 | ||||
#define HN_NVS_TYPE_CHIM_CONN 104 | #define HN_NVS_TYPE_CHIM_CONN 104 | ||||
#define HN_NVS_TYPE_CHIM_CONNRESP 105 | #define HN_NVS_TYPE_CHIM_CONNRESP 105 | ||||
#define HN_NVS_TYPE_CHIM_DISCONN 106 | #define HN_NVS_TYPE_CHIM_DISCONN 106 | ||||
#define HN_NVS_TYPE_RNDIS 107 | #define HN_NVS_TYPE_RNDIS 107 | ||||
#define HN_NVS_TYPE_RNDIS_ACK 108 | |||||
#define HN_NVS_TYPE_NDIS_CONF 125 | #define HN_NVS_TYPE_NDIS_CONF 125 | ||||
#define HN_NVS_TYPE_VFASSOC_NOTE 128 /* notification */ | #define HN_NVS_TYPE_VFASSOC_NOTE 128 /* notification */ | ||||
#define HN_NVS_TYPE_SET_DATAPATH 129 | #define HN_NVS_TYPE_SET_DATAPATH 129 | ||||
#define HN_NVS_TYPE_SUBCH_REQ 133 | #define HN_NVS_TYPE_SUBCH_REQ 133 | ||||
#define HN_NVS_TYPE_SUBCH_RESP 133 /* same as SUBCH_REQ */ | #define HN_NVS_TYPE_SUBCH_RESP 133 /* same as SUBCH_REQ */ | ||||
#define HN_NVS_TYPE_TXTBL_NOTE 134 /* notification */ | #define HN_NVS_TYPE_TXTBL_NOTE 134 /* notification */ | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | struct hn_nvs_rndis { | ||||
* and nvs_chim_sz is set to 0, then chimney sending | * and nvs_chim_sz is set to 0, then chimney sending | ||||
* buffer is _not_ used by this RNDIS message. | * buffer is _not_ used by this RNDIS message. | ||||
*/ | */ | ||||
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]; | ||||
} __packed; | } __packed; | ||||
CTASSERT(sizeof(struct hn_nvs_rndis) >= HN_NVS_REQSIZE_MIN); | CTASSERT(sizeof(struct hn_nvs_rndis) >= HN_NVS_REQSIZE_MIN); | ||||
struct hn_nvs_rndis_ack { | |||||
uint32_t nvs_type; /* HN_NVS_TYPE_RNDIS_ACK */ | |||||
uint32_t nvs_status; /* HN_NVS_STATUS_ */ | |||||
uint8_t nvs_rsvd[24]; | |||||
} __packed; | |||||
CTASSERT(sizeof(struct hn_nvs_rndis_ack) >= HN_NVS_REQSIZE_MIN); | |||||
#endif /* !_IF_HNREG_H_ */ | #endif /* !_IF_HNREG_H_ */ |