]> git.saurik.com Git - apple/xnu.git/blame - osfmk/ppc/cpu_internal.h
xnu-792.17.14.tar.gz
[apple/xnu.git] / osfmk / ppc / cpu_internal.h
CommitLineData
91447636
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
8f6c56a5 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
91447636 5 *
8f6c56a5
A
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.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
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
8ad349bb 24 * limitations under the License.
8f6c56a5
A
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
91447636
A
27 */
28/*
29 * @OSF_COPYRIGHT@
30 */
31#ifndef _PPC_CPU_INTERNAL_H_
32#define _PPC_CPU_INTERNAL_H_
33
34#include <mach/kern_return.h>
35#include <ppc/exception.h>
36
37extern void _start_cpu(
38 void);
39
40extern void cpu_bootstrap(
41 void);
42
43extern void cpu_init(
44 void);
45
46extern void cpu_machine_init(
47 void);
48
49extern void cpu_doshutdown(
50 void);
51
52extern void cpu_signal_handler(
53 void);
54
55extern kern_return_t cpu_signal(
56 int target,
57 int signal,
58 unsigned int p1,
59 unsigned int p2);
60
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 */
66
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 */
72
73
74extern struct per_proc_info * cpu_per_proc_alloc(
75 void);
76
77extern void cpu_per_proc_free(
78 struct per_proc_info *per_proc);
79
80extern void * console_per_proc_alloc(
81 boolean_t boot_processor);
82
83extern void console_per_proc_free(
84 void *per_proc_cbfr);
85
86extern void * chudxnu_per_proc_alloc(
87 boolean_t boot_processor);
88
89extern void chudxnu_per_proc_free(
90 void *per_proc_chud);
91
92extern kern_return_t cpu_per_proc_register(
93 struct per_proc_info *proc_info);
94
95extern unsigned int real_ncpus;
96extern unsigned int max_ncpus;
97
98#endif /* _PPC_CPU_INTERNAL_H_ */