1 /* $NetBSD: autoconf.h,v 1.10 2007/11/26 19:58:30 garbled 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 extern char model_name[64]; 22 23 #ifdef _KERNEL 24 void initppc(u_int, u_int, char *); 25 void model_init(void); 26 void strayintr(int); 27 void dumpsys(void); 28 29 void inittodr(time_t); 30 void resettodr(void); 31 void cpu_initclocks(void); 32 void decr_intr(struct clockframe *); 33 void setstatclockrate(int); 34 void init_interrupt(void); 35 void ofppc_init_comcons(int); 36 void copy_disp_props(struct device *, int, prop_dictionary_t); 37 38 int rascons_cnattach(void); 39 #endif /* _KERNEL */ 40 41 #endif /* _OFPPC_AUTOCONF_H_ */ 42