]>
Commit | Line | Data |
---|---|---|
91447636 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 | ||
23 | ||
24 | #ifndef _IOKIT_KERNELINTERNAL_H | |
25 | #define _IOKIT_KERNELINTERNAL_H | |
26 | ||
27 | #include <sys/cdefs.h> | |
28 | ||
29 | __BEGIN_DECLS | |
30 | ||
31 | #include <vm/pmap.h> | |
32 | #include <mach/memory_object_types.h> | |
33 | #include <device/device_port.h> | |
34 | ||
35 | typedef kern_return_t (*IOIteratePageableMapsCallback)(vm_map_t map, void * ref); | |
36 | ||
37 | void IOLibInit(void); | |
38 | kern_return_t IOIteratePageableMaps(vm_size_t size, | |
39 | IOIteratePageableMapsCallback callback, void * ref); | |
40 | vm_map_t IOPageableMapForAddress( vm_address_t address ); | |
41 | SInt32 OSKernelStackRemaining( void ); | |
42 | ||
43 | extern vm_size_t debug_iomallocpageable_size; | |
44 | ||
45 | // osfmk/device/iokit_rpc.c | |
46 | // LP64todo - these need to expand | |
47 | extern kern_return_t IOMapPages( vm_map_t map, vm_offset_t va, vm_offset_t pa, | |
48 | vm_size_t length, unsigned int mapFlags); | |
49 | extern kern_return_t IOUnmapPages(vm_map_t map, vm_offset_t va, vm_size_t length); | |
50 | ||
51 | /* Physical to physical copy (ints must be disabled) */ | |
52 | extern void bcopy_phys(addr64_t from, addr64_t to, int size); | |
53 | ||
54 | __END_DECLS | |
55 | ||
56 | #endif /* ! _IOKIT_KERNELINTERNAL_H */ |