xref: /netbsd-src/sys/arch/bebox/include/powerpc.h (revision 02cdf4d2c869ecfa1ae5484cf77eefe2fbcc6d94)
1*02cdf4d2Sdsl /*	$NetBSD: powerpc.h,v 1.8 2009/03/14 14:45:58 dsl Exp $	*/
2fe3d055dSsakamoto 
3fe3d055dSsakamoto /*
4fe3d055dSsakamoto  * Copyright (C) 1996 Wolfgang Solfrank.
5fe3d055dSsakamoto  * Copyright (C) 1996 TooLs GmbH.
6fe3d055dSsakamoto  * All rights reserved.
7fe3d055dSsakamoto  *
8fe3d055dSsakamoto  * Redistribution and use in source and binary forms, with or without
9fe3d055dSsakamoto  * modification, are permitted provided that the following conditions
10fe3d055dSsakamoto  * are met:
11fe3d055dSsakamoto  * 1. Redistributions of source code must retain the above copyright
12fe3d055dSsakamoto  *    notice, this list of conditions and the following disclaimer.
13fe3d055dSsakamoto  * 2. Redistributions in binary form must reproduce the above copyright
14fe3d055dSsakamoto  *    notice, this list of conditions and the following disclaimer in the
15fe3d055dSsakamoto  *    documentation and/or other materials provided with the distribution.
16fe3d055dSsakamoto  * 3. All advertising materials mentioning features or use of this software
17fe3d055dSsakamoto  *    must display the following acknowledgement:
18fe3d055dSsakamoto  *	This product includes software developed by TooLs GmbH.
19fe3d055dSsakamoto  * 4. The name of TooLs GmbH may not be used to endorse or promote products
20fe3d055dSsakamoto  *    derived from this software without specific prior written permission.
21fe3d055dSsakamoto  *
22fe3d055dSsakamoto  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
23fe3d055dSsakamoto  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24fe3d055dSsakamoto  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25fe3d055dSsakamoto  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26fe3d055dSsakamoto  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
27fe3d055dSsakamoto  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28fe3d055dSsakamoto  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29fe3d055dSsakamoto  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
30fe3d055dSsakamoto  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31fe3d055dSsakamoto  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32fe3d055dSsakamoto  */
33fe3d055dSsakamoto #ifndef	_MACHINE_POWERPC_H_
34fe3d055dSsakamoto #define	_MACHINE_POWERPC_H_
35fe3d055dSsakamoto 
3615dd19eaSsakamoto struct mem_region {
3762ed8258Ssakamoto 	paddr_t start;
3862ed8258Ssakamoto 	psize_t size;
3915dd19eaSsakamoto };
4015dd19eaSsakamoto 
41d974db0aSgarbled void mem_regions(struct mem_region **, struct mem_region **);
4215dd19eaSsakamoto 
43fe3d055dSsakamoto /*
44fe3d055dSsakamoto  * These two functions get used solely in boot() in machdep.c.
45fe3d055dSsakamoto  *
46fe3d055dSsakamoto  * Not sure whether boot itself should be implementation dependent instead.	XXX
47fe3d055dSsakamoto  */
48*02cdf4d2Sdsl void ppc_exit(void) __attribute__((__noreturn__));
49*02cdf4d2Sdsl void ppc_boot(char *bootspec) __attribute__((__noreturn__));
50fe3d055dSsakamoto 
51fe3d055dSsakamoto #endif	/* _MACHINE_POWERPC_H_ */
52