1 1.10 nisimura /* $NetBSD: autoconf.h,v 1.10 1999/03/12 07:13:15 nisimura 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.10 nisimura 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.1 jonathan struct confargs { 44 1.7 mhitch char *ca_name; /* Device name. */ 45 1.1 jonathan int ca_slot; /* Device slot (table entry). */ 46 1.3 jonathan int ca_offset; /* Offset into slot. */ 47 1.4 jonathan tc_addr_t ca_addr; /* Device address. */ 48 1.1 jonathan int ca_slotpri; /* Device interrupt "priority" */ 49 1.1 jonathan }; 50 1.2 jonathan 51 1.10 nisimura int badaddr __P((void *, u_int)); 52 1.8 jonathan void makebootdev __P((char *cp)); 53