summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_phys.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_phys.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_phys.h')
-rw-r--r--sys/vm/vm_phys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_phys.h b/sys/vm/vm_phys.h
index 0e012c3..483ab91 100644
--- a/sys/vm/vm_phys.h
+++ b/sys/vm/vm_phys.h
@@ -43,7 +43,7 @@
void vm_phys_add_page(vm_paddr_t pa);
vm_page_t vm_phys_alloc_contig(unsigned long npages,
vm_paddr_t low, vm_paddr_t high,
- unsigned long alignment, unsigned long boundary);
+ unsigned long alignment, unsigned long boundary, vm_cache_mode_t mode);
vm_page_t vm_phys_alloc_pages(int pool, int order);
vm_paddr_t vm_phys_bootstrap_alloc(vm_size_t size, unsigned long alignment);
void vm_phys_free_pages(vm_page_t m, int order);
OpenPOWER on IntegriCloud