1*7ac029ebSandvar /* $NetBSD: kloader.h,v 1.8 2023/03/26 19:10:33 andvar Exp $ */ 2768423b8Smartin 3768423b8Smartin /*- 4768423b8Smartin * Copyright (c) 2004 The NetBSD Foundation, Inc. 5768423b8Smartin * All rights reserved. 6768423b8Smartin * 7768423b8Smartin * Redistribution and use in source and binary forms, with or without 8768423b8Smartin * modification, are permitted provided that the following conditions 9768423b8Smartin * are met: 10768423b8Smartin * 1. Redistributions of source code must retain the above copyright 11768423b8Smartin * notice, this list of conditions and the following disclaimer. 12768423b8Smartin * 2. Redistributions in binary form must reproduce the above copyright 13768423b8Smartin * notice, this list of conditions and the following disclaimer in the 14768423b8Smartin * documentation and/or other materials provided with the distribution. 15768423b8Smartin * 16768423b8Smartin * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17768423b8Smartin * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18768423b8Smartin * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19768423b8Smartin * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20768423b8Smartin * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21768423b8Smartin * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22768423b8Smartin * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23768423b8Smartin * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24768423b8Smartin * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25768423b8Smartin * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26768423b8Smartin * POSSIBILITY OF SUCH DAMAGE. 27768423b8Smartin */ 28768423b8Smartin 29f83bdf55Sriastradh #ifndef _PLAYSTATION2_KLOADER_H_ 30f83bdf55Sriastradh #define _PLAYSTATION2_KLOADER_H_ 31f83bdf55Sriastradh 32f83bdf55Sriastradh #include <uvm/uvm_extern.h> 33f83bdf55Sriastradh #include <uvm/uvm_page.h> 34f83bdf55Sriastradh 35f83bdf55Sriastradh #include <mips/cpuregs.h> 36f83bdf55Sriastradh 37*7ac029ebSandvar /* Playstation 2 port kloader don't need bootinfo */ 38768423b8Smartin #define KLOADER_NO_BOOTINFO 39768423b8Smartin #define PG_VADDR(pg) MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(pg)) 40768423b8Smartin #include <dev/kloader.h> 4126d1955dSmatt 4226d1955dSmatt /* XXX: kludge: MI kloader.c assumes avail_start and avail_end are common */ 4326d1955dSmatt #define avail_start pmap_limits.avail_start 4426d1955dSmatt #define avail_end pmap_limits.avail_end 45f83bdf55Sriastradh 46f83bdf55Sriastradh #endif /* _PLAYSTATION2_KLOADER_H_ */ 47