vmbus_var.h (302408) | vmbus_var.h (307278) |
---|---|
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/vmbus/vmbus_var.h 301588 2016-06-08 07:47:21Z sephe $ | 26 * $FreeBSD: stable/11/sys/dev/hyperv/vmbus/vmbus_var.h 307278 2016-10-14 07:27:29Z sephe $ |
27 */ 28 29#ifndef _VMBUS_VAR_H_ 30#define _VMBUS_VAR_H_ 31 32#include <sys/param.h> 33#include <sys/bus_dma.h> 34#include <sys/taskqueue.h> --- 29 unchanged lines hidden (view full) --- 64struct vmbus_softc { 65 void (*vmbus_event_proc)(struct vmbus_softc *, int); 66 u_long *vmbus_tx_evtflags; 67 /* event flags to host */ 68 void *vmbus_mnf2; /* monitored by host */ 69 70 u_long *vmbus_rx_evtflags; 71 /* compat evtflgs from host */ | 27 */ 28 29#ifndef _VMBUS_VAR_H_ 30#define _VMBUS_VAR_H_ 31 32#include <sys/param.h> 33#include <sys/bus_dma.h> 34#include <sys/taskqueue.h> --- 29 unchanged lines hidden (view full) --- 64struct vmbus_softc { 65 void (*vmbus_event_proc)(struct vmbus_softc *, int); 66 u_long *vmbus_tx_evtflags; 67 /* event flags to host */ 68 void *vmbus_mnf2; /* monitored by host */ 69 70 u_long *vmbus_rx_evtflags; 71 /* compat evtflgs from host */ |
72 struct vmbus_msghc_ctx *vmbus_msg_hc; |
|
72 struct vmbus_pcpu_data vmbus_pcpu[MAXCPU]; 73 74 /* Rarely used fields */ 75 device_t vmbus_dev; 76 int vmbus_idtvec; 77 uint32_t vmbus_flags; /* see VMBUS_FLAG_ */ 78 79 /* Shared memory for vmbus_{rx,tx}_evtflags */ --- 23 unchanged lines hidden (view full) --- 103} 104 105#define VMBUS_PCPU_GET(sc, field, cpu) (sc)->vmbus_pcpu[(cpu)].field 106#define VMBUS_PCPU_PTR(sc, field, cpu) &(sc)->vmbus_pcpu[(cpu)].field 107 108struct hv_vmbus_channel; 109struct trapframe; 110struct vmbus_message; | 73 struct vmbus_pcpu_data vmbus_pcpu[MAXCPU]; 74 75 /* Rarely used fields */ 76 device_t vmbus_dev; 77 int vmbus_idtvec; 78 uint32_t vmbus_flags; /* see VMBUS_FLAG_ */ 79 80 /* Shared memory for vmbus_{rx,tx}_evtflags */ --- 23 unchanged lines hidden (view full) --- 104} 105 106#define VMBUS_PCPU_GET(sc, field, cpu) (sc)->vmbus_pcpu[(cpu)].field 107#define VMBUS_PCPU_PTR(sc, field, cpu) &(sc)->vmbus_pcpu[(cpu)].field 108 109struct hv_vmbus_channel; 110struct trapframe; 111struct vmbus_message; |
112struct vmbus_msghc; |
|
111 112void vmbus_on_channel_open(const struct hv_vmbus_channel *); 113void vmbus_event_proc(struct vmbus_softc *, int); 114void vmbus_event_proc_compat(struct vmbus_softc *, int); 115void vmbus_handle_intr(struct trapframe *); 116 117void vmbus_et_intr(struct trapframe *); 118 119void vmbus_chan_msgproc(struct vmbus_softc *, const struct vmbus_message *); 120 | 113 114void vmbus_on_channel_open(const struct hv_vmbus_channel *); 115void vmbus_event_proc(struct vmbus_softc *, int); 116void vmbus_event_proc_compat(struct vmbus_softc *, int); 117void vmbus_handle_intr(struct trapframe *); 118 119void vmbus_et_intr(struct trapframe *); 120 121void vmbus_chan_msgproc(struct vmbus_softc *, const struct vmbus_message *); 122 |
123struct vmbus_msghc *vmbus_msghc_get(struct vmbus_softc *, size_t); 124void vmbus_msghc_put(struct vmbus_softc *, struct vmbus_msghc *); 125void *vmbus_msghc_dataptr(struct vmbus_msghc *); 126int vmbus_msghc_exec_noresult(struct vmbus_msghc *); 127int vmbus_msghc_exec(struct vmbus_softc *, struct vmbus_msghc *); 128const struct vmbus_message *vmbus_msghc_wait_result(struct vmbus_softc *, 129 struct vmbus_msghc *); 130void vmbus_msghc_wakeup(struct vmbus_softc *, const struct vmbus_message *); 131 |
|
121#endif /* !_VMBUS_VAR_H_ */ | 132#endif /* !_VMBUS_VAR_H_ */ |