1155086Spjd/*- 2155086Spjd * Copyright (c) 2006 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3155086Spjd * All rights reserved. 4155086Spjd * 5155086Spjd * Redistribution and use in source and binary forms, with or without 6155086Spjd * modification, are permitted provided that the following conditions 7155086Spjd * are met: 8155086Spjd * 1. Redistributions of source code must retain the above copyright 9155086Spjd * notice, this list of conditions and the following disclaimer. 10155086Spjd * 2. Redistributions in binary form must reproduce the above copyright 11155086Spjd * notice, this list of conditions and the following disclaimer in the 12155086Spjd * documentation and/or other materials provided with the distribution. 13155086Spjd * 14155086Spjd * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 15155086Spjd * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16155086Spjd * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17155086Spjd * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 18155086Spjd * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19155086Spjd * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20155086Spjd * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21155086Spjd * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22155086Spjd * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23155086Spjd * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24155086Spjd * SUCH DAMAGE. 25155086Spjd * 26155086Spjd * $FreeBSD$ 27155086Spjd */ 28155086Spjd 29155086Spjd#ifndef _VM_REDZONE_H_ 30155086Spjd#define _VM_REDZONE_H_ 31155086Spjd 32155086Spjdu_long redzone_get_size(caddr_t naddr); 33155086Spjdu_long redzone_size_ntor(u_long nsize); 34155086Spjdvoid *redzone_addr_ntor(caddr_t naddr); 35155086Spjdvoid *redzone_setup(caddr_t raddr, u_long nsize); 36155086Spjdvoid redzone_check(caddr_t naddr); 37155086Spjd 38155086Spjd#endif /* _VM_REDZONE_H_ */ 39