2007-11-26 22:58:29 +03:00
|
|
|
/* $NetBSD: autoconf.h,v 1.15 2007/11/26 19:58:30 garbled Exp $ */
|
1998-09-01 21:33:04 +04:00
|
|
|
|
|
|
|
/*-
|
|
|
|
* Copyright (C) 1998 Internet Research Institute, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by
|
|
|
|
* Internet Research Institute, Inc.
|
|
|
|
* 4. The name of the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2001-06-08 04:32:01 +04:00
|
|
|
#ifndef _MACHINE_AUTOCONF_H_
|
|
|
|
#define _MACHINE_AUTOCONF_H_
|
|
|
|
|
2007-01-18 02:39:09 +03:00
|
|
|
#include <machine/bus.h> /* for bus_space_tag_t */
|
|
|
|
|
1998-05-15 14:15:45 +04:00
|
|
|
struct confargs {
|
2005-06-06 00:05:48 +04:00
|
|
|
const char *ca_name;
|
1998-05-15 14:15:45 +04:00
|
|
|
u_int ca_node;
|
|
|
|
int ca_nreg;
|
|
|
|
u_int *ca_reg;
|
|
|
|
int ca_nintr;
|
|
|
|
int *ca_intr;
|
|
|
|
|
2007-10-17 23:52:51 +04:00
|
|
|
bus_addr_t ca_baseaddr;
|
2007-01-18 02:39:09 +03:00
|
|
|
bus_space_tag_t ca_tag;
|
1998-05-15 14:15:45 +04:00
|
|
|
};
|
|
|
|
|
2001-06-08 04:32:01 +04:00
|
|
|
/* there are in locore.S */
|
2007-10-17 23:52:51 +04:00
|
|
|
void ofbcopy(const void *, void *, size_t);
|
|
|
|
int badaddr(volatile void *, int);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
|
|
|
/* these are in clock.c */
|
2007-10-17 23:52:51 +04:00
|
|
|
void calc_delayconst(void);
|
|
|
|
void decr_intr(struct clockframe *);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
|
|
|
/* these are in cpu.c */
|
2007-10-17 23:52:51 +04:00
|
|
|
void identifycpu(char *);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
|
|
|
/* these are in machdep.c */
|
2007-10-17 23:52:51 +04:00
|
|
|
void initppc(u_int, u_int, char *);
|
2007-11-26 22:58:29 +03:00
|
|
|
void model_init(void);
|
2007-10-17 23:52:51 +04:00
|
|
|
void *mapiodev(paddr_t, psize_t);
|
|
|
|
paddr_t kvtop(void *);
|
|
|
|
void dumpsys(void);
|
2007-11-26 22:58:29 +03:00
|
|
|
void copy_disp_props(struct device *, int, prop_dictionary_t);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
|
|
|
/* these are in extintr.c */
|
2007-10-17 23:52:51 +04:00
|
|
|
void init_interrupt(void);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
|
|
|
/* these are in dev/akbd.c */
|
2007-10-17 23:52:51 +04:00
|
|
|
int kbd_intr(void *);
|
|
|
|
int akbd_cnattach(void);
|
2007-01-18 02:39:09 +03:00
|
|
|
int adbkbd_cnattach(void);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
|
|
|
/* these are in dev/ofb.c */
|
2007-10-17 23:52:51 +04:00
|
|
|
int ofb_is_console(void);
|
2007-11-26 22:58:29 +03:00
|
|
|
int rascons_cnattach(void);
|
2001-06-08 04:32:01 +04:00
|
|
|
|
2007-01-18 02:39:09 +03:00
|
|
|
extern int console_node;
|
|
|
|
extern int console_instance;
|
2007-11-26 22:58:29 +03:00
|
|
|
extern char model_name[64];
|
2007-01-18 02:39:09 +03:00
|
|
|
|
2001-06-08 04:32:01 +04:00
|
|
|
#endif /* _MACHINE_AUTOCONF_H_ */
|