Home | History | Annotate | Line # | Download | only in include
autoconf.h revision 1.2
      1  1.2  wdk /*	$NetBSD: autoconf.h,v 1.2 2000/08/15 04:56:45 wdk 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.1  wdk /*
     31  1.1  wdk  * Machine-dependent structures of autoconfiguration
     32  1.1  wdk  */
     33  1.1  wdk 
     34  1.1  wdk #include <machine/bus.h>
     35  1.1  wdk 
     36  1.1  wdk struct confargs;
     37  1.1  wdk 
     38  1.1  wdk struct confargs {
     39  1.1  wdk 	const char	*ca_name;	/* Device name. */
     40  1.1  wdk 	int		ca_addr;	/* Device address. */
     41  1.2  wdk 	int		ca_intr;	/* Device interrupt level */
     42  1.1  wdk 	bus_space_tag_t	ca_bustag;	/* parent bus tag */
     43  1.1  wdk 	bus_dma_tag_t	ca_dmatag;      /* parent bus dma */
     44  1.1  wdk };
     45  1.1  wdk 
     46  1.1  wdk /* Locator aliases */
     47  1.1  wdk #define cf_addr	cf_loc[0]
     48  1.1  wdk 
     49  1.1  wdk int	badaddr __P((void *, u_int));
     50