No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / ofppc / include / autoconf.h
blobce06ff83d48a0113bd0bcfdb44569e3283fbc976
1 /* $NetBSD: autoconf.h,v 1.12 2008/02/11 17:32:18 garbled Exp $ */
3 #ifndef _OFPPC_AUTOCONF_H_
4 #define _OFPPC_AUTOCONF_H_
6 #include <machine/bus.h>
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;
16 bus_addr_t ca_baseaddr;
17 bus_space_tag_t ca_tag;
20 struct pciio_info {
21 uint32_t start;
22 uint32_t limit;
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];
32 extern int console_node;
33 extern char model_name[64];
35 #ifdef _KERNEL
36 void initppc(u_int, u_int, char *);
37 void model_init(void);
38 void strayintr(int);
39 void dumpsys(void);
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(struct device *, int, prop_dictionary_t);
51 void OF_start_cpu(int, u_int, int);
53 int rascons_cnattach(void);
54 #endif /* _KERNEL */
56 #endif /* _OFPPC_AUTOCONF_H_ */