1b18ac2d8SNeel Natu /*- 2*4d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 3ebc3c37cSMarcelo Araujo * 4b18ac2d8SNeel Natu * Copyright (c) 2013 Anish Gupta (akgupt3@gmail.com) 5b18ac2d8SNeel Natu * All rights reserved. 6b18ac2d8SNeel Natu * 7b18ac2d8SNeel Natu * Redistribution and use in source and binary forms, with or without 8b18ac2d8SNeel Natu * modification, are permitted provided that the following conditions 9b18ac2d8SNeel Natu * are met: 10b18ac2d8SNeel Natu * 1. Redistributions of source code must retain the above copyright 11b18ac2d8SNeel Natu * notice unmodified, this list of conditions, and the following 12b18ac2d8SNeel Natu * disclaimer. 13b18ac2d8SNeel Natu * 2. Redistributions in binary form must reproduce the above copyright 14b18ac2d8SNeel Natu * notice, this list of conditions and the following disclaimer in the 15b18ac2d8SNeel Natu * documentation and/or other materials provided with the distribution. 16b18ac2d8SNeel Natu * 17b18ac2d8SNeel Natu * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18b18ac2d8SNeel Natu * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19b18ac2d8SNeel Natu * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20b18ac2d8SNeel Natu * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21b18ac2d8SNeel Natu * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22b18ac2d8SNeel Natu * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23b18ac2d8SNeel Natu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24b18ac2d8SNeel Natu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25b18ac2d8SNeel Natu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26b18ac2d8SNeel Natu * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27b18ac2d8SNeel Natu * 28b18ac2d8SNeel Natu * $FreeBSD$ 29b18ac2d8SNeel Natu */ 30b18ac2d8SNeel Natu 31b18ac2d8SNeel Natu #ifndef _SVM_NPT_H_ 32b18ac2d8SNeel Natu #define _SVM_NPT_H_ 33b18ac2d8SNeel Natu 34eee8190aSPeter Grehan int svm_npt_init(int ipinum); 35a0b78f09SPeter Grehan struct vmspace *svm_npt_alloc(vm_offset_t min, vm_offset_t max); 36a0b78f09SPeter Grehan void svm_npt_free(struct vmspace *vmspace); 373d492b65SNeel Natu 38b18ac2d8SNeel Natu #endif /* _SVM_NPT_H_ */ 39