xref: /netbsd-src/sys/arch/prep/include/powerpc.h (revision ed0efbc5de0740ad62e8f9a8b5d19fafa4d76d02)
1*ed0efbc5Sgarbled /*	$NetBSD: powerpc.h,v 1.5 2006/05/09 02:52:39 garbled Exp $	*/
237eb9eebSnonaka 
337eb9eebSnonaka /*
437eb9eebSnonaka  * Copyright (C) 1996 Wolfgang Solfrank.
537eb9eebSnonaka  * Copyright (C) 1996 TooLs GmbH.
637eb9eebSnonaka  * All rights reserved.
737eb9eebSnonaka  *
837eb9eebSnonaka  * Redistribution and use in source and binary forms, with or without
937eb9eebSnonaka  * modification, are permitted provided that the following conditions
1037eb9eebSnonaka  * are met:
1137eb9eebSnonaka  * 1. Redistributions of source code must retain the above copyright
1237eb9eebSnonaka  *    notice, this list of conditions and the following disclaimer.
1337eb9eebSnonaka  * 2. Redistributions in binary form must reproduce the above copyright
1437eb9eebSnonaka  *    notice, this list of conditions and the following disclaimer in the
1537eb9eebSnonaka  *    documentation and/or other materials provided with the distribution.
1637eb9eebSnonaka  * 3. All advertising materials mentioning features or use of this software
1737eb9eebSnonaka  *    must display the following acknowledgement:
1837eb9eebSnonaka  *	This product includes software developed by TooLs GmbH.
1937eb9eebSnonaka  * 4. The name of TooLs GmbH may not be used to endorse or promote products
2037eb9eebSnonaka  *    derived from this software without specific prior written permission.
2137eb9eebSnonaka  *
2237eb9eebSnonaka  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
2337eb9eebSnonaka  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2437eb9eebSnonaka  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2537eb9eebSnonaka  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2637eb9eebSnonaka  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
2737eb9eebSnonaka  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
2837eb9eebSnonaka  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
2937eb9eebSnonaka  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
3037eb9eebSnonaka  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
3137eb9eebSnonaka  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3237eb9eebSnonaka  */
3337eb9eebSnonaka #ifndef	_MACHINE_POWERPC_H_
3437eb9eebSnonaka #define	_MACHINE_POWERPC_H_
3537eb9eebSnonaka 
3637eb9eebSnonaka struct mem_region {
3737eb9eebSnonaka 	paddr_t start;
3837eb9eebSnonaka 	psize_t size;
3937eb9eebSnonaka };
4037eb9eebSnonaka 
41*ed0efbc5Sgarbled void mem_regions(struct mem_region **, struct mem_region **);
4237eb9eebSnonaka 
4337eb9eebSnonaka /*
4437eb9eebSnonaka  * These two functions get used solely in boot() in machdep.c.
4537eb9eebSnonaka  *
4637eb9eebSnonaka  * Not sure whether boot itself should be implementation dependent instead. XXX
4737eb9eebSnonaka  */
48*ed0efbc5Sgarbled void ppc_exit(void) __attribute__((__noreturn__));
49*ed0efbc5Sgarbled void ppc_boot(char *) __attribute__((__noreturn__));
5037eb9eebSnonaka 
5137eb9eebSnonaka #endif	/* _MACHINE_POWERPC_H_ */
52