]>
Commit | Line | Data |
---|---|---|
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 | ||
31 | extern void _start_cpu( | |
32 | void); | |
33 | ||
34 | extern void cpu_bootstrap( | |
35 | void); | |
36 | ||
37 | extern void cpu_init( | |
38 | void); | |
39 | ||
40 | extern void cpu_machine_init( | |
41 | void); | |
42 | ||
43 | extern void cpu_doshutdown( | |
44 | void); | |
45 | ||
46 | extern void cpu_signal_handler( | |
47 | void); | |
48 | ||
49 | extern 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 | ||
68 | extern struct per_proc_info * cpu_per_proc_alloc( | |
69 | void); | |
70 | ||
71 | extern void cpu_per_proc_free( | |
72 | struct per_proc_info *per_proc); | |
73 | ||
74 | extern void * console_per_proc_alloc( | |
75 | boolean_t boot_processor); | |
76 | ||
77 | extern void console_per_proc_free( | |
78 | void *per_proc_cbfr); | |
79 | ||
80 | extern void * chudxnu_per_proc_alloc( | |
81 | boolean_t boot_processor); | |
82 | ||
83 | extern void chudxnu_per_proc_free( | |
84 | void *per_proc_chud); | |
85 | ||
86 | extern kern_return_t cpu_per_proc_register( | |
87 | struct per_proc_info *proc_info); | |
88 | ||
89 | extern unsigned int real_ncpus; | |
90 | extern unsigned int max_ncpus; | |
91 | ||
92 | #endif /* _PPC_CPU_INTERNAL_H_ */ |