xref: /netbsd-src/sys/arch/macppc/include/powerpc.h (revision dca95b2a79a074542e60f895f1d4eb6c7183d497)
1*dca95b2aSmacallan /*	$NetBSD: powerpc.h,v 1.8 2013/05/13 00:21:56 macallan Exp $	*/
22be6df07Stsubai 
32be6df07Stsubai /*
42be6df07Stsubai  * Copyright (C) 1996 Wolfgang Solfrank.
52be6df07Stsubai  * Copyright (C) 1996 TooLs GmbH.
62be6df07Stsubai  * All rights reserved.
72be6df07Stsubai  *
82be6df07Stsubai  * Redistribution and use in source and binary forms, with or without
92be6df07Stsubai  * modification, are permitted provided that the following conditions
102be6df07Stsubai  * are met:
112be6df07Stsubai  * 1. Redistributions of source code must retain the above copyright
122be6df07Stsubai  *    notice, this list of conditions and the following disclaimer.
132be6df07Stsubai  * 2. Redistributions in binary form must reproduce the above copyright
142be6df07Stsubai  *    notice, this list of conditions and the following disclaimer in the
152be6df07Stsubai  *    documentation and/or other materials provided with the distribution.
162be6df07Stsubai  * 3. All advertising materials mentioning features or use of this software
172be6df07Stsubai  *    must display the following acknowledgement:
182be6df07Stsubai  *	This product includes software developed by TooLs GmbH.
192be6df07Stsubai  * 4. The name of TooLs GmbH may not be used to endorse or promote products
202be6df07Stsubai  *    derived from this software without specific prior written permission.
212be6df07Stsubai  *
222be6df07Stsubai  * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
232be6df07Stsubai  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
242be6df07Stsubai  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
252be6df07Stsubai  * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
262be6df07Stsubai  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
272be6df07Stsubai  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
282be6df07Stsubai  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
292be6df07Stsubai  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
302be6df07Stsubai  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
312be6df07Stsubai  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
322be6df07Stsubai  */
332be6df07Stsubai #ifndef	_MACHINE_POWERPC_H_
342be6df07Stsubai #define	_MACHINE_POWERPC_H_
352be6df07Stsubai 
362be6df07Stsubai struct mem_region {
37d4d74161Stsubai 	paddr_t start;
38d4d74161Stsubai 	psize_t size;
39265929b2Ssanjayl }__attribute__((packed));
402be6df07Stsubai 
4102cdf4d2Sdsl void mem_regions(struct mem_region **, struct mem_region **);
422be6df07Stsubai 
432be6df07Stsubai /*
442be6df07Stsubai  * These two functions get used solely in boot() in machdep.c.
452be6df07Stsubai  *
462be6df07Stsubai  * Not sure whether boot itself should be implementation dependent instead.	XXX
472be6df07Stsubai  */
4802cdf4d2Sdsl void ppc_exit(void) __attribute__((__noreturn__));
4902cdf4d2Sdsl void ppc_boot(char *bootspec) __attribute__((__noreturn__));
502be6df07Stsubai 
5102cdf4d2Sdsl int dk_match(char *name);
522be6df07Stsubai 
5302cdf4d2Sdsl void ofrootfound(void);
542be6df07Stsubai 
552be6df07Stsubai #endif	/* _MACHINE_POWERPC_H_ */
56