diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-23 17:02:58 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-02-23 17:02:58 +0000 |
commit | 116cd90796197322ef6c7b9870e210c0d5b38f94 (patch) | |
tree | a1555b70b546b80840284778136f9f65841546df /xen/include/xen/mm.h | |
parent | d3ed20c747da06d5d8a497b5f50657ab73af5d38 (diff) | |
download | xen-116cd90796197322ef6c7b9870e210c0d5b38f94.tar.gz xen-116cd90796197322ef6c7b9870e210c0d5b38f94.tar.bz2 xen-116cd90796197322ef6c7b9870e210c0d5b38f94.zip |
xen memory alloctor: remove bit width restrictions
Hide the (default or user specified) DMA width from anything outside
the heap allocator. I/O-capable guests can now request any width for
the memory they want exchanged/added.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/xen/mm.h')
-rw-r--r-- | xen/include/xen/mm.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h index 909dcdcb12..8de9acaaab 100644 --- a/xen/include/xen/mm.h +++ b/xen/include/xen/mm.h @@ -74,10 +74,10 @@ int assign_pages( unsigned int memflags); /* memflags: */ -#define _MEMF_dma 0 -#define MEMF_dma (1U<<_MEMF_dma) -#define _MEMF_no_refcount 1 +#define _MEMF_no_refcount 0 #define MEMF_no_refcount (1U<<_MEMF_no_refcount) +#define _MEMF_bits 24 +#define MEMF_bits(n) ((n)<<_MEMF_bits) #ifdef CONFIG_PAGEALLOC_MAX_ORDER #define MAX_ORDER CONFIG_PAGEALLOC_MAX_ORDER @@ -85,10 +85,6 @@ int assign_pages( #define MAX_ORDER 20 /* 2^20 contiguous pages */ #endif -/* DMA heap parameters. */ -extern unsigned int dma_bitsize; -extern unsigned long max_dma_mfn; - /* Automatic page scrubbing for dead domains. */ extern struct list_head page_scrub_list; #define page_scrub_schedule_work() \ |