xref: /netbsd-src/sys/arch/dreamcast/include/kloader.h (revision 541ff757c7b6b687b8f0726bd2313349525acae2)
1*541ff757Sriastradh /* $NetBSD: kloader.h,v 1.6 2020/09/06 17:19:46 riastradh Exp $ */
2b201874aStsutsui 
3b201874aStsutsui /*-
43a292b1bSuch  * Copyright (c) 2002, 2004 The NetBSD Foundation, Inc.
5b201874aStsutsui  * All rights reserved.
6b201874aStsutsui  *
7b201874aStsutsui  * Redistribution and use in source and binary forms, with or without
8b201874aStsutsui  * modification, are permitted provided that the following conditions
9b201874aStsutsui  * are met:
10b201874aStsutsui  * 1. Redistributions of source code must retain the above copyright
11b201874aStsutsui  *    notice, this list of conditions and the following disclaimer.
12b201874aStsutsui  * 2. Redistributions in binary form must reproduce the above copyright
13b201874aStsutsui  *    notice, this list of conditions and the following disclaimer in the
14b201874aStsutsui  *    documentation and/or other materials provided with the distribution.
15b201874aStsutsui  *
16b201874aStsutsui  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17b201874aStsutsui  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18b201874aStsutsui  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19b201874aStsutsui  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20b201874aStsutsui  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21b201874aStsutsui  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22b201874aStsutsui  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23b201874aStsutsui  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24b201874aStsutsui  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25b201874aStsutsui  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26b201874aStsutsui  * POSSIBILITY OF SUCH DAMAGE.
27b201874aStsutsui  */
28b201874aStsutsui 
29*541ff757Sriastradh #ifndef	_DREAMCAST_KLOADER_H_
30*541ff757Sriastradh #define	_DREAMCAST_KLOADER_H_
31*541ff757Sriastradh 
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 
383a292b1bSuch /* Dreamcast port don't have bootinfo */
393a292b1bSuch #define	KLOADER_NO_BOOTINFO
403a292b1bSuch #define PG_VADDR(pg)	SH3_PHYS_TO_P1SEG(VM_PAGE_TO_PHYS(pg))
413a292b1bSuch #include <dev/kloader.h>
4234ff9ed4Smatt extern paddr_t avail_start, avail_end;
43*541ff757Sriastradh 
44*541ff757Sriastradh #endif	/* _DREAMCAST_KLOADER_H_ */
45