xref: /haiku/src/add-ons/kernel/cpu/x86/generic_x86.h (revision 1d9d47fc72028bb71b5f232a877231e59cfe2438)
1 /*
2  * Copyright 2005, Haiku, Inc.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Axel Dörfler, axeld@pinc-software.de
7  */
8 #ifndef CPU_GENERIC_x86_H
9 #define CPU_GENERIC_x86_H
10 
11 
12 #include <SupportDefs.h>
13 
14 
15 extern uint64 gPhysicalMask;
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 extern uint32	generic_count_mtrrs(void);
22 extern void		generic_init_mtrrs(uint32 count);
23 extern void		generic_set_mtrr(uint32 index, uint64 base, uint64 length, uint8 type);
24 extern status_t generic_get_mtrr(uint32 index, uint64 *_base, uint64 *_length,
25 					uint8 *_type);
26 extern status_t generic_mtrr_compute_physical_mask(void);
27 
28 extern void		generic_dump_mtrrs(uint32 count);
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif	// CPU_GENERIC_x86_H
35