common.h revision 1.6
11.6Ssimonb/* $NetBSD: common.h,v 1.6 2002/03/15 13:31:08 simonb Exp $ */ 21.1Ssimonb 31.1Ssimonb/*- 41.1Ssimonb * Copyright (c) 1999 The NetBSD Foundation, Inc. 51.1Ssimonb * All rights reserved. 61.1Ssimonb * 71.1Ssimonb * This code is derived from software contributed to The NetBSD Foundation 81.1Ssimonb * by Jonathan Stone, Michael Hitch and Simon Burge. 91.1Ssimonb * 101.1Ssimonb * Redistribution and use in source and binary forms, with or without 111.1Ssimonb * modification, are permitted provided that the following conditions 121.1Ssimonb * are met: 131.1Ssimonb * 1. Redistributions of source code must retain the above copyright 141.1Ssimonb * notice, this list of conditions and the following disclaimer. 151.1Ssimonb * 2. Redistributions in binary form must reproduce the above copyright 161.1Ssimonb * notice, this list of conditions and the following disclaimer in the 171.1Ssimonb * documentation and/or other materials provided with the distribution. 181.1Ssimonb * 3. All advertising materials mentioning features or use of this software 191.1Ssimonb * must display the following acknowledgement: 201.1Ssimonb * This product includes software developed by the NetBSD 211.1Ssimonb * Foundation, Inc. and its contributors. 221.1Ssimonb * 4. Neither the name of The NetBSD Foundation nor the names of its 231.1Ssimonb * contributors may be used to endorse or promote products derived 241.1Ssimonb * from this software without specific prior written permission. 251.1Ssimonb * 261.1Ssimonb * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 271.1Ssimonb * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 281.1Ssimonb * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 291.1Ssimonb * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 301.1Ssimonb * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 311.1Ssimonb * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 321.1Ssimonb * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 331.1Ssimonb * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 341.1Ssimonb * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 351.1Ssimonb * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 361.1Ssimonb * POSSIBILITY OF SUCH DAMAGE. 371.1Ssimonb */ 381.1Ssimonb 391.6Ssimonb#ifdef NET_DEBUG 401.6Ssimonbextern int debug; /* only used for network debugging for now */ 411.6Ssimonb#endif 421.5Sgmcgarry 431.1Ssimonb/* startprog.S */ 441.1Ssimonbvoid startprog __P((int, int, int, char **, int, const void *, int, int)); 451.5Sgmcgarry 461.5Sgmcgarry/* clock.c */ 471.5Sgmcgarrylong getsecs __P((void)); 481.1Ssimonb 491.1Ssimonb/* PROM callbacks */ 501.1Ssimonbint bootinit __P((const char *)); 511.1Ssimonbint bootread __P((int, void *, int)); 521.3Ssimonbint bootwrite __P((int, void *, int)); 531.3Ssimonbchar *getenv __P((const char *)); 541.1Ssimonbint prom_close __P((int)); 551.1Ssimonbint prom_lseek __P((int, int, int)); 561.1Ssimonbint prom_open __P((const char *, int)); 571.1Ssimonbint prom_read __P((int, void *, int)); 581.4Ssimonbint prom_write __P((int, void *, int)); 591.3Ssimonb 601.3Ssimonb 611.3Ssimonb/* 621.3Ssimonb * vers.c (generated by newvers.sh) 631.3Ssimonb */ 641.3Ssimonbextern const char bootprog_rev[]; 651.3Ssimonbextern const char bootprog_date[]; 661.3Ssimonbextern const char bootprog_maker[]; 67