1*541ff757Sriastradh /* $NetBSD: kloader.h,v 1.4 2020/09/06 17:19:47 riastradh Exp $ */ 21fd097bfSuwe 31fd097bfSuwe /*- 41fd097bfSuwe * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc. 51fd097bfSuwe * All rights reserved. 61fd097bfSuwe * 71fd097bfSuwe * Redistribution and use in source and binary forms, with or without 81fd097bfSuwe * modification, are permitted provided that the following conditions 91fd097bfSuwe * are met: 101fd097bfSuwe * 1. Redistributions of source code must retain the above copyright 111fd097bfSuwe * notice, this list of conditions and the following disclaimer. 121fd097bfSuwe * 2. Redistributions in binary form must reproduce the above copyright 131fd097bfSuwe * notice, this list of conditions and the following disclaimer in the 141fd097bfSuwe * documentation and/or other materials provided with the distribution. 151fd097bfSuwe * 161fd097bfSuwe * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 171fd097bfSuwe * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 181fd097bfSuwe * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 191fd097bfSuwe * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 201fd097bfSuwe * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 211fd097bfSuwe * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 221fd097bfSuwe * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 231fd097bfSuwe * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 241fd097bfSuwe * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 251fd097bfSuwe * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 261fd097bfSuwe * POSSIBILITY OF SUCH DAMAGE. 271fd097bfSuwe */ 281fd097bfSuwe 291fd097bfSuwe #ifndef _LANDISK_KLOADER_H_ 301fd097bfSuwe #define _LANDISK_KLOADER_H_ 311fd097bfSuwe 32*541ff757Sriastradh #include <sys/types.h> 33*541ff757Sriastradh 34*541ff757Sriastradh #include <uvm/uvm_page.h> 35*541ff757Sriastradh 36*541ff757Sriastradh #include <machine/cpu.h> 37*541ff757Sriastradh 381fd097bfSuwe #define PG_VADDR(pg) SH3_PHYS_TO_P1SEG(VM_PAGE_TO_PHYS(pg)) 39c525e41fSmatt extern paddr_t avail_start, avail_end; 401fd097bfSuwe 411fd097bfSuwe #include <dev/kloader.h> 421fd097bfSuwe 431fd097bfSuwe #endif /* _LANDISK_KLOADER_H_ */ 44