1*90e56582Sjdolecek /* $NetBSD: autoconf.h,v 1.13 2017/06/16 18:17:41 jdolecek Exp $ */ 237163421Sbriggs 337163421Sbriggs /* 437163421Sbriggs * Copyright (c) 1994 Gordon W. Ross 537163421Sbriggs * Copyright (c) 1993 Adam Glass 637163421Sbriggs * All rights reserved. 737163421Sbriggs * 837163421Sbriggs * Redistribution and use in source and binary forms, with or without 937163421Sbriggs * modification, are permitted provided that the following conditions 1037163421Sbriggs * are met: 1137163421Sbriggs * 1. Redistributions of source code must retain the above copyright 1237163421Sbriggs * notice, this list of conditions and the following disclaimer. 1337163421Sbriggs * 2. Redistributions in binary form must reproduce the above copyright 1437163421Sbriggs * notice, this list of conditions and the following disclaimer in the 1537163421Sbriggs * documentation and/or other materials provided with the distribution. 1637163421Sbriggs * 3. All advertising materials mentioning features or use of this software 1737163421Sbriggs * must display the following acknowledgement: 1837163421Sbriggs * This product includes software developed by Adam Glass. 1937163421Sbriggs * 4. The name of the Author may not be used to endorse or promote products 2037163421Sbriggs * derived from this software without specific prior written permission. 2137163421Sbriggs * 2237163421Sbriggs * THIS SOFTWARE IS PROVIDED BY Adam Glass ``AS IS'' AND 2337163421Sbriggs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2437163421Sbriggs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2537163421Sbriggs * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2637163421Sbriggs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2737163421Sbriggs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2837163421Sbriggs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2937163421Sbriggs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3037163421Sbriggs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3137163421Sbriggs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3237163421Sbriggs * SUCH DAMAGE. 3337163421Sbriggs */ 3437163421Sbriggs 3537163421Sbriggs #include <sys/device.h> 3637163421Sbriggs 37648cd86dSbriggs #include <machine/bus.h> 38648cd86dSbriggs 3937163421Sbriggs /* 4037163421Sbriggs * Autoconfiguration information. 4137163421Sbriggs * From sun3 port--adapted for mac68k platform by Allen Briggs. 4237163421Sbriggs */ 4337163421Sbriggs 44648cd86dSbriggs struct mainbus_attach_args { 45648cd86dSbriggs bus_space_tag_t mba_bst; 46648cd86dSbriggs bus_dma_tag_t mba_dmat; 47648cd86dSbriggs }; 48648cd86dSbriggs 4978c78f91Sbriggs /* autoconf.c */ 507acd68b1Schs void setconf(void); 514ddcca6bSscottr 5278c78f91Sbriggs /* machdep.c */ 537acd68b1Schs void mac68k_set_io_offsets(vaddr_t); 5453524e44Schristos int badbaddr(void *); 5553524e44Schristos int badwaddr(void *); 5653524e44Schristos int badladdr(void *); 5737163421Sbriggs 584ddcca6bSscottr /* clock.c */ 597acd68b1Schs void enablertclock(void); 607acd68b1Schs void cpu_initclocks(void); 617acd68b1Schs void setstatclockrate(int); 627acd68b1Schs void disablertclock(void); 637acd68b1Schs void mac68k_calibrate_delay(void); 647acd68b1Schs void startrtclock(void); 6578c78f91Sbriggs 6678c78f91Sbriggs /* macrom.c */ 677acd68b1Schs void mrg_init(void); 68