1*3c550524Sjoerg /* $NetBSD: common.h,v 1.11 2011/01/22 19:19:21 joerg Exp $ */ 2034554d0Ssimonb 3034554d0Ssimonb /*- 4034554d0Ssimonb * Copyright (c) 1999 The NetBSD Foundation, Inc. 5034554d0Ssimonb * All rights reserved. 6034554d0Ssimonb * 7034554d0Ssimonb * This code is derived from software contributed to The NetBSD Foundation 8034554d0Ssimonb * by Jonathan Stone, Michael Hitch and Simon Burge. 9034554d0Ssimonb * 10034554d0Ssimonb * Redistribution and use in source and binary forms, with or without 11034554d0Ssimonb * modification, are permitted provided that the following conditions 12034554d0Ssimonb * are met: 13034554d0Ssimonb * 1. Redistributions of source code must retain the above copyright 14034554d0Ssimonb * notice, this list of conditions and the following disclaimer. 15034554d0Ssimonb * 2. Redistributions in binary form must reproduce the above copyright 16034554d0Ssimonb * notice, this list of conditions and the following disclaimer in the 17034554d0Ssimonb * documentation and/or other materials provided with the distribution. 18034554d0Ssimonb * 19034554d0Ssimonb * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20034554d0Ssimonb * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21034554d0Ssimonb * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22034554d0Ssimonb * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23034554d0Ssimonb * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24034554d0Ssimonb * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25034554d0Ssimonb * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26034554d0Ssimonb * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27034554d0Ssimonb * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28034554d0Ssimonb * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29034554d0Ssimonb * POSSIBILITY OF SUCH DAMAGE. 30034554d0Ssimonb */ 31034554d0Ssimonb 3202383cdeSsimonb #ifdef NET_DEBUG 3302383cdeSsimonb extern int debug; /* only used for network debugging for now */ 3402383cdeSsimonb #endif 35feb0773eSgmcgarry 36034554d0Ssimonb /* startprog.S */ 3702cdf4d2Sdsl void startprog(int, int, int, char **, int, const void *, int, int); 38034554d0Ssimonb 39034554d0Ssimonb /* PROM callbacks */ 4002cdf4d2Sdsl int bootinit(const char *); 4102cdf4d2Sdsl int bootread(int, void *, int); 4202cdf4d2Sdsl int bootwrite(int, void *, int); 4302cdf4d2Sdsl char *getenv(const char *); 4402cdf4d2Sdsl int prom_close(int); 4502cdf4d2Sdsl int prom_lseek(int, int, int); 4602cdf4d2Sdsl int prom_open(const char *, int); 4702cdf4d2Sdsl int prom_read(int, void *, int); 4883460859Stsutsui void __dead prom_restart(void); 4902cdf4d2Sdsl int prom_write(int, void *, int); 5055ae3927Ssimonb 5155ae3927Ssimonb 5255ae3927Ssimonb /* 5355ae3927Ssimonb * vers.c (generated by newvers.sh) 5455ae3927Ssimonb */ 5555ae3927Ssimonb extern const char bootprog_rev[]; 56