pat.h 529 B

12345678910111213141516171819202122
  1. #ifndef ASM_X86__PAT_H
  2. #define ASM_X86__PAT_H
  3. #include <linux/types.h>
  4. #ifdef CONFIG_X86_PAT
  5. extern int pat_enabled;
  6. extern void validate_pat_support(struct cpuinfo_x86 *c);
  7. #else
  8. static const int pat_enabled;
  9. static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
  10. #endif
  11. extern void pat_init(void);
  12. extern int reserve_memtype(u64 start, u64 end,
  13. unsigned long req_type, unsigned long *ret_type);
  14. extern int free_memtype(u64 start, u64 end);
  15. extern void pat_disable(char *reason);
  16. #endif /* ASM_X86__PAT_H */