]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/ppc/cpu_internal.h
xnu-792.25.20.tar.gz
[apple/xnu.git] / osfmk / ppc / cpu_internal.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
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.
11 *
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
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 * @OSF_COPYRIGHT@
24 */
25#ifndef _PPC_CPU_INTERNAL_H_
26#define _PPC_CPU_INTERNAL_H_
27
28#include <mach/kern_return.h>
29#include <ppc/exception.h>
30
31extern void _start_cpu(
32 void);
33
34extern void cpu_bootstrap(
35 void);
36
37extern void cpu_init(
38 void);
39
40extern void cpu_machine_init(
41 void);
42
43extern void cpu_doshutdown(
44 void);
45
46extern void cpu_signal_handler(
47 void);
48
49extern kern_return_t cpu_signal(
50 int target,
51 int signal,
52 unsigned int p1,
53 unsigned int p2);
54
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 */
60
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 */
66
67
68extern struct per_proc_info * cpu_per_proc_alloc(
69 void);
70
71extern void cpu_per_proc_free(
72 struct per_proc_info *per_proc);
73
74extern void * console_per_proc_alloc(
75 boolean_t boot_processor);
76
77extern void console_per_proc_free(
78 void *per_proc_cbfr);
79
80extern void * chudxnu_per_proc_alloc(
81 boolean_t boot_processor);
82
83extern void chudxnu_per_proc_free(
84 void *per_proc_chud);
85
86extern kern_return_t cpu_per_proc_register(
87 struct per_proc_info *proc_info);
88
89extern unsigned int real_ncpus;
90extern unsigned int max_ncpus;
91
92#endif /* _PPC_CPU_INTERNAL_H_ */