]>
git.saurik.com Git - apple/xnu.git/blob - iokit/IOKit/system.h
ce7ba115491b9e484f799343b75309f738285a37
2 * Copyright (c) 1998-2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
22 #ifndef __IOKIT_SYSTEM_H
23 #define __IOKIT_SYSTEM_H
25 #include <sys/cdefs.h>
29 #include <mach/mach_types.h>
30 #include <mach/mach_interface.h>
31 #include <mach/etap.h>
32 #include <mach/etap_events.h>
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>
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 */
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);
57 extern int memcmp(const void *, const void *, size_t);
59 extern void _doprnt( const char *format
, va_list *arg
,
60 void (*putc
)(char), int radix
);
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);
73 void panic(const char * msg
, ...);
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
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
);
89 #endif /* !__IOKIT_SYSTEM_H */