]> git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/system.h
ce7ba115491b9e484f799343b75309f738285a37
[apple/xnu.git] / iokit / IOKit / system.h
1 /*
2 * Copyright (c) 1998-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 #ifndef __IOKIT_SYSTEM_H
23 #define __IOKIT_SYSTEM_H
24
25 #include <sys/cdefs.h>
26
27 __BEGIN_DECLS
28
29 #include <mach/mach_types.h>
30 #include <mach/mach_interface.h>
31 #include <mach/etap.h>
32 #include <mach/etap_events.h>
33
34 #include <stdarg.h>
35
36 #if KERNEL_PRIVATE
37 #include <IOKit/assert.h> /* Must be before other includes of kern/assert.h */
38 #include <kern/cpu_data.h>
39 #include <kern/thread.h>
40 #include <kern/thread_act.h>
41 #include <vm/pmap.h>
42 #include <vm/vm_kern.h>
43 #include <kern/kalloc.h>
44 #include <kern/task.h>
45 #include <kern/time_out.h>
46 #include <kern/sched_prim.h>
47 #include <machine/spl.h>
48 #include <kern/lock.h>
49 #include <kern/queue.h>
50 #include <kern/ipc_mig.h>
51 #endif /* KERNEL_PRIVATE */
52
53 extern int bcmp(const void *, const void *, size_t);
54 extern void bcopy(const void *, void *, size_t);
55 extern void bzero(void *, size_t);
56
57 extern int memcmp(const void *, const void *, size_t);
58
59 extern void _doprnt( const char *format, va_list *arg,
60 void (*putc)(char), int radix );
61
62 extern int sscanf(const char *input, const char *fmt, ...);
63 extern int sprintf(char *s, const char *format, ...);
64 extern long strtol(const char *, char **, int);
65 extern unsigned long strtoul(const char *, char **, int);
66 extern long long strtoq(const char *, char **, int);
67 extern unsigned long long strtouq(const char *, char **, int);
68
69 extern
70 #ifdef __GNUC__
71 volatile
72 #endif
73 void panic(const char * msg, ...);
74
75 /*
76 */
77
78 /*
79 * Really need a set of interfaces from osfmk/pexpert components to do
80 * all that is required to prepare an I/O from a cache management point
81 * of view.
82 * osfmk/ppc/cache.s
83 */
84 extern void invalidate_icache(vm_offset_t addr, unsigned cnt, int phys);
85 extern void flush_dcache(vm_offset_t addr, unsigned count, int phys);
86
87 __END_DECLS
88
89 #endif /* !__IOKIT_SYSTEM_H */