Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/hyperv/include/hyperv.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
* 2.4 -- Windows 8 | * 2.4 -- Windows 8 | ||||
* 3.0 -- Windows 8.1 | * 3.0 -- Windows 8.1 | ||||
*/ | */ | ||||
#define HV_VMBUS_VERSION_WS2008 ((0 << 16) | (13)) | #define HV_VMBUS_VERSION_WS2008 ((0 << 16) | (13)) | ||||
#define HV_VMBUS_VERSION_WIN7 ((1 << 16) | (1)) | #define HV_VMBUS_VERSION_WIN7 ((1 << 16) | (1)) | ||||
#define HV_VMBUS_VERSION_WIN8 ((2 << 16) | (4)) | #define HV_VMBUS_VERSION_WIN8 ((2 << 16) | (4)) | ||||
#define HV_VMBUS_VERSION_WIN8_1 ((3 << 16) | (0)) | #define HV_VMBUS_VERSION_WIN8_1 ((3 << 16) | (0)) | ||||
#define HV_VMBUS_VERSION_INVALID -1 | |||||
#define HV_VMBUS_VERSION_CURRENT HV_VMBUS_VERSION_WIN8_1 | |||||
/* | /* | ||||
* Make maximum size of pipe payload of 16K | * Make maximum size of pipe payload of 16K | ||||
*/ | */ | ||||
#define HV_MAX_PIPE_DATA_PAYLOAD (sizeof(BYTE) * 16384) | #define HV_MAX_PIPE_DATA_PAYLOAD (sizeof(BYTE) * 16384) | ||||
/* | /* | ||||
* Define pipe_mode values | * Define pipe_mode values | ||||
▲ Show 20 Lines • Show All 439 Lines • ▼ Show 20 Lines | typedef struct { | ||||
hv_vmbus_channel_msg_header header; | hv_vmbus_channel_msg_header header; | ||||
uint32_t gpadl; | uint32_t gpadl; | ||||
} __packed hv_vmbus_channel_gpadl_torndown; | } __packed hv_vmbus_channel_gpadl_torndown; | ||||
typedef struct { | typedef struct { | ||||
hv_vmbus_channel_msg_header header; | hv_vmbus_channel_msg_header header; | ||||
uint32_t child_rel_id; | uint32_t child_rel_id; | ||||
} __packed hv_vmbus_channel_relid_released; | } __packed hv_vmbus_channel_relid_released; | ||||
typedef struct { | |||||
hv_vmbus_channel_msg_header header; | |||||
uint32_t vmbus_version_requested; | |||||
uint32_t padding2; | |||||
uint64_t interrupt_page; | |||||
uint64_t monitor_page_1; | |||||
uint64_t monitor_page_2; | |||||
} __packed hv_vmbus_channel_initiate_contact; | |||||
typedef struct { | |||||
hv_vmbus_channel_msg_header header; | |||||
hv_bool_uint8_t version_supported; | |||||
} __packed hv_vmbus_channel_version_response; | |||||
typedef hv_vmbus_channel_msg_header hv_vmbus_channel_unload; | typedef hv_vmbus_channel_msg_header hv_vmbus_channel_unload; | ||||
#define HW_MACADDR_LEN 6 | #define HW_MACADDR_LEN 6 | ||||
/* | /* | ||||
* Fixme: Added to quiet "typeof" errors involving hv_vmbus.h when | * Fixme: Added to quiet "typeof" errors involving hv_vmbus.h when | ||||
* the including C file was compiled with "-std=c99". | * the including C file was compiled with "-std=c99". | ||||
▲ Show 20 Lines • Show All 368 Lines • Show Last 20 Lines |