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