1214082Sdim/*- 2214082Sdim * Copyright (c) 2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3214082Sdim * All rights reserved. 4214082Sdim * 5214082Sdim * Redistribution and use in source and binary forms, with or without 6214082Sdim * modification, are permitted provided that the following conditions 7214082Sdim * are met: 8214082Sdim * 1. Redistributions of source code must retain the above copyright 9214082Sdim * notice, this list of conditions and the following disclaimer. 10214082Sdim * 2. Redistributions in binary form must reproduce the above copyright 11214082Sdim * notice, this list of conditions and the following disclaimer in the 12214082Sdim * documentation and/or other materials provided with the distribution. 13214082Sdim * 14214082Sdim * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 15214082Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16214082Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17214082Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 18214082Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19214082Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20214082Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21214082Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22214082Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23214082Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24214082Sdim * SUCH DAMAGE. 25214082Sdim * 26214082Sdim * $FreeBSD$ 27214082Sdim */ 28214082Sdim 29214082Sdim#ifndef _VM_REDZONE_H_ 30214082Sdim#define _VM_REDZONE_H_ 31214082Sdim 32214082Sdimu_long redzone_get_size(caddr_t naddr); 33214082Sdimu_long redzone_size_ntor(u_long nsize); 34214082Sdimvoid *redzone_addr_ntor(caddr_t naddr); 35214082Sdimvoid *redzone_setup(caddr_t raddr, u_long nsize); 36214082Sdimvoid redzone_check(caddr_t naddr); 37214082Sdim 38214082Sdim#endif /* _VM_REDZONE_H_ */ 39214082Sdim