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 307599 2016-10-19 02:24:17Z sephe $ |
27 */ 28 29#ifndef _VMBUS_VAR_H_ 30#define _VMBUS_VAR_H_ 31 32#include <sys/param.h> 33#include <sys/taskqueue.h> 34 --- 67 unchanged lines hidden (view full) --- 102 /* Shared memory for vmbus_{rx,tx}_evtflags */ 103 void *vmbus_evtflags; 104 struct hyperv_dma vmbus_evtflags_dma; 105 106 void *vmbus_mnf1; /* monitored by VM, unused */ 107 struct hyperv_dma vmbus_mnf1_dma; 108 struct hyperv_dma vmbus_mnf2_dma; 109 |
110 bool vmbus_scandone; 111 struct task vmbus_scandone_task; |
112 |
113 struct taskqueue *vmbus_devtq; /* for dev attach/detach */ 114 struct taskqueue *vmbus_subchtq; /* for sub-chan attach/detach */ 115 |
116 /* Primary channels */ 117 struct mtx vmbus_prichan_lock; 118 TAILQ_HEAD(, vmbus_channel) vmbus_prichans; |
119 120 /* Complete channel list */ 121 struct mtx vmbus_chan_lock; 122 TAILQ_HEAD(, vmbus_channel) vmbus_chans; |
123}; 124 125#define VMBUS_FLAG_ATTACHED 0x0001 /* vmbus was attached */ 126#define VMBUS_FLAG_SYNIC 0x0002 /* SynIC was setup */ 127 128#define VMBUS_PCPU_GET(sc, field, cpu) (sc)->vmbus_pcpu[(cpu)].field 129#define VMBUS_PCPU_PTR(sc, field, cpu) &(sc)->vmbus_pcpu[(cpu)].field 130 --- 25 unchanged lines hidden --- |