Home | History | Annotate | Line # | Download | only in include
autoconf.h revision 1.5
      1  1.5  jonathan /*	$NetBSD: autoconf.h,v 1.5 1996/03/18 01:47:08 jonathan Exp $	*/
      2  1.1  jonathan 
      3  1.1  jonathan /*
      4  1.1  jonathan  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
      5  1.1  jonathan  * All rights reserved.
      6  1.1  jonathan  *
      7  1.1  jonathan  * Author: Chris G. Demetriou
      8  1.1  jonathan  *
      9  1.1  jonathan  * Permission to use, copy, modify and distribute this software and
     10  1.1  jonathan  * its documentation is hereby granted, provided that both the copyright
     11  1.1  jonathan  * notice and this permission notice appear in all copies of the
     12  1.1  jonathan  * software, derivative works or modified versions, and any portions
     13  1.1  jonathan  * thereof, and that both notices appear in supporting documentation.
     14  1.1  jonathan  *
     15  1.1  jonathan  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     16  1.1  jonathan  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     17  1.1  jonathan  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     18  1.1  jonathan  *
     19  1.1  jonathan  * Carnegie Mellon requests users of this software to return to
     20  1.1  jonathan  *
     21  1.1  jonathan  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     22  1.1  jonathan  *  School of Computer Science
     23  1.1  jonathan  *  Carnegie Mellon University
     24  1.1  jonathan  *  Pittsburgh PA 15213-3890
     25  1.1  jonathan  *
     26  1.1  jonathan  * any improvements or extensions that they make and grant Carnegie the
     27  1.1  jonathan  * rights to redistribute these changes.
     28  1.1  jonathan  */
     29  1.1  jonathan 
     30  1.1  jonathan /*
     31  1.1  jonathan  * Machine-dependent structures of autoconfiguration
     32  1.1  jonathan  */
     33  1.1  jonathan 
     34  1.4  jonathan #include <machine/tc_machdep.h>
     35  1.4  jonathan 
     36  1.1  jonathan struct confargs;
     37  1.1  jonathan 
     38  1.1  jonathan /* Handle device interrupt for  given unit of a driver */
     39  1.1  jonathan 
     40  1.2  jonathan typedef void* intr_arg_t;		/* pointer to some softc */
     41  1.2  jonathan typedef int (*intr_handler_t) __P((intr_arg_t));
     42  1.1  jonathan 
     43  1.4  jonathan #define KN02_ASIC_NAME "KN02    "	/* ROM name in 3max system slot */
     44  1.1  jonathan 
     45  1.5  jonathan #define	INTR_ESTABLISH(parent, cookie, level, handler, val)			\
     46  1.5  jonathan     generic_intr_establish((parent), (cookie), (level), (handler), (val))
     47  1.5  jonathan 
     48  1.5  jonathan #define	BUS_INTR_ESTABLISH(ca,  handler, val)			\
     49  1.5  jonathan     generic_intr_establish( ((struct device*)(val))->dv_parent, \
     50  1.5  jonathan     			   (ca)->ca_slotpri, 0, (handler), (val))
     51  1.4  jonathan 
     52  1.1  jonathan 
     53  1.1  jonathan struct confargs {
     54  1.4  jonathan 	char	ca_name[8+1];		/* Device name. */
     55  1.1  jonathan 	int	ca_slot;		/* Device slot (table entry). */
     56  1.3  jonathan 	int	ca_offset;		/* Offset into slot. */
     57  1.4  jonathan 	tc_addr_t ca_addr;		/* Device address. */
     58  1.1  jonathan 	int	ca_slotpri;		/* Device interrupt "priority" */
     59  1.1  jonathan };
     60  1.2  jonathan 
     61  1.4  jonathan extern caddr_t baseboard_cvtaddr __P((struct confargs *)); /*XXX*/
     62  1.1  jonathan 
     63  1.1  jonathan #ifndef pmax
     64  1.1  jonathan void	set_clockintr __P((void (*)(struct clockframe *)));
     65  1.1  jonathan #endif
     66  1.1  jonathan void	set_iointr __P((void (*)(void *, int)));
     67  1.1  jonathan int	badaddr			__P((void *, u_int));
     68