]>
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_LICENSE_OSREFERENCE_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
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
33 #ifndef _PPC_CPU_INTERNAL_H_
34 #define _PPC_CPU_INTERNAL_H_
36 #include <mach/kern_return.h>
37 #include <ppc/exception.h>
39 extern void _start_cpu(
42 extern void cpu_bootstrap(
48 extern void cpu_machine_init(
51 extern void cpu_doshutdown(
54 extern void cpu_signal_handler(
57 extern kern_return_t
cpu_signal(
63 #define SIGPast 0 /* Requests an ast on target processor */
64 #define SIGPcpureq 1 /* Requests CPU specific function */
65 #define SIGPdebug 2 /* Requests a debugger entry */
66 #define SIGPwake 3 /* Wake up a sleeping processor */
67 #define SIGPcall 4 /* Call a function on a processor */
69 #define CPRQtimebase 1 /* Get timebase of processor */
70 #define CPRQsegload 2 /* Segment registers reload */
71 #define CPRQscom 3 /* SCOM */
72 #define CPRQchud 4 /* CHUD perfmon */
73 #define CPRQsps 5 /* Set Processor Speed */
76 extern struct per_proc_info
* cpu_per_proc_alloc(
79 extern void cpu_per_proc_free(
80 struct per_proc_info
*per_proc
);
82 extern void * console_per_proc_alloc(
83 boolean_t boot_processor
);
85 extern void console_per_proc_free(
88 extern void * chudxnu_per_proc_alloc(
89 boolean_t boot_processor
);
91 extern void chudxnu_per_proc_free(
94 extern kern_return_t
cpu_per_proc_register(
95 struct per_proc_info
*proc_info
);
97 extern unsigned int real_ncpus
;
98 extern unsigned int max_ncpus
;
100 #endif /* _PPC_CPU_INTERNAL_H_ */