Home | History | Annotate | Line # | Download | only in include
      1 /*	$NetBSD: autoconf.h,v 1.14 2011/03/06 14:58:43 tsutsui Exp $	*/
      2 /*	$OpenBSD: autoconf.h,v 1.2 1997/03/12 19:16:54 pefo Exp $	*/
      3 /*	NetBSD: autoconf.h,v 1.1 1995/02/13 23:07:31 cgd Exp 	*/
      4 
      5 /*
      6  * Copyright (c) 1994, 1995 Carnegie-Mellon University.
      7  * All rights reserved.
      8  *
      9  * Author: Chris G. Demetriou
     10  *
     11  * Permission to use, copy, modify and distribute this software and
     12  * its documentation is hereby granted, provided that both the copyright
     13  * notice and this permission notice appear in all copies of the
     14  * software, derivative works or modified versions, and any portions
     15  * thereof, and that both notices appear in supporting documentation.
     16  *
     17  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
     18  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
     19  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
     20  *
     21  * Carnegie Mellon requests users of this software to return to
     22  *
     23  *  Software Distribution Coordinator  or  Software.Distribution (at) CS.CMU.EDU
     24  *  School of Computer Science
     25  *  Carnegie Mellon University
     26  *  Pittsburgh PA 15213-3890
     27  *
     28  * any improvements or extensions that they make and grant Carnegie the
     29  * rights to redistribute these changes.
     30  */
     31 
     32 /*
     33  * Machine-dependent structures for autoconfiguration
     34  */
     35 
     36 #ifndef _ARC_AUTOCONF_H_
     37 #define _ARC_AUTOCONF_H_
     38 
     39 struct confargs;
     40 
     41 typedef int (*intr_handler_t)(void *);
     42 
     43 struct confargs {
     44 	const char *ca_name;		/* Device name. */
     45 	int	ca_slot;		/* Device slot. */
     46 	int	ca_offset;		/* Offset into slot. */
     47 };
     48 
     49 void	makebootdev(const char *cp);
     50 
     51 /* serial console related variables */
     52 extern int com_freq;
     53 extern int com_console;
     54 extern int com_console_address;
     55 extern int com_console_speed;
     56 extern int com_console_mode;
     57 #endif /* _ARC_AUTOCONF_H_ */
     58