]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/cpu_internal.h
2 * Copyright (c) 2000 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 void cpu_machine_init(
49 extern void cpu_doshutdown(
52 extern void cpu_signal_handler(
55 extern kern_return_t
cpu_signal(
61 #define SIGPast 0 /* Requests an ast on target processor */
62 #define SIGPcpureq 1 /* Requests CPU specific function */
63 #define SIGPdebug 2 /* Requests a debugger entry */
64 #define SIGPwake 3 /* Wake up a sleeping processor */
65 #define SIGPcall 4 /* Call a function on a processor */
67 #define CPRQtimebase 1 /* Get timebase of processor */
68 #define CPRQsegload 2 /* Segment registers reload */
69 #define CPRQscom 3 /* SCOM */
70 #define CPRQchud 4 /* CHUD perfmon */
71 #define CPRQsps 5 /* Set Processor Speed */
74 extern struct per_proc_info
* cpu_per_proc_alloc(
77 extern void cpu_per_proc_free(
78 struct per_proc_info
*per_proc
);
80 extern void * console_per_proc_alloc(
81 boolean_t boot_processor
);
83 extern void console_per_proc_free(
86 extern void * chudxnu_per_proc_alloc(
87 boolean_t boot_processor
);
89 extern void chudxnu_per_proc_free(
92 extern kern_return_t
cpu_per_proc_register(
93 struct per_proc_info
*proc_info
);
95 extern unsigned int real_ncpus
;
96 extern unsigned int max_ncpus
;
98 #endif /* _PPC_CPU_INTERNAL_H_ */