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