]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/i386/misc_protos.h
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
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.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
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
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
32 #include <i386/thread.h>
34 extern void i386_preinit(void);
35 extern void i386_init(void);
36 extern void i386_vm_init(unsigned int, struct KernelBootArgs
*);
38 extern void machine_startup(void);
40 extern void get_root_device(void);
41 extern void picinit(void);
42 extern void interrupt_processor(
44 extern void mp_probe_cpus(void);
45 extern void remote_kdb(void);
46 extern void clear_kdb_intr(void);
47 extern void draw_panic_dialog(void);
48 extern void cpu_init(void);
49 extern void cpu_shutdown(void);
55 extern void form_pic_mask(void);
58 extern char * i386_boot_info(
66 extern void kdb_kintr(void);
67 extern void kdb_console(void);
69 extern unsigned int div_scale(
70 unsigned int dividend
,
74 extern unsigned int mul_scale(
75 unsigned int multiplicand
,
76 unsigned int multiplier
,
79 /* Move arbitrarily-aligned data from one physical address to another */
80 extern void bcopy_phys(addr64_t from
, addr64_t to
, vm_size_t nbytes
);
82 /* Flush all cachelines for a page. */
83 extern void cache_flush_page_phys(ppnum_t pa
);
85 /* Flushing for incoherent I/O */
86 extern void dcache_incoherent_io_flush64(addr64_t pa
, unsigned int count
);
87 extern void dcache_incoherent_io_store64(addr64_t pa
, unsigned int count
);
90 extern processor_t
cpu_processor_alloc(boolean_t is_boot_cpu
);
91 extern void cpu_processor_free(processor_t proc
);
93 extern void sysclk_gettime_interrupts_disabled(
94 mach_timespec_t
*cur_time
);
97 extern void rtclock_intr(struct i386_interrupt_state
*regs
);
99 extern void rtc_sleep_wakeup(void);
101 extern void rtc_clock_stepping(
102 uint32_t new_frequency
,
103 uint32_t old_frequency
);
104 extern void rtc_clock_stepped(
105 uint32_t new_frequency
,
106 uint32_t old_frequency
);
108 extern void x86_lowmem_free(void);