Deleted Added
full compact
vmbus.h (307466) vmbus.h (307471)
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/11/sys/dev/hyperv/include/vmbus.h 307466 2016-10-17 03:48:22Z sephe $
26 * $FreeBSD: stable/11/sys/dev/hyperv/include/vmbus.h 307471 2016-10-17 05:28:06Z sephe $
27 */
28
29#ifndef _VMBUS_H_
30#define _VMBUS_H_
31
32#include <sys/param.h>
33#include <sys/bus.h>
34

--- 62 unchanged lines hidden (view full) ---

97struct vmbus_chanpkt_rxbuf {
98 struct vmbus_chanpkt_hdr cp_hdr;
99 uint16_t cp_rxbuf_id;
100 uint16_t cp_rsvd;
101 uint32_t cp_rxbuf_cnt;
102 struct vmbus_rxbuf_desc cp_rxbuf[];
103} __packed;
104
27 */
28
29#ifndef _VMBUS_H_
30#define _VMBUS_H_
31
32#include <sys/param.h>
33#include <sys/bus.h>
34

--- 62 unchanged lines hidden (view full) ---

97struct vmbus_chanpkt_rxbuf {
98 struct vmbus_chanpkt_hdr cp_hdr;
99 uint16_t cp_rxbuf_id;
100 uint16_t cp_rsvd;
101 uint32_t cp_rxbuf_cnt;
102 struct vmbus_rxbuf_desc cp_rxbuf[];
103} __packed;
104
105#define VMBUS_CHAN_SGLIST_MAX 32
106#define VMBUS_CHAN_PRPLIST_MAX 32
107
108struct vmbus_channel;
109struct hyperv_guid;
110
111typedef void (*vmbus_chan_callback_t)(struct vmbus_channel *, void *);
112
113static __inline struct vmbus_channel *
114vmbus_get_channel(device_t dev)
115{

--- 47 unchanged lines hidden ---
105struct vmbus_channel;
106struct hyperv_guid;
107
108typedef void (*vmbus_chan_callback_t)(struct vmbus_channel *, void *);
109
110static __inline struct vmbus_channel *
111vmbus_get_channel(device_t dev)
112{

--- 47 unchanged lines hidden ---