Home | History | Annotate | Line # | Download | only in include
autoconf.h revision 1.7.2.3
      1  1.7.2.3      mjf /*	$NetBSD: autoconf.h,v 1.7.2.3 2008/02/18 21:04:53 mjf Exp $	*/
      2      1.5      chs 
      3      1.5      chs #ifndef _OFPPC_AUTOCONF_H_
      4      1.5      chs #define _OFPPC_AUTOCONF_H_
      5      1.5      chs 
      6      1.6  garbled #include <machine/bus.h>
      7      1.6  garbled 
      8      1.5      chs struct confargs {
      9      1.5      chs 	const char	*ca_name;
     10      1.5      chs 	u_int		ca_node;
     11      1.5      chs 	int		ca_nreg;
     12      1.5      chs 	u_int		*ca_reg;
     13      1.5      chs 	int		ca_nintr;
     14      1.5      chs 	int		*ca_intr;
     15      1.5      chs 
     16      1.6  garbled 	bus_addr_t	ca_baseaddr;
     17      1.6  garbled 	bus_space_tag_t	ca_tag;
     18      1.5      chs };
     19      1.1     matt 
     20  1.7.2.3      mjf struct pciio_info {
     21  1.7.2.3      mjf 	uint32_t	start;
     22  1.7.2.3      mjf 	uint32_t	limit;
     23  1.7.2.3      mjf };
     24  1.7.2.3      mjf 
     25  1.7.2.3      mjf /* to support machines with more than 4 busses, change the below */
     26  1.7.2.3      mjf #define MAX_PCI_BUSSES		4
     27  1.7.2.3      mjf struct model_data {
     28  1.7.2.3      mjf 	int			ranges_offset;
     29  1.7.2.3      mjf 	struct pciio_info	pciiodata[MAX_PCI_BUSSES];
     30  1.7.2.3      mjf };
     31  1.7.2.3      mjf 
     32      1.6  garbled extern int console_node;
     33  1.7.2.2      mjf extern char model_name[64];
     34      1.6  garbled 
     35      1.1     matt #ifdef _KERNEL
     36      1.5      chs void initppc(u_int, u_int, char *);
     37  1.7.2.2      mjf void model_init(void);
     38      1.5      chs void strayintr(int);
     39      1.6  garbled void dumpsys(void);
     40      1.1     matt 
     41      1.5      chs void inittodr(time_t);
     42      1.5      chs void resettodr(void);
     43      1.5      chs void cpu_initclocks(void);
     44      1.5      chs void decr_intr(struct clockframe *);
     45      1.5      chs void setstatclockrate(int);
     46  1.7.2.1      mjf void init_interrupt(void);
     47  1.7.2.3      mjf void init_ofppc_interrupt(void);
     48  1.7.2.2      mjf void ofppc_init_comcons(int);
     49  1.7.2.2      mjf void copy_disp_props(struct device *, int, prop_dictionary_t);
     50      1.6  garbled 
     51  1.7.2.2      mjf int rascons_cnattach(void);
     52      1.1     matt #endif /* _KERNEL */
     53      1.1     matt 
     54      1.5      chs #endif /* _OFPPC_AUTOCONF_H_ */
     55