]>
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_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
25 #ifndef _PPC_CPU_INTERNAL_H_
26 #define _PPC_CPU_INTERNAL_H_
28 #include <mach/kern_return.h>
29 #include <ppc/exception.h>
31 extern void _start_cpu(
34 extern void cpu_bootstrap(
40 extern void cpu_machine_init(
43 extern void cpu_doshutdown(
46 extern void cpu_signal_handler(
49 extern kern_return_t
cpu_signal(
55 #define SIGPast 0 /* Requests an ast on target processor */
56 #define SIGPcpureq 1 /* Requests CPU specific function */
57 #define SIGPdebug 2 /* Requests a debugger entry */
58 #define SIGPwake 3 /* Wake up a sleeping processor */
59 #define SIGPcall 4 /* Call a function on a processor */
61 #define CPRQtimebase 1 /* Get timebase of processor */
62 #define CPRQsegload 2 /* Segment registers reload */
63 #define CPRQscom 3 /* SCOM */
64 #define CPRQchud 4 /* CHUD perfmon */
65 #define CPRQsps 5 /* Set Processor Speed */
68 extern struct per_proc_info
* cpu_per_proc_alloc(
71 extern void cpu_per_proc_free(
72 struct per_proc_info
*per_proc
);
74 extern void * console_per_proc_alloc(
75 boolean_t boot_processor
);
77 extern void console_per_proc_free(
80 extern void * chudxnu_per_proc_alloc(
81 boolean_t boot_processor
);
83 extern void chudxnu_per_proc_free(
86 extern kern_return_t
cpu_per_proc_register(
87 struct per_proc_info
*proc_info
);
89 extern unsigned int real_ncpus
;
90 extern unsigned int max_ncpus
;
92 #endif /* _PPC_CPU_INTERNAL_H_ */