vm.h (09c817ba36db7c3a4ff5e25ac55816ca181a403d) vm.h (3153e878dd4c552fb5c680742041a98dc3deb9ea)
1/*-
2 * Copyright (c) 2009 Advanced Computing Technologies LLC
3 * Written by: John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 18 unchanged lines hidden (view full) ---

27 * $FreeBSD$
28 */
29
30#ifndef _MACHINE_VM_H_
31#define _MACHINE_VM_H_
32
33#include <machine/specialreg.h>
34
1/*-
2 * Copyright (c) 2009 Advanced Computing Technologies LLC
3 * Written by: John H. Baldwin <jhb@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 18 unchanged lines hidden (view full) ---

27 * $FreeBSD$
28 */
29
30#ifndef _MACHINE_VM_H_
31#define _MACHINE_VM_H_
32
33#include <machine/specialreg.h>
34
35/* Cache control options. */
36#define VM_CACHE_UNCACHEABLE ((vm_cache_mode_t)PAT_UNCACHEABLE)
37#define VM_CACHE_WRITE_COMBINING ((vm_cache_mode_t)PAT_WRITE_COMBINING)
38#define VM_CACHE_WRITE_THROUGH ((vm_cache_mode_t)PAT_WRITE_THROUGH)
39#define VM_CACHE_WRITE_PROTECTED ((vm_cache_mode_t)PAT_WRITE_PROTECTED)
40#define VM_CACHE_WRITE_BACK ((vm_cache_mode_t)PAT_WRITE_BACK)
41#define VM_CACHE_UNCACHED ((vm_cache_mode_t)PAT_UNCACHED)
35/* Memory attributes. */
36#define VM_MEMATTR_UNCACHEABLE ((vm_memattr_t)PAT_UNCACHEABLE)
37#define VM_MEMATTR_WRITE_COMBINING ((vm_memattr_t)PAT_WRITE_COMBINING)
38#define VM_MEMATTR_WRITE_THROUGH ((vm_memattr_t)PAT_WRITE_THROUGH)
39#define VM_MEMATTR_WRITE_PROTECTED ((vm_memattr_t)PAT_WRITE_PROTECTED)
40#define VM_MEMATTR_WRITE_BACK ((vm_memattr_t)PAT_WRITE_BACK)
41#define VM_MEMATTR_UNCACHED ((vm_memattr_t)PAT_UNCACHED)
42
42
43#define VM_CACHE_DEFAULT VM_CACHE_WRITE_BACK
43#define VM_MEMATTR_DEFAULT VM_MEMATTR_WRITE_BACK
44
45#endif /* !_MACHINE_VM_H_ */
44
45#endif /* !_MACHINE_VM_H_ */