1 1.7 dsl /* $NetBSD: autoconf.h,v 1.7 2009/03/14 14:46:02 dsl Exp $ */ 2 1.1 wdk 3 1.1 wdk /* 4 1.1 wdk * Copyright (c) 1994, 1995 Carnegie-Mellon University. 5 1.1 wdk * All rights reserved. 6 1.1 wdk * 7 1.1 wdk * Author: Chris G. Demetriou 8 1.1 wdk * 9 1.1 wdk * Permission to use, copy, modify and distribute this software and 10 1.1 wdk * its documentation is hereby granted, provided that both the copyright 11 1.1 wdk * notice and this permission notice appear in all copies of the 12 1.1 wdk * software, derivative works or modified versions, and any portions 13 1.1 wdk * thereof, and that both notices appear in supporting documentation. 14 1.1 wdk * 15 1.1 wdk * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 16 1.1 wdk * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND 17 1.1 wdk * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 18 1.1 wdk * 19 1.1 wdk * Carnegie Mellon requests users of this software to return to 20 1.1 wdk * 21 1.1 wdk * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU 22 1.1 wdk * School of Computer Science 23 1.1 wdk * Carnegie Mellon University 24 1.1 wdk * Pittsburgh PA 15213-3890 25 1.1 wdk * 26 1.1 wdk * any improvements or extensions that they make and grant Carnegie the 27 1.1 wdk * rights to redistribute these changes. 28 1.1 wdk */ 29 1.1 wdk 30 1.3 wdk #ifndef _MIPSCO_AUTOCONF_H_ 31 1.3 wdk #define _MIPSCO_AUTOCONF_H_ 32 1.3 wdk 33 1.1 wdk /* 34 1.4 simonb * Machine-dependent structures for autoconfiguration 35 1.1 wdk */ 36 1.1 wdk 37 1.1 wdk #include <machine/bus.h> 38 1.1 wdk 39 1.1 wdk struct confargs; 40 1.1 wdk 41 1.1 wdk struct confargs { 42 1.1 wdk const char *ca_name; /* Device name. */ 43 1.1 wdk int ca_addr; /* Device address. */ 44 1.2 wdk int ca_intr; /* Device interrupt level */ 45 1.1 wdk bus_space_tag_t ca_bustag; /* parent bus tag */ 46 1.1 wdk bus_dma_tag_t ca_dmatag; /* parent bus dma */ 47 1.1 wdk }; 48 1.1 wdk 49 1.1 wdk /* Locator aliases */ 50 1.5 chs #define cf_addr cf_loc[OBIOCF_ADDR] 51 1.1 wdk 52 1.7 dsl int badaddr(void *, u_int); 53 1.7 dsl void makebootdev(char *); 54 1.3 wdk 55 1.3 wdk #endif /* !_MIPSCO_AUTOCONF_H_ */ 56