vmbus_reg.h (307014) | vmbus_reg.h (307016) |
---|---|
1/*- 2 * Copyright (c) 2016 Microsoft Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2016 Microsoft Corp. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: stable/10/sys/dev/hyperv/vmbus/vmbus_reg.h 307014 2016-10-11 05:44:36Z sephe $ | 26 * $FreeBSD: stable/10/sys/dev/hyperv/vmbus/vmbus_reg.h 307016 2016-10-11 06:04:40Z sephe $ |
27 */ 28 29#ifndef _VMBUS_REG_H_ 30#define _VMBUS_REG_H_ 31 32#include <sys/param.h> 33 34/* --- 43 unchanged lines hidden (view full) --- 78#define VMBUS_CHAN_MAX (VMBUS_EVTFLAG_LEN * VMBUS_EVTFLAGS_MAX) 79 80/* 81 * Channel messages 82 * - Embedded in vmbus_message.msg_data, e.g. response. 83 * - Embedded in hypercall_postmsg_in.hc_data, e.g. request. 84 */ 85 | 27 */ 28 29#ifndef _VMBUS_REG_H_ 30#define _VMBUS_REG_H_ 31 32#include <sys/param.h> 33 34/* --- 43 unchanged lines hidden (view full) --- 78#define VMBUS_CHAN_MAX (VMBUS_EVTFLAG_LEN * VMBUS_EVTFLAGS_MAX) 79 80/* 81 * Channel messages 82 * - Embedded in vmbus_message.msg_data, e.g. response. 83 * - Embedded in hypercall_postmsg_in.hc_data, e.g. request. 84 */ 85 |
86#define VMBUS_CHANMSG_TYPE_CHANNEL_REQ 3 /* REQ */ |
|
86#define VMBUS_CHANMSG_TYPE_INIT_CONTACT 14 /* REQ */ 87#define VMBUS_CHANMSG_TYPE_VERSION_RESP 15 /* RESP */ | 87#define VMBUS_CHANMSG_TYPE_INIT_CONTACT 14 /* REQ */ 88#define VMBUS_CHANMSG_TYPE_VERSION_RESP 15 /* RESP */ |
89#define VMBUS_CHANMSG_TYPE_UNLOAD 16 /* REQ */ |
|
88 89struct vmbus_chanmsg_hdr { 90 uint32_t chm_type; /* VMBUS_CHANMSG_TYPE_ */ 91 uint32_t chm_rsvd; 92} __packed; 93 94/* VMBUS_CHANMSG_TYPE_INIT_CONTACT */ 95struct vmbus_chanmsg_init_contact { --- 6 unchanged lines hidden (view full) --- 102} __packed; 103 104/* VMBUS_CHANMSG_TYPE_VERSION_RESP */ 105struct vmbus_chanmsg_version_resp { 106 struct vmbus_chanmsg_hdr chm_hdr; 107 uint8_t chm_supp; 108} __packed; 109 | 90 91struct vmbus_chanmsg_hdr { 92 uint32_t chm_type; /* VMBUS_CHANMSG_TYPE_ */ 93 uint32_t chm_rsvd; 94} __packed; 95 96/* VMBUS_CHANMSG_TYPE_INIT_CONTACT */ 97struct vmbus_chanmsg_init_contact { --- 6 unchanged lines hidden (view full) --- 104} __packed; 105 106/* VMBUS_CHANMSG_TYPE_VERSION_RESP */ 107struct vmbus_chanmsg_version_resp { 108 struct vmbus_chanmsg_hdr chm_hdr; 109 uint8_t chm_supp; 110} __packed; 111 |
112/* VMBUS_CHANMSG_TYPE_CHANNEL_REQ */ 113struct vmbus_chanmsg_channel_req { 114 struct vmbus_chanmsg_hdr chm_hdr; 115} __packed; 116 117/* VMBUS_CHANMSG_TYPE_UNLOAD */ 118struct vmbus_chanmsg_unload { 119 struct vmbus_chanmsg_hdr chm_hdr; 120} __packed; 121 |
|
110#endif /* !_VMBUS_REG_H_ */ | 122#endif /* !_VMBUS_REG_H_ */ |