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