From 91cafd48b17a27bda3cfbc38e8460a14c273ba9a Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 26 Jun 2009 04:47:43 +0000 Subject: 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 --- sys/vm/vm.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/vm/vm.h') 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 + +/* + * 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) -- cgit v1.1