]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/i386/misc_protos.h
9412dec32023115b411c20f3b84d26bdcdb21d15
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_OSREFERENCE_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
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
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
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.
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
34 #include <i386/thread.h>
36 extern void i386_preinit(void);
37 extern void i386_init(void);
38 extern void i386_vm_init(unsigned int, struct KernelBootArgs
*);
40 extern void machine_startup(void);
42 extern void get_root_device(void);
43 extern void picinit(void);
44 extern void interrupt_processor(
46 extern void mp_probe_cpus(void);
47 extern void remote_kdb(void);
48 extern void clear_kdb_intr(void);
49 extern void draw_panic_dialog(void);
50 extern void cpu_init(void);
51 extern void cpu_shutdown(void);
57 extern void form_pic_mask(void);
60 extern char * i386_boot_info(
68 extern void kdb_kintr(void);
69 extern void kdb_console(void);
71 extern unsigned int div_scale(
72 unsigned int dividend
,
76 extern unsigned int mul_scale(
77 unsigned int multiplicand
,
78 unsigned int multiplier
,
81 /* Move arbitrarily-aligned data from one physical address to another */
82 extern void bcopy_phys(addr64_t from
, addr64_t to
, vm_size_t nbytes
);
84 /* Flush all cachelines for a page. */
85 extern void cache_flush_page_phys(ppnum_t pa
);
87 /* Flushing for incoherent I/O */
88 extern void dcache_incoherent_io_flush64(addr64_t pa
, unsigned int count
);
89 extern void dcache_incoherent_io_store64(addr64_t pa
, unsigned int count
);
92 extern processor_t
cpu_processor_alloc(boolean_t is_boot_cpu
);
93 extern void cpu_processor_free(processor_t proc
);
95 extern void sysclk_gettime_interrupts_disabled(
96 mach_timespec_t
*cur_time
);
99 extern void rtclock_intr(struct i386_interrupt_state
*regs
);
101 extern void rtc_sleep_wakeup(void);
103 extern void rtc_clock_stepping(
104 uint32_t new_frequency
,
105 uint32_t old_frequency
);
106 extern void rtc_clock_stepped(
107 uint32_t new_frequency
,
108 uint32_t old_frequency
);
110 extern void x86_lowmem_free(void);