blob: dc231c89bef9b5a2147530f52b71cc62e6c3945b [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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 <asm/page.h>
9#include <mmzone.h>
10
Yoichi Yuasab4819b52005-06-25 14:54:31 -070011#ifdef CONFIG_DISCONTIGMEM
12
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#define kvaddr_to_nid(kvaddr) pa_to_nid(__pa(kvaddr))
14#define pfn_to_nid(pfn) pa_to_nid((pfn) << PAGE_SHIFT)
15
Yoichi Yuasab4819b52005-06-25 14:54:31 -070016#endif /* CONFIG_DISCONTIGMEM */
17
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#endif /* _ASM_MMZONE_H_ */