]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/i386/mtrr.h
2 * Copyright (c) 2000-2003 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@
27 * Memory type range register (MTRR) support.
30 #include <mach/std_types.h>
31 #include <sys/appleapiopts.h>
32 #include <sys/cdefs.h>
34 #ifdef __APPLE_API_PRIVATE
37 MTRR_TYPE_UNCACHEABLE
= 0,
38 MTRR_TYPE_WRITECOMBINE
= 1,
39 MTRR_TYPE_WRITETHROUGH
= 4,
40 MTRR_TYPE_WRITEPROTECT
= 5,
41 MTRR_TYPE_WRITEBACK
= 6
46 extern void mtrr_init(void);
47 extern kern_return_t
mtrr_update_cpu(void);
48 extern kern_return_t
mtrr_update_all_cpus(void);
50 extern kern_return_t
mtrr_range_add( addr64_t phys_addr
,
54 extern kern_return_t
mtrr_range_remove( addr64_t phys_addr
,
58 extern void pat_init(void);
62 #endif /* __APPLE_API_PRIVATE */
64 #endif /* !_I386_MTRR_H_ */