1*02cdf4d2Sdsl /* $NetBSD: autoconf.h,v 1.7 2009/03/14 14:46:02 dsl Exp $ */ 23f55a7b9Swdk 33f55a7b9Swdk /* 43f55a7b9Swdk * Copyright (c) 1994, 1995 Carnegie-Mellon University. 53f55a7b9Swdk * All rights reserved. 63f55a7b9Swdk * 73f55a7b9Swdk * Author: Chris G. Demetriou 83f55a7b9Swdk * 93f55a7b9Swdk * Permission to use, copy, modify and distribute this software and 103f55a7b9Swdk * its documentation is hereby granted, provided that both the copyright 113f55a7b9Swdk * notice and this permission notice appear in all copies of the 123f55a7b9Swdk * software, derivative works or modified versions, and any portions 133f55a7b9Swdk * thereof, and that both notices appear in supporting documentation. 143f55a7b9Swdk * 153f55a7b9Swdk * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 163f55a7b9Swdk * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 173f55a7b9Swdk * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 183f55a7b9Swdk * 193f55a7b9Swdk * Carnegie Mellon requests users of this software to return to 203f55a7b9Swdk * 213f55a7b9Swdk * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 223f55a7b9Swdk * School of Computer Science 233f55a7b9Swdk * Carnegie Mellon University 243f55a7b9Swdk * Pittsburgh PA 15213-3890 253f55a7b9Swdk * 263f55a7b9Swdk * any improvements or extensions that they make and grant Carnegie the 273f55a7b9Swdk * rights to redistribute these changes. 283f55a7b9Swdk */ 293f55a7b9Swdk 304cad781eSwdk #ifndef _MIPSCO_AUTOCONF_H_ 314cad781eSwdk #define _MIPSCO_AUTOCONF_H_ 324cad781eSwdk 333f55a7b9Swdk /* 340a30e5fbSsimonb * Machine-dependent structures for autoconfiguration 353f55a7b9Swdk */ 363f55a7b9Swdk 373f55a7b9Swdk #include <machine/bus.h> 383f55a7b9Swdk 393f55a7b9Swdk struct confargs; 403f55a7b9Swdk 413f55a7b9Swdk struct confargs { 423f55a7b9Swdk const char *ca_name; /* Device name. */ 433f55a7b9Swdk int ca_addr; /* Device address. */ 4433016f23Swdk int ca_intr; /* Device interrupt level */ 453f55a7b9Swdk bus_space_tag_t ca_bustag; /* parent bus tag */ 463f55a7b9Swdk bus_dma_tag_t ca_dmatag; /* parent bus dma */ 473f55a7b9Swdk }; 483f55a7b9Swdk 493f55a7b9Swdk /* Locator aliases */ 50267af995Schs #define cf_addr cf_loc[OBIOCF_ADDR] 513f55a7b9Swdk 52*02cdf4d2Sdsl int badaddr(void *, u_int); 53*02cdf4d2Sdsl void makebootdev(char *); 544cad781eSwdk 554cad781eSwdk #endif /* !_MIPSCO_AUTOCONF_H_ */ 56