Home | History | Annotate | Line # | Download | only in include
autoconf.h revision 1.4
      1  1.4  tsubai /*	$NetBSD: autoconf.h,v 1.4 1999/10/17 15:06:45 tsubai Exp $	*/
      2  1.1  tsubai 
      3  1.1  tsubai /*
      4  1.1  tsubai  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
      5  1.1  tsubai  * All rights reserved.
      6  1.1  tsubai  *
      7  1.1  tsubai  * Author: Chris G. Demetriou
      8  1.1  tsubai  *
      9  1.1  tsubai  * Permission to use, copy, modify and distribute this software and
     10  1.1  tsubai  * its documentation is hereby granted, provided that both the copyright
     11  1.1  tsubai  * notice and this permission notice appear in all copies of the
     12  1.1  tsubai  * software, derivative works or modified versions, and any portions
     13  1.1  tsubai  * thereof, and that both notices appear in supporting documentation.
     14  1.1  tsubai  *
     15  1.1  tsubai  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     16  1.1  tsubai  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     17  1.1  tsubai  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     18  1.1  tsubai  *
     19  1.1  tsubai  * Carnegie Mellon requests users of this software to return to
     20  1.1  tsubai  *
     21  1.1  tsubai  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     22  1.1  tsubai  *  School of Computer Science
     23  1.1  tsubai  *  Carnegie Mellon University
     24  1.1  tsubai  *  Pittsburgh PA 15213-3890
     25  1.1  tsubai  *
     26  1.1  tsubai  * any improvements or extensions that they make and grant Carnegie the
     27  1.1  tsubai  * rights to redistribute these changes.
     28  1.1  tsubai  */
     29  1.1  tsubai 
     30  1.1  tsubai /*
     31  1.1  tsubai  * Machine-dependent structures of autoconfiguration
     32  1.1  tsubai  */
     33  1.1  tsubai 
     34  1.1  tsubai struct confargs;
     35  1.1  tsubai 
     36  1.1  tsubai /* Handle device interrupt for  given unit of a driver */
     37  1.1  tsubai 
     38  1.1  tsubai typedef void* intr_arg_t;		/* pointer to some softc */
     39  1.1  tsubai typedef int (*intr_handler_t) __P((intr_arg_t));
     40  1.1  tsubai 
     41  1.1  tsubai struct confargs {
     42  1.1  tsubai 	char	*ca_name;		/* Device name. */
     43  1.1  tsubai 	int	ca_slot;		/* Device slot (table entry). */
     44  1.1  tsubai 	int	ca_offset;		/* Offset into slot. */
     45  1.1  tsubai 	int	ca_addr;		/* Device address. */
     46  1.1  tsubai 	int	ca_slotpri;		/* Device interrupt "priority" */
     47  1.1  tsubai };
     48  1.1  tsubai 
     49  1.2  tsubai /* Locator aliases */
     50  1.2  tsubai #define cf_addr	cf_loc[0]
     51  1.1  tsubai 
     52  1.4  tsubai int news3400_badaddr __P((void *, u_int));
     53  1.4  tsubai #define badaddr news3400_badaddr
     54