Home | History | Annotate | Line # | Download | only in include
autoconf.h revision 1.4.8.2
      1  1.4.8.2  nathanw /*	$NetBSD: autoconf.h,v 1.4.8.2 2002/08/01 02:42:25 nathanw Exp $	*/
      2  1.4.8.2  nathanw 
      3  1.4.8.2  nathanw /*-
      4  1.4.8.2  nathanw  * Copyright (C) 1998	Internet Research Institute, Inc.
      5  1.4.8.2  nathanw  * All rights reserved.
      6  1.4.8.2  nathanw  *
      7  1.4.8.2  nathanw  * Redistribution and use in source and binary forms, with or without
      8  1.4.8.2  nathanw  * modification, are permitted provided that the following conditions
      9  1.4.8.2  nathanw  * are met:
     10  1.4.8.2  nathanw  * 1. Redistributions of source code must retain the above copyright
     11  1.4.8.2  nathanw  *    notice, this list of conditions and the following disclaimer.
     12  1.4.8.2  nathanw  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.4.8.2  nathanw  *    notice, this list of conditions and the following disclaimer in the
     14  1.4.8.2  nathanw  *    documentation and/or other materials provided with the distribution.
     15  1.4.8.2  nathanw  * 3. All advertising materials mentioning features or use of this software
     16  1.4.8.2  nathanw  *    must display the following acknowledgement:
     17  1.4.8.2  nathanw  *	This product includes software developed by
     18  1.4.8.2  nathanw  *	Internet Research Institute, Inc.
     19  1.4.8.2  nathanw  * 4. The name of the author may not be used to endorse or promote products
     20  1.4.8.2  nathanw  *    derived from this software without specific prior written permission.
     21  1.4.8.2  nathanw  *
     22  1.4.8.2  nathanw  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     23  1.4.8.2  nathanw  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     24  1.4.8.2  nathanw  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     25  1.4.8.2  nathanw  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     26  1.4.8.2  nathanw  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     27  1.4.8.2  nathanw  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     28  1.4.8.2  nathanw  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     29  1.4.8.2  nathanw  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     30  1.4.8.2  nathanw  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     31  1.4.8.2  nathanw  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     32  1.4.8.2  nathanw  */
     33  1.4.8.2  nathanw 
     34  1.4.8.2  nathanw #ifndef _MACHINE_AUTOCONF_H_
     35  1.4.8.2  nathanw #define _MACHINE_AUTOCONF_H_
     36  1.4.8.2  nathanw 
     37  1.4.8.2  nathanw struct confargs {
     38  1.4.8.2  nathanw 	char *ca_name;
     39  1.4.8.2  nathanw 	u_int ca_node;
     40  1.4.8.2  nathanw 	int ca_nreg;
     41  1.4.8.2  nathanw 	u_int *ca_reg;
     42  1.4.8.2  nathanw 	int ca_nintr;
     43  1.4.8.2  nathanw 	int *ca_intr;
     44  1.4.8.2  nathanw 
     45  1.4.8.2  nathanw 	u_int ca_baseaddr;
     46  1.4.8.2  nathanw 	/* bus_space_tag_t ca_tag; */
     47  1.4.8.2  nathanw };
     48  1.4.8.2  nathanw 
     49  1.4.8.2  nathanw /* there are in locore.S */
     50  1.4.8.2  nathanw void ofbcopy __P((void *, void *, size_t));
     51  1.4.8.2  nathanw int badaddr __P((void *, int));
     52  1.4.8.2  nathanw 
     53  1.4.8.2  nathanw /* these are in autoconf.c */
     54  1.4.8.2  nathanw int getnodebyname __P((int, const char *));
     55  1.4.8.2  nathanw int OF_interpret __P((char *cmd, int nreturns, ...));
     56  1.4.8.2  nathanw 
     57  1.4.8.2  nathanw /* these are in clock.c */
     58  1.4.8.2  nathanw void calc_delayconst __P((void));
     59  1.4.8.2  nathanw void decr_intr __P((struct clockframe *));
     60  1.4.8.2  nathanw 
     61  1.4.8.2  nathanw /* these are in cpu.c */
     62  1.4.8.2  nathanw void identifycpu __P((char *));
     63  1.4.8.2  nathanw 
     64  1.4.8.2  nathanw /* these are in machdep.c */
     65  1.4.8.2  nathanw void initppc __P((u_int, u_int, char *));
     66  1.4.8.2  nathanw void install_extint __P((void (*) __P((void))));
     67  1.4.8.2  nathanw void *mapiodev __P((paddr_t, psize_t));
     68  1.4.8.2  nathanw paddr_t kvtop __P((caddr_t));
     69  1.4.8.2  nathanw 
     70  1.4.8.2  nathanw /* these are in extintr.c */
     71  1.4.8.2  nathanw void ext_intr __P((void));
     72  1.4.8.2  nathanw void init_interrupt __P((void));
     73  1.4.8.2  nathanw void *intr_establish __P((int, int, int, int (*)(void *), void *));
     74  1.4.8.2  nathanw void intr_disestablish __P((void *));
     75  1.4.8.2  nathanw char *intr_typename __P((int));
     76  1.4.8.2  nathanw 
     77  1.4.8.2  nathanw /* these are in dev/akbd.c */
     78  1.4.8.2  nathanw int kbd_intr __P((void *));
     79  1.4.8.2  nathanw int akbd_cnattach __P((void));
     80  1.4.8.2  nathanw 
     81  1.4.8.2  nathanw /* these are in dev/ofb.c */
     82  1.4.8.2  nathanw int ofb_is_console __P((void));
     83  1.4.8.2  nathanw int ofb_cnattach __P((void));
     84  1.4.8.2  nathanw 
     85  1.4.8.2  nathanw /* these are in dev/zs.c */
     86  1.4.8.2  nathanw int zssoft __P((void *));
     87  1.4.8.2  nathanw 
     88  1.4.8.2  nathanw /* these are in ../../dev/ic/com.c */
     89  1.4.8.2  nathanw void comsoft __P((void));
     90  1.4.8.2  nathanw 
     91  1.4.8.2  nathanw #endif /* _MACHINE_AUTOCONF_H_ */
     92