]> git.saurik.com Git - apple/xnu.git/blame - iokit/IOKit/system.h
xnu-344.tar.gz
[apple/xnu.git] / iokit / IOKit / system.h
CommitLineData
1c79356b
A
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
53extern int bcmp(const void *, const void *, size_t);
54extern void bcopy(const void *, void *, size_t);
55extern void bzero(void *, size_t);
56
57extern int memcmp(const void *, const void *, size_t);
58
59extern void _doprnt( const char *format, va_list *arg,
60 void (*putc)(char), int radix );
61
62extern int sscanf(const char *input, const char *fmt, ...);
63extern int sprintf(char *s, const char *format, ...);
64extern long strtol(const char *, char **, int);
65extern unsigned long strtoul(const char *, char **, int);
0b4e3aa0
A
66extern long long strtoq(const char *, char **, int);
67extern unsigned long long strtouq(const char *, char **, int);
1c79356b
A
68
69extern
70#ifdef __GNUC__
71volatile
72#endif
73void panic(const char * msg, ...);
74
75/*
76 */
77
1c79356b
A
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 */
84extern void invalidate_icache(vm_offset_t addr, unsigned cnt, int phys);
85extern void flush_dcache(vm_offset_t addr, unsigned count, int phys);
86
1c79356b
A
87__END_DECLS
88
89#endif /* !__IOKIT_SYSTEM_H */