Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/include/vmbus.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
#define VMBUS_CHANPKT_TYPE_COMP 0x000b | #define VMBUS_CHANPKT_TYPE_COMP 0x000b | ||||
#define VMBUS_CHANPKT_FLAG_RC 0x0001 /* report completion */ | #define VMBUS_CHANPKT_FLAG_RC 0x0001 /* report completion */ | ||||
#define VMBUS_CHANPKT_CONST_DATA(pkt) \ | #define VMBUS_CHANPKT_CONST_DATA(pkt) \ | ||||
(const void *)((const uint8_t *)(pkt) + \ | (const void *)((const uint8_t *)(pkt) + \ | ||||
VMBUS_CHANPKT_GETLEN((pkt)->cph_hlen)) | VMBUS_CHANPKT_GETLEN((pkt)->cph_hlen)) | ||||
/* Include padding */ | |||||
#define VMBUS_CHANPKT_DATALEN(pkt) \ | |||||
(VMBUS_CHANPKT_GETLEN((pkt)->cph_tlen) -\ | |||||
VMBUS_CHANPKT_GETLEN((pkt)->cph_hlen)) | |||||
struct vmbus_rxbuf_desc { | struct vmbus_rxbuf_desc { | ||||
uint32_t rb_len; | uint32_t rb_len; | ||||
uint32_t rb_ofs; | uint32_t rb_ofs; | ||||
} __packed; | } __packed; | ||||
struct vmbus_chanpkt_rxbuf { | struct vmbus_chanpkt_rxbuf { | ||||
struct vmbus_chanpkt_hdr cp_hdr; | struct vmbus_chanpkt_hdr cp_hdr; | ||||
uint16_t cp_rxbuf_id; | uint16_t cp_rxbuf_id; | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |