]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/cpu_internal.h
2 * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
31 #ifndef _PPC_CPU_INTERNAL_H_
32 #define _PPC_CPU_INTERNAL_H_
34 #include <mach/kern_return.h>
35 #include <ppc/exception.h>
37 extern void _start_cpu(
40 extern void cpu_bootstrap(
46 extern kern_return_t
cpu_signal(
52 #define SIGPast 0 /* Requests an ast on target processor */
53 #define SIGPcpureq 1 /* Requests CPU specific function */
54 #define SIGPdebug 2 /* Requests a debugger entry */
55 #define SIGPwake 3 /* Wake up a sleeping processor */
56 #define SIGPcall 4 /* Call a function on a processor */
58 #define CPRQtimebase 1 /* Get timebase of processor */
59 #define CPRQsegload 2 /* Segment registers reload */
60 #define CPRQscom 3 /* SCOM */
61 #define CPRQchud 4 /* CHUD perfmon */
62 #define CPRQsps 5 /* Set Processor Speed */
65 extern struct per_proc_info
* cpu_per_proc_alloc(
68 extern void cpu_per_proc_free(
69 struct per_proc_info
*per_proc
);
71 extern void * console_per_proc_alloc(
72 boolean_t boot_processor
);
74 extern void console_per_proc_free(
77 extern void * chudxnu_per_proc_alloc(
78 boolean_t boot_processor
);
80 extern void chudxnu_per_proc_free(
83 extern kern_return_t
cpu_per_proc_register(
84 struct per_proc_info
*proc_info
);
86 extern unsigned int real_ncpus
;
87 extern unsigned int max_ncpus
;
89 #endif /* _PPC_CPU_INTERNAL_H_ */