[MIPS] Consolidate definitions of pfn_valid in one file.
[pandora-kernel.git] / include / asm-mips / mmzone.h
1 /*
2  * Written by Kanoj Sarcar (kanoj@sgi.com) Aug 99
3  * Rewritten for Linux 2.6 by Christoph Hellwig (hch@lst.de) Jan 2004
4  */
5 #ifndef _ASM_MMZONE_H_
6 #define _ASM_MMZONE_H_
7
8 #include <linux/config.h>
9 #include <asm/page.h>
10 #include <mmzone.h>
11
12 #ifdef CONFIG_DISCONTIGMEM
13
14 #define kvaddr_to_nid(kvaddr)   pa_to_nid(__pa(kvaddr))
15 #define pfn_to_nid(pfn)         pa_to_nid((pfn) << PAGE_SHIFT)
16
17 /* XXX: FIXME -- wli */
18 #define kern_addr_valid(addr)   (0)
19
20 #endif /* CONFIG_DISCONTIGMEM */
21
22 #endif /* _ASM_MMZONE_H_ */