1 /* $NetBSD: autoconf.h,v 1.6 2007/10/17 19:56:07 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 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 33 int ofb_cnattach(void); 34 #endif /* _KERNEL */ 35 36 #endif /* _OFPPC_AUTOCONF_H_ */ 37