15cb904dcSSepherosa Ziehau /*- 25cb904dcSSepherosa Ziehau * Copyright (c) 2016 Microsoft Corp. 35cb904dcSSepherosa Ziehau * All rights reserved. 45cb904dcSSepherosa Ziehau * 55cb904dcSSepherosa Ziehau * Redistribution and use in source and binary forms, with or without 65cb904dcSSepherosa Ziehau * modification, are permitted provided that the following conditions 75cb904dcSSepherosa Ziehau * are met: 85cb904dcSSepherosa Ziehau * 1. Redistributions of source code must retain the above copyright 95cb904dcSSepherosa Ziehau * notice unmodified, this list of conditions, and the following 105cb904dcSSepherosa Ziehau * disclaimer. 115cb904dcSSepherosa Ziehau * 2. Redistributions in binary form must reproduce the above copyright 125cb904dcSSepherosa Ziehau * notice, this list of conditions and the following disclaimer in the 135cb904dcSSepherosa Ziehau * documentation and/or other materials provided with the distribution. 145cb904dcSSepherosa Ziehau * 155cb904dcSSepherosa Ziehau * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 165cb904dcSSepherosa Ziehau * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 175cb904dcSSepherosa Ziehau * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 185cb904dcSSepherosa Ziehau * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 195cb904dcSSepherosa Ziehau * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 205cb904dcSSepherosa Ziehau * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 215cb904dcSSepherosa Ziehau * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 225cb904dcSSepherosa Ziehau * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 235cb904dcSSepherosa Ziehau * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 245cb904dcSSepherosa Ziehau * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 255cb904dcSSepherosa Ziehau * 265cb904dcSSepherosa Ziehau * $FreeBSD$ 275cb904dcSSepherosa Ziehau */ 285cb904dcSSepherosa Ziehau 295cb904dcSSepherosa Ziehau #ifndef _HYPERV_VAR_H_ 305cb904dcSSepherosa Ziehau #define _HYPERV_VAR_H_ 315cb904dcSSepherosa Ziehau 325cb904dcSSepherosa Ziehau extern u_int hyperv_recommends; 335cb904dcSSepherosa Ziehau 34*9729f076SSouradeep Chakrabarti struct hypercall_ctx { 35*9729f076SSouradeep Chakrabarti void *hc_addr; 36*9729f076SSouradeep Chakrabarti vm_paddr_t hc_paddr; 37*9729f076SSouradeep Chakrabarti }; 38236764b1SSepherosa Ziehau uint64_t hypercall_post_message(bus_addr_t msg_paddr); 39562d480bSSepherosa Ziehau uint64_t hypercall_signal_event(bus_addr_t monprm_paddr); 40236764b1SSepherosa Ziehau 415cb904dcSSepherosa Ziehau #endif /* !_HYPERV_VAR_H_ */ 42