1*d462db96Sriastradh /* $NetBSD: pmap_pvt.h,v 1.3 2022/02/16 20:14:06 riastradh Exp $ */ 2b70033bcSskrll 3b70033bcSskrll /*- 4b70033bcSskrll * Copyright (c) 2014 The NetBSD Foundation, Inc. 5b70033bcSskrll * All rights reserved. 6b70033bcSskrll * 7b70033bcSskrll * This code is derived from software contributed to The NetBSD Foundation 8b70033bcSskrll * by Taylor R. Campbell. 9b70033bcSskrll * 10b70033bcSskrll * Redistribution and use in source and binary forms, with or without 11b70033bcSskrll * modification, are permitted provided that the following conditions 12b70033bcSskrll * are met: 13b70033bcSskrll * 1. Redistributions of source code must retain the above copyright 14b70033bcSskrll * notice, this list of conditions and the following disclaimer. 15b70033bcSskrll * 2. Redistributions in binary form must reproduce the above copyright 16b70033bcSskrll * notice, this list of conditions and the following disclaimer in the 17b70033bcSskrll * documentation and/or other materials provided with the distribution. 18b70033bcSskrll * 19b70033bcSskrll * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20b70033bcSskrll * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21b70033bcSskrll * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22b70033bcSskrll * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23b70033bcSskrll * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24b70033bcSskrll * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25b70033bcSskrll * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26b70033bcSskrll * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27b70033bcSskrll * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28b70033bcSskrll * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29b70033bcSskrll * POSSIBILITY OF SUCH DAMAGE. 30b70033bcSskrll */ 31b70033bcSskrll 32b70033bcSskrll 330070107fSskrll #ifndef _UVM_PMAP_PMAP_PVT_H_ 340070107fSskrll #define _UVM_PMAP_PMAP_PVT_H_ 35b70033bcSskrll 36*d462db96Sriastradh #include <sys/types.h> 37b70033bcSskrll 38b70033bcSskrll struct pmap_page; 39b70033bcSskrll 40b70033bcSskrll void pmap_pv_init(void); 41b70033bcSskrll 42b70033bcSskrll void pmap_pv_track(paddr_t, psize_t); 43b70033bcSskrll void pmap_pv_untrack(paddr_t, psize_t); 44b70033bcSskrll 45b70033bcSskrll struct pmap_page *pmap_pv_tracked(paddr_t); 46b70033bcSskrll 470070107fSskrll #endif /* _UVM_PMAP_PMAP_PVT_H_ */ 48