1*5e2e3786Srjs /* $NetBSD: powerpc.h,v 1.4 2006/05/09 14:04:38 rjs Exp $ */ 23dc55c12Smatt 33dc55c12Smatt /* 43dc55c12Smatt * Copyright (C) 1996 Wolfgang Solfrank. 53dc55c12Smatt * Copyright (C) 1996 TooLs GmbH. 63dc55c12Smatt * All rights reserved. 73dc55c12Smatt * 83dc55c12Smatt * Redistribution and use in source and binary forms, with or without 93dc55c12Smatt * modification, are permitted provided that the following conditions 103dc55c12Smatt * are met: 113dc55c12Smatt * 1. Redistributions of source code must retain the above copyright 123dc55c12Smatt * notice, this list of conditions and the following disclaimer. 133dc55c12Smatt * 2. Redistributions in binary form must reproduce the above copyright 143dc55c12Smatt * notice, this list of conditions and the following disclaimer in the 153dc55c12Smatt * documentation and/or other materials provided with the distribution. 163dc55c12Smatt * 3. All advertising materials mentioning features or use of this software 173dc55c12Smatt * must display the following acknowledgement: 183dc55c12Smatt * This product includes software developed by TooLs GmbH. 193dc55c12Smatt * 4. The name of TooLs GmbH may not be used to endorse or promote products 203dc55c12Smatt * derived from this software without specific prior written permission. 213dc55c12Smatt * 223dc55c12Smatt * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 233dc55c12Smatt * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 243dc55c12Smatt * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 253dc55c12Smatt * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 263dc55c12Smatt * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 273dc55c12Smatt * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 283dc55c12Smatt * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 293dc55c12Smatt * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 303dc55c12Smatt * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 313dc55c12Smatt * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 323dc55c12Smatt */ 333dc55c12Smatt #ifndef _MACHINE_POWERPC_H_ 343dc55c12Smatt #define _MACHINE_POWERPC_H_ 353dc55c12Smatt 363dc55c12Smatt struct mem_region { 373dc55c12Smatt paddr_t start; 383dc55c12Smatt psize_t size; 393dc55c12Smatt }; 403dc55c12Smatt 41*5e2e3786Srjs void mem_regions(struct mem_region **, struct mem_region **); 423dc55c12Smatt 433dc55c12Smatt /* 443dc55c12Smatt * These two functions get used solely in boot() in machdep.c. 453dc55c12Smatt * 463dc55c12Smatt * Not sure whether boot itself should be implementation dependent instead. XXX 473dc55c12Smatt */ 48*5e2e3786Srjs void ppc_exit(void) __attribute__((__noreturn__)); 49*5e2e3786Srjs void ppc_boot(char *bootspec) __attribute__((__noreturn__)); 503dc55c12Smatt 513dc55c12Smatt #endif /* _MACHINE_POWERPC_H_ */ 52