1*290a34a0Smatt /* $NetBSD: machdep.h,v 1.13 2009/12/14 00:46:11 matt Exp $ */ 26975dc93Sjonathan 36975dc93Sjonathan /* 46975dc93Sjonathan * Copyright (c) 1998 Jonathan Stone. All rights reserved. 56975dc93Sjonathan * 66975dc93Sjonathan * Redistribution and use in source and binary forms, with or without 76975dc93Sjonathan * modification, are permitted provided that the following conditions 86975dc93Sjonathan * are met: 96975dc93Sjonathan * 1. Redistributions of source code must retain the above copyright 106975dc93Sjonathan * notice, this list of conditions and the following disclaimer. 116975dc93Sjonathan * 2. Redistributions in binary form must reproduce the above copyright 126975dc93Sjonathan * notice, this list of conditions and the following disclaimer in the 136975dc93Sjonathan * documentation and/or other materials provided with the distribution. 146975dc93Sjonathan * 3. All advertising materials mentioning features or use of this software 156975dc93Sjonathan * must display the following acknowledgement: 166975dc93Sjonathan * This product includes software developed by Jonathan Stone for 176975dc93Sjonathan * the NetBSD Project. 186975dc93Sjonathan * 4. The name of the author may not be used to endorse or promote products 196975dc93Sjonathan * derived from this software without specific prior written permission. 206975dc93Sjonathan * 216975dc93Sjonathan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 226975dc93Sjonathan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 236975dc93Sjonathan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 246975dc93Sjonathan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 256975dc93Sjonathan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 266975dc93Sjonathan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 276975dc93Sjonathan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 286975dc93Sjonathan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 296975dc93Sjonathan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 306975dc93Sjonathan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 316975dc93Sjonathan */ 326975dc93Sjonathan 33636b65beSsimonb /* max memory for a model */ 34*290a34a0Smatt extern intptr_t physmem_boardmax; /* {model,simm}-specific bound on physmem */ 356975dc93Sjonathan 3620039b1dSmhitch struct memmap; 3720039b1dSmhitch 387eb99546Ssimonb /* PROM callback routines - see pmax/promcall.c */ 3902cdf4d2Sdsl void prom_findcons(int *, int *, int *); 40*290a34a0Smatt void prom_halt(int, char *) __dead; 4102cdf4d2Sdsl void prom_haltbutton(void); 4202cdf4d2Sdsl int prom_scsiid(int); 4302cdf4d2Sdsl char *prom_getenv(const char *); 4402cdf4d2Sdsl int prom_systype(void); 4502cdf4d2Sdsl int prom_getbitmap(struct memmap *); 46