summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm.h
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2009-06-26 04:47:43 +0000
committeralc <alc@FreeBSD.org>2009-06-26 04:47:43 +0000
commit91cafd48b17a27bda3cfbc38e8460a14c273ba9a (patch)
treebe473333ccc371c232599396e7b5253cdbad245b /sys/vm/vm.h
parent9a472dd5889ffcc7520ed12bf9cbc791eb34eab7 (diff)
downloadFreeBSD-src-91cafd48b17a27bda3cfbc38e8460a14c273ba9a.zip
FreeBSD-src-91cafd48b17a27bda3cfbc38e8460a14c273ba9a.tar.gz
This change is the next step in implementing the cache control functionality
required by video card drivers. Specifically, this change introduces vm_cache_mode_t with an appropriate VM_CACHE_DEFAULT definition on all architectures. In addition, this changes adds a vm_cache_mode_t parameter to kmem_alloc_contig() and vm_phys_alloc_contig(). These will be the interfaces for allocating mapped kernel memory and physical memory, respectively, with non-default cache modes. In collaboration with: jhb
Diffstat (limited to 'sys/vm/vm.h')
-rw-r--r--sys/vm/vm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/vm/vm.h b/sys/vm/vm.h
index 57f2163..832c335 100644
--- a/sys/vm/vm.h
+++ b/sys/vm/vm.h
@@ -61,6 +61,14 @@
#ifndef VM_H
#define VM_H
+#include <machine/vm.h>
+
+/*
+ * The exact set of cache control codes is machine dependent. However, every
+ * machine is required to define VM_CACHE_DEFAULT.
+ */
+typedef char vm_cache_mode_t; /* cache control codes */
+
typedef char vm_inherit_t; /* inheritance codes */
#define VM_INHERIT_SHARE ((vm_inherit_t) 0)
OpenPOWER on IntegriCloud