1*8047ea2dSbouyer /* $NetBSD: xenmem.h,v 1.2 2022/08/31 12:53:27 bouyer Exp $ */ 2f461aebfSbouyer /* 3f461aebfSbouyer * Copyright (c) 2022 Manuel Bouyer. 4f461aebfSbouyer * 5f461aebfSbouyer * Redistribution and use in source and binary forms, with or without 6f461aebfSbouyer * modification, are permitted provided that the following conditions 7f461aebfSbouyer * are met: 8f461aebfSbouyer * 1. Redistributions of source code must retain the above copyright 9f461aebfSbouyer * notice, this list of conditions and the following disclaimer. 10f461aebfSbouyer * 2. Redistributions in binary form must reproduce the above copyright 11f461aebfSbouyer * notice, this list of conditions and the following disclaimer in the 12f461aebfSbouyer * documentation and/or other materials provided with the distribution. 13f461aebfSbouyer * 14f461aebfSbouyer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 15f461aebfSbouyer * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 16f461aebfSbouyer * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17f461aebfSbouyer * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18f461aebfSbouyer * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19f461aebfSbouyer * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20f461aebfSbouyer * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21f461aebfSbouyer * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22f461aebfSbouyer * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23f461aebfSbouyer * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24f461aebfSbouyer * 25f461aebfSbouyer */ 26f461aebfSbouyer 27f461aebfSbouyer /* Xen physical space management */ 28f461aebfSbouyer 29f461aebfSbouyer #ifndef _XEN_XENMEM_H_ 30f461aebfSbouyer #define _XEN_XENMEM_H_ 31f461aebfSbouyer #include "opt_xen.h" 32f461aebfSbouyer 33f461aebfSbouyer paddr_t xenmem_alloc_pa(u_long, u_long, bool); 34f461aebfSbouyer void xenmem_free_pa(paddr_t, u_long); 35f461aebfSbouyer 36f461aebfSbouyer #endif /* _XEN_XENMEM_H_ */ 37