cpu.h revision 1.80 1 1.80 matt /* $NetBSD: cpu.h,v 1.80 2011/06/14 22:36:12 matt Exp $ */
2 1.1 ws
3 1.1 ws /*
4 1.5 ws * Copyright (C) 1999 Wolfgang Solfrank.
5 1.5 ws * Copyright (C) 1999 TooLs GmbH.
6 1.9 matt * Copyright (C) 1995-1997 Wolfgang Solfrank.
7 1.9 matt * Copyright (C) 1995-1997 TooLs GmbH.
8 1.1 ws * All rights reserved.
9 1.1 ws *
10 1.1 ws * Redistribution and use in source and binary forms, with or without
11 1.1 ws * modification, are permitted provided that the following conditions
12 1.1 ws * are met:
13 1.1 ws * 1. Redistributions of source code must retain the above copyright
14 1.1 ws * notice, this list of conditions and the following disclaimer.
15 1.1 ws * 2. Redistributions in binary form must reproduce the above copyright
16 1.1 ws * notice, this list of conditions and the following disclaimer in the
17 1.1 ws * documentation and/or other materials provided with the distribution.
18 1.1 ws * 3. All advertising materials mentioning features or use of this software
19 1.1 ws * must display the following acknowledgement:
20 1.1 ws * This product includes software developed by TooLs GmbH.
21 1.1 ws * 4. The name of TooLs GmbH may not be used to endorse or promote products
22 1.1 ws * derived from this software without specific prior written permission.
23 1.1 ws *
24 1.1 ws * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR
25 1.1 ws * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
26 1.1 ws * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
27 1.1 ws * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28 1.1 ws * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29 1.1 ws * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
30 1.1 ws * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31 1.1 ws * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32 1.1 ws * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
33 1.1 ws * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 1.1 ws */
35 1.5 ws #ifndef _POWERPC_CPU_H_
36 1.5 ws #define _POWERPC_CPU_H_
37 1.1 ws
38 1.27 matt struct cache_info {
39 1.27 matt int dcache_size;
40 1.27 matt int dcache_line_size;
41 1.27 matt int icache_size;
42 1.27 matt int icache_line_size;
43 1.27 matt };
44 1.27 matt
45 1.73 phx #if defined(_KERNEL) || defined(_KMEMUSER)
46 1.9 matt #if defined(_KERNEL_OPT)
47 1.9 matt #include "opt_lockdebug.h"
48 1.9 matt #include "opt_multiprocessor.h"
49 1.16 matt #include "opt_ppcarch.h"
50 1.9 matt #endif
51 1.9 matt
52 1.73 phx #ifdef _KERNEL
53 1.9 matt #include <machine/frame.h>
54 1.9 matt #include <machine/psl.h>
55 1.9 matt #include <machine/intr.h>
56 1.72 uebayasi #include <sys/device_if.h>
57 1.72 uebayasi #include <sys/evcnt.h>
58 1.73 phx #endif
59 1.9 matt
60 1.42 yamt #include <sys/cpu_data.h>
61 1.14 eeh
62 1.9 matt struct cpu_info {
63 1.42 yamt struct cpu_data ci_data; /* MI per-cpu data */
64 1.73 phx #ifdef _KERNEL
65 1.74 matt device_t ci_dev; /* device of corresponding cpu */
66 1.74 matt struct cpu_softc *ci_softc; /* private cpu info */
67 1.23 thorpej struct lwp *ci_curlwp; /* current owner of the processor */
68 1.9 matt
69 1.9 matt struct pcb *ci_curpcb;
70 1.38 matt struct pmap *ci_curpm;
71 1.80 matt struct lwp *ci_softlwps[SOFTINT_COUNT];
72 1.77 matt int ci_cpuid; /* from SPR_PIR */
73 1.9 matt
74 1.57 rjs int ci_want_resched;
75 1.74 matt volatile uint64_t ci_lastintr;
76 1.28 matt volatile u_long ci_lasttb;
77 1.28 matt volatile int ci_tickspending;
78 1.50 freza volatile int ci_cpl;
79 1.50 freza volatile int ci_iactive;
80 1.60 ad volatile int ci_idepth;
81 1.74 matt #ifndef PPC_BOOKE
82 1.70 kiyohara volatile imask_t ci_ipending;
83 1.74 matt #endif
84 1.77 matt volatile uint32_t ci_pending_ipis;
85 1.53 ad int ci_mtx_oldspl;
86 1.53 ad int ci_mtx_count;
87 1.74 matt #ifdef PPC_IBM4XX
88 1.9 matt char *ci_intstk;
89 1.68 matt #endif
90 1.74 matt #ifndef PPC_BOOKE
91 1.32 matt #define CPUSAVE_LEN 8
92 1.32 matt register_t ci_tempsave[CPUSAVE_LEN];
93 1.32 matt register_t ci_ddbsave[CPUSAVE_LEN];
94 1.32 matt register_t ci_ipkdbsave[CPUSAVE_LEN];
95 1.32 matt #define CPUSAVE_R28 0 /* where r28 gets saved */
96 1.32 matt #define CPUSAVE_R29 1 /* where r29 gets saved */
97 1.32 matt #define CPUSAVE_R30 2 /* where r30 gets saved */
98 1.32 matt #define CPUSAVE_R31 3 /* where r31 gets saved */
99 1.74 matt #if defined(PPC_IBM4XX)
100 1.74 matt #define CPUSAVE_DEAR 4 /* where SPR_DEAR gets saved */
101 1.74 matt #define CPUSAVE_ESR 5 /* where SPR_ESR gets saved */
102 1.74 matt register_t ci_tlbmisssave[CPUSAVE_LEN];
103 1.74 matt #else
104 1.32 matt #define CPUSAVE_DAR 4 /* where SPR_DAR gets saved */
105 1.32 matt #define CPUSAVE_DSISR 5 /* where SPR_DSISR gets saved */
106 1.32 matt #define DISISAVE_LEN 4
107 1.32 matt register_t ci_disisave[DISISAVE_LEN];
108 1.68 matt #endif
109 1.74 matt #define CPUSAVE_SRR0 6 /* where SRR0 gets saved */
110 1.74 matt #define CPUSAVE_SRR1 7 /* where SRR1 gets saved */
111 1.74 matt #else /* PPC_BOOKE */
112 1.74 matt #define CPUSAVE_LEN 128
113 1.74 matt register_t ci_savelifo[CPUSAVE_LEN];
114 1.74 matt struct pmap_segtab *ci_pmap_segtabs[2];
115 1.74 matt #define ci_pmap_kern_segtab ci_pmap_segtabs[0]
116 1.74 matt #define ci_pmap_user_segtab ci_pmap_segtabs[1]
117 1.74 matt struct pmap_tlb_info *ci_tlb_info;
118 1.74 matt #endif /* PPC_BOOKE */
119 1.14 eeh struct cache_info ci_ci;
120 1.40 matt void *ci_sysmon_cookie;
121 1.43 matt void (*ci_idlespin)(void);
122 1.44 briggs uint32_t ci_khz;
123 1.25 matt struct evcnt ci_ev_clock; /* clock intrs */
124 1.50 freza struct evcnt ci_ev_statclock; /* stat clock */
125 1.74 matt #ifndef PPC_BOOKE
126 1.25 matt struct evcnt ci_ev_softclock; /* softclock intrs */
127 1.25 matt struct evcnt ci_ev_softnet; /* softnet intrs */
128 1.25 matt struct evcnt ci_ev_softserial; /* softserial intrs */
129 1.74 matt #endif
130 1.9 matt struct evcnt ci_ev_traps; /* calls to trap() */
131 1.9 matt struct evcnt ci_ev_kdsi; /* kernel DSI traps */
132 1.9 matt struct evcnt ci_ev_udsi; /* user DSI traps */
133 1.9 matt struct evcnt ci_ev_udsi_fatal; /* user DSI trap failures */
134 1.33 matt struct evcnt ci_ev_kisi; /* kernel ISI traps */
135 1.9 matt struct evcnt ci_ev_isi; /* user ISI traps */
136 1.9 matt struct evcnt ci_ev_isi_fatal; /* user ISI trap failures */
137 1.9 matt struct evcnt ci_ev_pgm; /* user PGM traps */
138 1.75 matt struct evcnt ci_ev_debug; /* user debug traps */
139 1.9 matt struct evcnt ci_ev_fpu; /* FPU traps */
140 1.9 matt struct evcnt ci_ev_fpusw; /* FPU context switch */
141 1.9 matt struct evcnt ci_ev_ali; /* Alignment traps */
142 1.9 matt struct evcnt ci_ev_ali_fatal; /* Alignment fatal trap */
143 1.9 matt struct evcnt ci_ev_scalls; /* system call traps */
144 1.9 matt struct evcnt ci_ev_vec; /* Altivec traps */
145 1.9 matt struct evcnt ci_ev_vecsw; /* Altivec context switches */
146 1.16 matt struct evcnt ci_ev_umchk; /* user MCHK events */
147 1.59 garbled struct evcnt ci_ev_ipi; /* IPIs received */
148 1.74 matt struct evcnt ci_ev_tlbmiss_soft; /* tlb miss (no trap) */
149 1.74 matt struct evcnt ci_ev_dtlbmiss_hard; /* data tlb miss (trap) */
150 1.74 matt struct evcnt ci_ev_itlbmiss_hard; /* instruction tlb miss (trap) */
151 1.73 phx #endif /* _KERNEL */
152 1.9 matt };
153 1.73 phx #endif /* _KERNEL || _KMEMUSER */
154 1.73 phx
155 1.73 phx #ifdef _KERNEL
156 1.9 matt
157 1.9 matt #ifdef MULTIPROCESSOR
158 1.59 garbled
159 1.59 garbled struct cpu_hatch_data {
160 1.59 garbled struct device *self;
161 1.59 garbled struct cpu_info *ci;
162 1.59 garbled int running;
163 1.59 garbled int pir;
164 1.64 garbled int asr;
165 1.59 garbled int hid0;
166 1.59 garbled int sdr1;
167 1.59 garbled int sr[16];
168 1.59 garbled int batu[4], batl[4];
169 1.59 garbled int tbu, tbl;
170 1.59 garbled };
171 1.59 garbled
172 1.47 perry static __inline int
173 1.11 chs cpu_number(void)
174 1.9 matt {
175 1.9 matt int pir;
176 1.9 matt
177 1.30 matt __asm ("mfspr %0,1023" : "=r"(pir));
178 1.9 matt return pir;
179 1.9 matt }
180 1.9 matt
181 1.11 chs void cpu_boot_secondary_processors(void);
182 1.9 matt
183 1.9 matt
184 1.9 matt #define CPU_IS_PRIMARY(ci) ((ci)->ci_cpuid == 0)
185 1.18 chs #define CPU_INFO_ITERATOR int
186 1.18 chs #define CPU_INFO_FOREACH(cii, ci) \
187 1.64 garbled cii = 0, ci = &cpu_info[0]; cii < ncpu; cii++, ci++
188 1.18 chs
189 1.9 matt #else
190 1.9 matt
191 1.9 matt #define cpu_number() 0
192 1.9 matt
193 1.18 chs #define CPU_INFO_ITERATOR int
194 1.18 chs #define CPU_INFO_FOREACH(cii, ci) \
195 1.18 chs cii = 0, ci = curcpu(); ci != NULL; ci = NULL
196 1.18 chs
197 1.9 matt #endif /* MULTIPROCESSOR */
198 1.9 matt
199 1.25 matt extern struct cpu_info cpu_info[];
200 1.25 matt
201 1.77 matt static __inline struct cpu_info * curcpu(void) __pure;
202 1.47 perry static __inline struct cpu_info *
203 1.25 matt curcpu(void)
204 1.25 matt {
205 1.25 matt struct cpu_info *ci;
206 1.25 matt
207 1.78 matt __asm volatile ("mfsprg0 %0" : "=r"(ci));
208 1.25 matt return ci;
209 1.25 matt }
210 1.25 matt
211 1.77 matt register struct lwp *powerpc_curlwp __asm("r13");
212 1.77 matt #define curlwp powerpc_curlwp
213 1.25 matt #define curpcb (curcpu()->ci_curpcb)
214 1.38 matt #define curpm (curcpu()->ci_curpm)
215 1.25 matt
216 1.47 perry static __inline register_t
217 1.18 chs mfmsr(void)
218 1.18 chs {
219 1.20 matt register_t msr;
220 1.18 chs
221 1.46 perry __asm volatile ("mfmsr %0" : "=r"(msr));
222 1.18 chs return msr;
223 1.18 chs }
224 1.18 chs
225 1.47 perry static __inline void
226 1.20 matt mtmsr(register_t msr)
227 1.18 chs {
228 1.74 matt //KASSERT(msr & PSL_CE);
229 1.74 matt //KASSERT(msr & PSL_DE);
230 1.46 perry __asm volatile ("mtmsr %0" : : "r"(msr));
231 1.19 chs }
232 1.19 chs
233 1.47 perry static __inline uint32_t
234 1.19 chs mftbl(void)
235 1.19 chs {
236 1.19 chs uint32_t tbl;
237 1.19 chs
238 1.46 perry __asm volatile (
239 1.29 hannken #ifdef PPC_IBM403
240 1.74 matt " mftblo %[tbl]" "\n"
241 1.74 matt #elif defined(PPC_BOOKE)
242 1.74 matt " mfspr %[tbl],268" "\n"
243 1.29 hannken #else
244 1.74 matt " mftbl %[tbl]" "\n"
245 1.29 hannken #endif
246 1.74 matt : [tbl] "=r" (tbl));
247 1.29 hannken
248 1.19 chs return tbl;
249 1.19 chs }
250 1.19 chs
251 1.47 perry static __inline uint64_t
252 1.19 chs mftb(void)
253 1.19 chs {
254 1.19 chs uint64_t tb;
255 1.32 matt
256 1.32 matt #ifdef _LP64
257 1.46 perry __asm volatile ("mftb %0" : "=r"(tb));
258 1.32 matt #else
259 1.19 chs int tmp;
260 1.19 chs
261 1.46 perry __asm volatile (
262 1.29 hannken #ifdef PPC_IBM403
263 1.74 matt "1: mftbhi %[tb]" "\n"
264 1.74 matt " mftblo %L[tb]" "\n"
265 1.74 matt " mftbhi %[tmp]" "\n"
266 1.74 matt #elif defined(PPC_BOOKE)
267 1.74 matt "1: mfspr %[tb],269" "\n"
268 1.74 matt " mfspr %L[tb],268" "\n"
269 1.74 matt " mfspr %[tmp],269" "\n"
270 1.29 hannken #else
271 1.74 matt "1: mftbu %[tb]" "\n"
272 1.74 matt " mftb %L[tb]" "\n"
273 1.74 matt " mftbu %[tmp]" "\n"
274 1.74 matt #endif
275 1.74 matt " cmplw %[tb],%[tmp]" "\n"
276 1.74 matt " bne- 1b" "\n"
277 1.74 matt : [tb] "=r" (tb), [tmp] "=r"(tmp)
278 1.74 matt :: "cr0");
279 1.32 matt #endif
280 1.29 hannken
281 1.19 chs return tb;
282 1.24 kleink }
283 1.24 kleink
284 1.47 perry static __inline uint32_t
285 1.24 kleink mfrtcl(void)
286 1.24 kleink {
287 1.24 kleink uint32_t rtcl;
288 1.24 kleink
289 1.46 perry __asm volatile ("mfrtcl %0" : "=r"(rtcl));
290 1.24 kleink return rtcl;
291 1.24 kleink }
292 1.24 kleink
293 1.47 perry static __inline void
294 1.24 kleink mfrtc(uint32_t *rtcp)
295 1.24 kleink {
296 1.24 kleink uint32_t tmp;
297 1.24 kleink
298 1.46 perry __asm volatile (
299 1.74 matt "1: mfrtcu %[rtcu]" "\n"
300 1.74 matt " mfrtcl %[rtcl]" "\n"
301 1.74 matt " mfrtcu %[tmp]" "\n"
302 1.74 matt " cmplw %[rtcu],%[tmp]" "\n"
303 1.74 matt " bne- 1b"
304 1.74 matt : [rtcu] "=r"(rtcp[0]), [rtcl] "=r"(rtcp[1]), [tmp] "=r"(tmp)
305 1.74 matt :: "cr0");
306 1.19 chs }
307 1.19 chs
308 1.47 perry static __inline uint32_t
309 1.19 chs mfpvr(void)
310 1.19 chs {
311 1.19 chs uint32_t pvr;
312 1.19 chs
313 1.46 perry __asm volatile ("mfpvr %0" : "=r"(pvr));
314 1.19 chs return (pvr);
315 1.18 chs }
316 1.18 chs
317 1.49 freza static __inline int
318 1.49 freza cntlzw(uint32_t val)
319 1.49 freza {
320 1.49 freza int cnt;
321 1.49 freza
322 1.49 freza __asm volatile ("cntlzw %0,%1" : "=r"(cnt) : "r"(val));
323 1.49 freza return (cnt);
324 1.49 freza }
325 1.49 freza
326 1.76 macallan /*
327 1.76 macallan * functions to access the G3's cache throttling register
328 1.76 macallan * bits 1 - 9 specify additional waits on cache acess
329 1.76 macallan * bit 0 enables cache throttling
330 1.76 macallan */
331 1.76 macallan
332 1.76 macallan static __inline int
333 1.76 macallan mfictc(void)
334 1.76 macallan {
335 1.76 macallan int reg;
336 1.76 macallan
337 1.76 macallan __asm ("mfspr %0,1019" : "=r"(reg));
338 1.76 macallan return reg;
339 1.76 macallan }
340 1.76 macallan
341 1.76 macallan static __inline void
342 1.76 macallan mtictc(uint32_t reg)
343 1.76 macallan {
344 1.76 macallan
345 1.76 macallan __asm ("mtspr 1019,%0" :: "r"(reg));
346 1.76 macallan }
347 1.76 macallan
348 1.74 matt #define CLKF_USERMODE(frame) (((frame)->cf_srr1 & PSL_PR) != 0)
349 1.74 matt #define CLKF_PC(frame) ((frame)->cf_srr0)
350 1.75 matt #define CLKF_INTR(frame) ((frame)->cf_idepth > 0)
351 1.9 matt
352 1.74 matt #define LWP_PC(l) (trapframe(l)->tf_srr0)
353 1.9 matt
354 1.23 thorpej #define cpu_proc_fork(p1, p2)
355 1.9 matt
356 1.9 matt extern int powersave;
357 1.9 matt extern int cpu_timebase;
358 1.9 matt extern int cpu_printfataltraps;
359 1.16 matt extern char cpu_model[];
360 1.16 matt
361 1.79 matt struct cpu_info *cpu_attach_common(device_t, int);
362 1.79 matt void cpu_setup(device_t, struct cpu_info *);
363 1.16 matt void cpu_identify(char *, size_t);
364 1.71 phx int cpu_get_dfs(void);
365 1.71 phx void cpu_set_dfs(int);
366 1.16 matt void delay (unsigned int);
367 1.16 matt void cpu_probe_cache(void);
368 1.74 matt #ifndef PPC_BOOKE
369 1.16 matt void dcache_flush_page(vaddr_t);
370 1.16 matt void icache_flush_page(vaddr_t);
371 1.16 matt void dcache_flush(vaddr_t, vsize_t);
372 1.16 matt void icache_flush(vaddr_t, vsize_t);
373 1.74 matt #else
374 1.74 matt void dcache_wb_page(vaddr_t);
375 1.74 matt void dcache_wbinv_page(vaddr_t);
376 1.74 matt void dcache_inv_page(vaddr_t);
377 1.74 matt void dcache_zero_page(vaddr_t);
378 1.74 matt void icache_inv_page(vaddr_t);
379 1.74 matt void dcache_wb(vaddr_t, vsize_t);
380 1.74 matt void dcache_wbinv(vaddr_t, vsize_t);
381 1.74 matt void dcache_inv(vaddr_t, vsize_t);
382 1.74 matt void icache_inv(vaddr_t, vsize_t);
383 1.74 matt #endif
384 1.31 scw void *mapiodev(paddr_t, psize_t);
385 1.52 matt void unmapiodev(vaddr_t, vsize_t);
386 1.9 matt
387 1.59 garbled #ifdef MULTIPROCESSOR
388 1.59 garbled int md_setup_trampoline(volatile struct cpu_hatch_data *, struct cpu_info *);
389 1.59 garbled void md_presync_timebase(volatile struct cpu_hatch_data *);
390 1.59 garbled void md_start_timebase(volatile struct cpu_hatch_data *);
391 1.59 garbled void md_sync_timebase(volatile struct cpu_hatch_data *);
392 1.59 garbled void md_setup_interrupts(void);
393 1.59 garbled int cpu_spinup(struct device *, struct cpu_info *);
394 1.64 garbled register_t cpu_hatch(void);
395 1.59 garbled void cpu_spinup_trampoline(void);
396 1.59 garbled #endif
397 1.59 garbled
398 1.9 matt #define DELAY(n) delay(n)
399 1.9 matt
400 1.79 matt void * cpu_uarea_alloc(bool);
401 1.79 matt bool cpu_uarea_free(void *);
402 1.77 matt void cpu_need_resched(struct cpu_info *, int);
403 1.77 matt void cpu_signotify(struct lwp *);
404 1.77 matt void cpu_need_proftick(struct lwp *);
405 1.77 matt #define cpu_did_resched(l) ((l)->l_md.md_astpending = 0)
406 1.9 matt
407 1.74 matt #if !defined(PPC_IBM4XX) && !defined(PPC_BOOKE)
408 1.26 matt void oea_init(void (*)(void));
409 1.26 matt void oea_startup(const char *);
410 1.26 matt void oea_dumpsys(void);
411 1.26 matt void oea_install_extint(void (*)(void));
412 1.55 christos paddr_t kvtop(void *);
413 1.16 matt void softnet(int);
414 1.16 matt
415 1.16 matt extern paddr_t msgbuf_paddr;
416 1.16 matt extern int cpu_altivec;
417 1.16 matt #endif
418 1.16 matt
419 1.9 matt #endif /* _KERNEL */
420 1.9 matt
421 1.61 garbled /* XXX The below breaks unified pmap on ppc32 */
422 1.61 garbled
423 1.9 matt #if defined(_KERNEL) || defined(_STANDALONE)
424 1.9 matt #if !defined(CACHELINESIZE)
425 1.29 hannken #ifdef PPC_IBM403
426 1.62 garbled #define CACHELINESIZE 16
427 1.62 garbled #define MAXCACHELINESIZE 16
428 1.29 hannken #else
429 1.51 sanjayl #if defined (PPC_OEA64_BRIDGE)
430 1.62 garbled #define CACHELINESIZE 128
431 1.62 garbled #define MAXCACHELINESIZE 128
432 1.51 sanjayl #else
433 1.62 garbled #define CACHELINESIZE 32
434 1.62 garbled #define MAXCACHELINESIZE 32
435 1.51 sanjayl #endif /* PPC_OEA64_BRIDGE */
436 1.29 hannken #endif
437 1.9 matt #endif
438 1.10 matt #endif
439 1.10 matt
440 1.15 matt void __syncicache(void *, size_t);
441 1.14 eeh
442 1.5 ws /*
443 1.5 ws * CTL_MACHDEP definitions.
444 1.5 ws */
445 1.9 matt #define CPU_CACHELINE 1
446 1.9 matt #define CPU_TIMEBASE 2
447 1.9 matt #define CPU_CPUTEMP 3
448 1.9 matt #define CPU_PRINTFATALTRAPS 4
449 1.14 eeh #define CPU_CACHEINFO 5
450 1.16 matt #define CPU_ALTIVEC 6
451 1.16 matt #define CPU_MODEL 7
452 1.58 nisimura #define CPU_POWERSAVE 8 /* int: use CPU powersave mode */
453 1.58 nisimura #define CPU_BOOTED_DEVICE 9 /* string: device we booted from */
454 1.58 nisimura #define CPU_BOOTED_KERNEL 10 /* string: kernel we booted */
455 1.58 nisimura #define CPU_MAXID 11 /* number of valid machdep ids */
456 1.1 ws
457 1.5 ws #endif /* _POWERPC_CPU_H_ */
458