vmbus.h (307595) | vmbus.h (307599) |
---|---|
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 307595 2016-10-19 02:14:04Z sephe $ | 26 * $FreeBSD: stable/11/sys/dev/hyperv/include/vmbus.h 307599 2016-10-19 02:24:17Z sephe $ |
27 */ 28 29#ifndef _VMBUS_H_ 30#define _VMBUS_H_ 31 32#include <sys/param.h> 33#include <sys/bus.h> 34 --- 93 unchanged lines hidden (view full) --- 128 129int vmbus_chan_open(struct vmbus_channel *chan, 130 int txbr_size, int rxbr_size, const void *udata, int udlen, 131 vmbus_chan_callback_t cb, void *cbarg); 132int vmbus_chan_open_br(struct vmbus_channel *chan, 133 const struct vmbus_chan_br *cbr, const void *udata, 134 int udlen, vmbus_chan_callback_t cb, void *cbarg); 135void vmbus_chan_close(struct vmbus_channel *chan); | 27 */ 28 29#ifndef _VMBUS_H_ 30#define _VMBUS_H_ 31 32#include <sys/param.h> 33#include <sys/bus.h> 34 --- 93 unchanged lines hidden (view full) --- 128 129int vmbus_chan_open(struct vmbus_channel *chan, 130 int txbr_size, int rxbr_size, const void *udata, int udlen, 131 vmbus_chan_callback_t cb, void *cbarg); 132int vmbus_chan_open_br(struct vmbus_channel *chan, 133 const struct vmbus_chan_br *cbr, const void *udata, 134 int udlen, vmbus_chan_callback_t cb, void *cbarg); 135void vmbus_chan_close(struct vmbus_channel *chan); |
136void vmbus_chan_intr_drain(struct vmbus_channel *chan); |
|
136 137int vmbus_chan_gpadl_connect(struct vmbus_channel *chan, 138 bus_addr_t paddr, int size, uint32_t *gpadl); 139int vmbus_chan_gpadl_disconnect(struct vmbus_channel *chan, 140 uint32_t gpadl); 141 142void vmbus_chan_cpu_set(struct vmbus_channel *chan, int cpu); 143void vmbus_chan_cpu_rr(struct vmbus_channel *chan); --- 24 unchanged lines hidden (view full) --- 168 169uint32_t vmbus_chan_id(const struct vmbus_channel *chan); 170uint32_t vmbus_chan_subidx(const struct vmbus_channel *chan); 171bool vmbus_chan_is_primary(const struct vmbus_channel *chan); 172const struct hyperv_guid * 173 vmbus_chan_guid_inst(const struct vmbus_channel *chan); 174int vmbus_chan_prplist_nelem(int br_size, int prpcnt_max, 175 int dlen_max); | 137 138int vmbus_chan_gpadl_connect(struct vmbus_channel *chan, 139 bus_addr_t paddr, int size, uint32_t *gpadl); 140int vmbus_chan_gpadl_disconnect(struct vmbus_channel *chan, 141 uint32_t gpadl); 142 143void vmbus_chan_cpu_set(struct vmbus_channel *chan, int cpu); 144void vmbus_chan_cpu_rr(struct vmbus_channel *chan); --- 24 unchanged lines hidden (view full) --- 169 170uint32_t vmbus_chan_id(const struct vmbus_channel *chan); 171uint32_t vmbus_chan_subidx(const struct vmbus_channel *chan); 172bool vmbus_chan_is_primary(const struct vmbus_channel *chan); 173const struct hyperv_guid * 174 vmbus_chan_guid_inst(const struct vmbus_channel *chan); 175int vmbus_chan_prplist_nelem(int br_size, int prpcnt_max, 176 int dlen_max); |
177bool vmbus_chan_rx_empty(const struct vmbus_channel *chan); 178bool vmbus_chan_tx_empty(const struct vmbus_channel *chan); |
|
176 177#endif /* !_VMBUS_H_ */ | 179 180#endif /* !_VMBUS_H_ */ |