1*18155f04Stsutsui /* $NetBSD: autoconf.h,v 1.13 2014/04/20 04:12:54 tsutsui Exp $ */ 2fa7bee29Sthorpej 3ee8a2c00Sthorpej /*- 4da13a0afSthorpej * Copyright (c) 1996, 2002 The NetBSD Foundation, Inc. 5fa7bee29Sthorpej * All rights reserved. 6fa7bee29Sthorpej * 7ee8a2c00Sthorpej * This code is derived from software contributed to The NetBSD Foundation 8ee8a2c00Sthorpej * by Jason R. Thorpe. 9ee8a2c00Sthorpej * 10fa7bee29Sthorpej * Redistribution and use in source and binary forms, with or without 11fa7bee29Sthorpej * modification, are permitted provided that the following conditions 12fa7bee29Sthorpej * are met: 13fa7bee29Sthorpej * 1. Redistributions of source code must retain the above copyright 14fa7bee29Sthorpej * notice, this list of conditions and the following disclaimer. 15fa7bee29Sthorpej * 2. Redistributions in binary form must reproduce the above copyright 16fa7bee29Sthorpej * notice, this list of conditions and the following disclaimer in the 17fa7bee29Sthorpej * documentation and/or other materials provided with the distribution. 18fa7bee29Sthorpej * 19ee8a2c00Sthorpej * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20ee8a2c00Sthorpej * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21ee8a2c00Sthorpej * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 224c9d6e4dSjtc * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 234c9d6e4dSjtc * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24ee8a2c00Sthorpej * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25ee8a2c00Sthorpej * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26ee8a2c00Sthorpej * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27ee8a2c00Sthorpej * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28ee8a2c00Sthorpej * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29ee8a2c00Sthorpej * POSSIBILITY OF SUCH DAMAGE. 30fa7bee29Sthorpej */ 31fa7bee29Sthorpej 329a79305cStsutsui #ifndef _HP300_AUTOCONF_H_ 339a79305cStsutsui #define _HP300_AUTOCONF_H_ 349a79305cStsutsui 35fa7bee29Sthorpej #ifdef _KERNEL 36b04b7da8Stsutsui extern int conscode; /* select code of console device */ 37b04b7da8Stsutsui #define CONSCODE_INTERNAL (-1) 38b04b7da8Stsutsui #define CONSCODE_INVALID (-2) 39b04b7da8Stsutsui extern void *conaddr; /* KVA of console device */ 40b04b7da8Stsutsui 41da13a0afSthorpej void hp300_cninit(void); 42*18155f04Stsutsui void hp300_cninit_deferred(void); 43da13a0afSthorpej void iomap_init(void); 4453524e44Schristos void * iomap(void *, int); 4553524e44Schristos void iounmap(void *, int); 46da13a0afSthorpej 47da13a0afSthorpej extern struct extent *extio_ex; 48da13a0afSthorpej extern int extio_ex_malloc_safe; 49fa7bee29Sthorpej #endif /* _KERNEL */ 509a79305cStsutsui 519a79305cStsutsui #endif /* !_HP300_AUTOCONF_H_ */ 52