blob: 55f233558749be798795b47fa9e070eb96e94833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* $NetBSD: autoconf.h,v 1.18 2021/02/27 02:52:48 thorpej Exp $ */
#ifndef _OFPPC_AUTOCONF_H_
#define _OFPPC_AUTOCONF_H_
#include <sys/bus.h>
#include <prop/proplib.h>
struct confargs {
const char *ca_name;
u_int ca_node;
int ca_nreg;
u_int *ca_reg;
int ca_nintr;
int *ca_intr;
bus_addr_t ca_baseaddr;
bus_space_tag_t ca_tag;
};
struct pciio_info {
uint32_t start;
uint32_t limit;
};
/* to support machines with more than 4 busses, change the below */
#define MAX_PCI_BUSSES 4
struct model_data {
int ranges_offset;
struct pciio_info pciiodata[MAX_PCI_BUSSES];
};
extern int console_node;
extern int ofw_quiesce; /* XXX not used at the moment */
extern char model_name[64];
#ifdef _KERNEL
void initppc(u_int, u_int, char *);
void strayintr(int);
void dumpsys(void);
void inittodr(time_t);
void resettodr(void);
void cpu_initclocks(void);
void decr_intr(struct clockframe *);
void setstatclockrate(int);
void init_interrupt(void);
void init_ofppc_interrupt(void);
void ofppc_init_comcons(int);
void copy_disp_props(device_t, int, prop_dictionary_t);
void OF_start_cpu(int, u_int, int);
int rascons_cnattach(void);
#endif /* _KERNEL */
#endif /* _OFPPC_AUTOCONF_H_ */
|