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 case PROM_AP1000:
23 break;
24 case PROM_V3:
25 case PROM_P1275:
26 return (*(romvec->v3_cpustart))(cpunode, (int) ctable_reg, ctx, pc);
27 break;
28 };
29
30 return -1;
31 }
32
33
34
35
36 int
37 prom_stopcpu(int cpunode)
38 {
39 switch(prom_vers) {
40 case PROM_V0:
41 case PROM_V2:
42 case PROM_AP1000:
43 break;
44 case PROM_V3:
45 case PROM_P1275:
46 return (*(romvec->v3_cpustop))(cpunode);
47 break;
48 };
49
50 return -1;
51 }
52
53
54
55
56 int
57 prom_idlecpu(int cpunode)
58 {
59 switch(prom_vers) {
60 case PROM_V0:
61 case PROM_V2:
62 case PROM_AP1000:
63 break;
64 case PROM_V3:
65 case PROM_P1275:
66 return (*(romvec->v3_cpuidle))(cpunode);
67 break;
68 };
69
70 return -1;
71 }
72
73
74
75
76 int
77 prom_restartcpu(int cpunode)
78 {
79 switch(prom_vers) {
80 case PROM_V0:
81 case PROM_V2:
82 case PROM_AP1000:
83 break;
84 case PROM_V3:
85 case PROM_P1275:
86 return (*(romvec->v3_cpuresume))(cpunode);
87 break;
88 };
89
90 return -1;
91 }