diff options
author | alc <alc@FreeBSD.org> | 2009-06-26 04:47:43 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-26 04:47:43 +0000 |
commit | 91cafd48b17a27bda3cfbc38e8460a14c273ba9a (patch) | |
tree | be473333ccc371c232599396e7b5253cdbad245b /sys/vm/vm.h | |
parent | 9a472dd5889ffcc7520ed12bf9cbc791eb34eab7 (diff) | |
download | FreeBSD-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.h | 8 |
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) |