powerpc.h revision 1.1
11.1Sis/* $NetBSD: powerpc.h,v 1.1 2000/05/25 22:12:01 is Exp $ */ 21.1Sis 31.1Sis/* 41.1Sis * Copyright (C) 1996 Wolfgang Solfrank. 51.1Sis * Copyright (C) 1996 TooLs GmbH. 61.1Sis * All rights reserved. 71.1Sis * 81.1Sis * Redistribution and use in source and binary forms, with or without 91.1Sis * modification, are permitted provided that the following conditions 101.1Sis * are met: 111.1Sis * 1. Redistributions of source code must retain the above copyright 121.1Sis * notice, this list of conditions and the following disclaimer. 131.1Sis * 2. Redistributions in binary form must reproduce the above copyright 141.1Sis * notice, this list of conditions and the following disclaimer in the 151.1Sis * documentation and/or other materials provided with the distribution. 161.1Sis * 3. All advertising materials mentioning features or use of this software 171.1Sis * must display the following acknowledgement: 181.1Sis * This product includes software developed by TooLs GmbH. 191.1Sis * 4. The name of TooLs GmbH may not be used to endorse or promote products 201.1Sis * derived from this software without specific prior written permission. 211.1Sis * 221.1Sis * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 231.1Sis * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 241.1Sis * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 251.1Sis * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 261.1Sis * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 271.1Sis * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 281.1Sis * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 291.1Sis * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 301.1Sis * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 311.1Sis * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 321.1Sis */ 331.1Sis#ifndef _MACHINE_POWERPC_H_ 341.1Sis#define _MACHINE_POWERPC_H_ 351.1Sis 361.1Sisstruct mem_region { 371.1Sis paddr_t start; 381.1Sis psize_t size; 391.1Sis}; 401.1Sis 411.1Sisvoid mem_regions __P((struct mem_region **, struct mem_region **)); 421.1Sis 431.1Sis/* 441.1Sis * These two functions get used solely in boot() in machdep.c. 451.1Sis * 461.1Sis * Not sure whether boot itself should be implementation dependent instead. XXX 471.1Sis */ 481.1Sisvoid ppc_exit __P((void)) __attribute__((__noreturn__)); 491.1Sisvoid ppc_boot __P((char *bootspec)) __attribute__((__noreturn__)); 501.1Sis 511.1Sisint dk_match __P((char *name)); 521.1Sis 531.1Sisvoid ofrootfound __P((void)); 541.1Sis 551.1Sisextern struct device *booted_device; 561.1Sisextern int booted_partition; 571.1Sis 581.1Sis#endif /* _MACHINE_POWERPC_H_ */ 59