Home | History | Annotate | Line # | Download | only in include
autoconf.h revision 1.14
      1 /*	$NetBSD: autoconf.h,v 1.14 2011/06/18 08:08:29 matt 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 struct pciio_info {
     21 	uint32_t	start;
     22 	uint32_t	limit;
     23 };
     24 
     25 /* to support machines with more than 4 busses, change the below */
     26 #define MAX_PCI_BUSSES		4
     27 struct model_data {
     28 	int			ranges_offset;
     29 	struct pciio_info	pciiodata[MAX_PCI_BUSSES];
     30 };
     31 
     32 extern int console_node;
     33 extern char model_name[64];
     34 
     35 #ifdef _KERNEL
     36 void initppc(u_int, u_int, char *);
     37 void model_init(void);
     38 void strayintr(int);
     39 void dumpsys(void);
     40 
     41 void inittodr(time_t);
     42 void resettodr(void);
     43 void cpu_initclocks(void);
     44 void decr_intr(struct clockframe *);
     45 void setstatclockrate(int);
     46 void init_interrupt(void);
     47 void init_ofppc_interrupt(void);
     48 void ofppc_init_comcons(int);
     49 void copy_disp_props(device_t, int, prop_dictionary_t);
     50 
     51 void OF_start_cpu(int, u_int, int);
     52 
     53 int rascons_cnattach(void);
     54 #endif /* _KERNEL */
     55 
     56 #endif /* _OFPPC_AUTOCONF_H_ */
     57