pat.h 514 B

123456789101112131415161718192021222324
  1. #ifndef _ASM_PAT_H
  2. #define _ASM_PAT_H 1
  3. #include <linux/types.h>
  4. #ifdef CONFIG_X86_PAT
  5. extern int pat_wc_enabled;
  6. extern void validate_pat_support(struct cpuinfo_x86 *c);
  7. #else
  8. static const int pat_wc_enabled = 0;
  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