11.2Sbouyer/* $NetBSD: xenmem.h,v 1.2 2022/08/31 12:53:27 bouyer Exp $ */ 21.1Sbouyer/* 31.1Sbouyer * Copyright (c) 2022 Manuel Bouyer. 41.1Sbouyer * 51.1Sbouyer * Redistribution and use in source and binary forms, with or without 61.1Sbouyer * modification, are permitted provided that the following conditions 71.1Sbouyer * are met: 81.1Sbouyer * 1. Redistributions of source code must retain the above copyright 91.1Sbouyer * notice, this list of conditions and the following disclaimer. 101.1Sbouyer * 2. Redistributions in binary form must reproduce the above copyright 111.1Sbouyer * notice, this list of conditions and the following disclaimer in the 121.1Sbouyer * documentation and/or other materials provided with the distribution. 131.1Sbouyer * 141.1Sbouyer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 151.1Sbouyer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 161.1Sbouyer * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 171.1Sbouyer * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 181.1Sbouyer * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 191.1Sbouyer * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 201.1Sbouyer * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 211.1Sbouyer * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 221.1Sbouyer * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 231.1Sbouyer * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 241.1Sbouyer * 251.1Sbouyer */ 261.1Sbouyer 271.1Sbouyer/* Xen physical space management */ 281.1Sbouyer 291.1Sbouyer#ifndef _XEN_XENMEM_H_ 301.1Sbouyer#define _XEN_XENMEM_H_ 311.1Sbouyer#include "opt_xen.h" 321.1Sbouyer 331.1Sbouyerpaddr_t xenmem_alloc_pa(u_long, u_long, bool); 341.1Sbouyervoid xenmem_free_pa(paddr_t, u_long); 351.1Sbouyer 361.1Sbouyer#endif /* _XEN_XENMEM_H_ */ 37