This source file includes following definitions.
- prom_startcpu
- prom_stopcpu
- prom_idlecpu
- prom_restartcpu
1
2
3
4
5
6
7
8 #include <asm/openprom.h>
9 #include <asm/oplib.h>
10
11
12
13
14
15
16 int
17 prom_startcpu(int cpunode, struct linux_prom_registers *ctable_reg, int ctx, char *pc)
18 {
19 switch(prom_vers) {
20 case PROM_V0:
21 case PROM_V2:
22 break;
23 case PROM_V3:
24 case PROM_P1275:
25 return (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc);
26 break;
27 };
28
29 return -1;
30 }
31
32
33
34
35 int
36 prom_stopcpu(int cpunode)
37 {
38 switch(prom_vers) {
39 case PROM_V0:
40 case PROM_V2:
41 break;
42 case PROM_V3:
43 case PROM_P1275:
44 return (*(romvec->v3_cpustop))(cpunode);
45 break;
46 };
47
48 return -1;
49 }
50
51
52
53
54 int
55 prom_idlecpu(int cpunode)
56 {
57 switch(prom_vers) {
58 case PROM_V0:
59 case PROM_V2:
60 break;
61 case PROM_V3:
62 case PROM_P1275:
63 return (*(romvec->v3_cpuidle))(cpunode);
64 break;
65 };
66
67 return -1;
68 }
69
70
71
72
73 int
74 prom_restartcpu(int cpunode)
75 {
76 switch(prom_vers) {
77 case PROM_V0:
78 case PROM_V2:
79 break;
80 case PROM_V3:
81 case PROM_P1275:
82 return (*(romvec->v3_cpuresume))(cpunode);
83 break;
84 };
85
86 return -1;
87 }