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