1*60d0010eSchristos /* $NetBSD: common.h,v 1.3 2014/02/24 22:31:56 christos Exp $ */ 25f7e80a8Spooka 35f7e80a8Spooka /*- 45f7e80a8Spooka * Copyright (c) 1999 The NetBSD Foundation, Inc. 55f7e80a8Spooka * All rights reserved. 65f7e80a8Spooka * 75f7e80a8Spooka * This code is derived from software contributed to The NetBSD Foundation 85f7e80a8Spooka * by Jonathan Stone, Michael Hitch and Simon Burge. 95f7e80a8Spooka * 105f7e80a8Spooka * Redistribution and use in source and binary forms, with or without 115f7e80a8Spooka * modification, are permitted provided that the following conditions 125f7e80a8Spooka * are met: 135f7e80a8Spooka * 1. Redistributions of source code must retain the above copyright 145f7e80a8Spooka * notice, this list of conditions and the following disclaimer. 155f7e80a8Spooka * 2. Redistributions in binary form must reproduce the above copyright 165f7e80a8Spooka * notice, this list of conditions and the following disclaimer in the 175f7e80a8Spooka * documentation and/or other materials provided with the distribution. 185f7e80a8Spooka * 3. All advertising materials mentioning features or use of this software 195f7e80a8Spooka * must display the following acknowledgement: 205f7e80a8Spooka * This product includes software developed by the NetBSD 215f7e80a8Spooka * Foundation, Inc. and its contributors. 225f7e80a8Spooka * 4. Neither the name of The NetBSD Foundation nor the names of its 235f7e80a8Spooka * contributors may be used to endorse or promote products derived 245f7e80a8Spooka * from this software without specific prior written permission. 255f7e80a8Spooka * 265f7e80a8Spooka * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 275f7e80a8Spooka * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 285f7e80a8Spooka * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 295f7e80a8Spooka * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 305f7e80a8Spooka * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 315f7e80a8Spooka * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 325f7e80a8Spooka * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 335f7e80a8Spooka * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 345f7e80a8Spooka * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 355f7e80a8Spooka * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 365f7e80a8Spooka * POSSIBILITY OF SUCH DAMAGE. 375f7e80a8Spooka */ 385f7e80a8Spooka 395f7e80a8Spooka #ifdef NET_DEBUG 405f7e80a8Spooka extern int debug; /* only used for network debugging for now */ 415f7e80a8Spooka #endif 425f7e80a8Spooka 435f7e80a8Spooka /* startprog.S */ 445f7e80a8Spooka extern void startprog (int, int, int, char **, int, const void *, int, int); 455f7e80a8Spooka 465f7e80a8Spooka /* init_board.c */ 475f7e80a8Spooka #define BOARD_HAS_DISK0 0x01 485f7e80a8Spooka #define BOARD_HAS_DISK1 0x02 495f7e80a8Spooka #define BOARD_HAS_NET 0x04 505f7e80a8Spooka #define BOARD_HAS_USART 0x08 515f7e80a8Spooka #define BOARD_HAS_MEM_OK 0x10 525f7e80a8Spooka extern int init_board(void); 535f7e80a8Spooka extern int getsysid(void); 545f7e80a8Spooka 555f7e80a8Spooka /* prom_iface.c */ 565f7e80a8Spooka extern int init_usart(void); 575f7e80a8Spooka extern int init_memory(void); 58de6d10c2Schristos extern void call_kernel(uint32_t, char *, char *, u_int, char *); 595f7e80a8Spooka 605f7e80a8Spooka /* ace.c */ 61de6d10c2Schristos extern int aceprobe(int); 625f7e80a8Spooka 635f7e80a8Spooka /* enic.c */ 64de6d10c2Schristos extern int enic_present(int); 655f7e80a8Spooka 66de6d10c2Schristos /* print.c */ 67de6d10c2Schristos extern void xputchar(int); 68de6d10c2Schristos 69*60d0010eSchristos /* putchar.c */ 70*60d0010eSchristos extern void putchar(int); 71*60d0010eSchristos 72de6d10c2Schristos /* vers.c (generated by newvers.sh) */ 735f7e80a8Spooka extern const char bootprog_rev[]; 74