1 /* $NetBSD: autoconf.h,v 1.5.88.3 2007/11/18 19:34:37 bouyer Exp $ */ 2 3 #ifndef _OFPPC_AUTOCONF_H_ 4 #define _OFPPC_AUTOCONF_H_ 5 6 #include <machine/bus.h> 7 8 struct confargs { 9 const char *ca_name; 10 u_int ca_node; 11 int ca_nreg; 12 u_int *ca_reg; 13 int ca_nintr; 14 int *ca_intr; 15 16 bus_addr_t ca_baseaddr; 17 bus_space_tag_t ca_tag; 18 }; 19 20 extern int console_node; 21 22 #ifdef _KERNEL 23 void initppc(u_int, u_int, char *); 24 void strayintr(int); 25 void dumpsys(void); 26 27 void inittodr(time_t); 28 void resettodr(void); 29 void cpu_initclocks(void); 30 void decr_intr(struct clockframe *); 31 void setstatclockrate(int); 32 void init_interrupt(void); 33 void ofppc_init_comcons(void); 34 35 int ofb_cnattach(void); 36 #endif /* _KERNEL */ 37 38 #endif /* _OFPPC_AUTOCONF_H_ */ 39