Linux Audio

Check our new training course

Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0 */
 2/*
 3 * Written by Kanoj Sarcar (kanoj@sgi.com) Aug 99
 4 * Rewritten for Linux 2.6 by Christoph Hellwig (hch@lst.de) Jan 2004
 5 */
 6#ifndef _ASM_MMZONE_H_
 7#define _ASM_MMZONE_H_
 8
 9#include <asm/page.h>
10
11#ifdef CONFIG_NEED_MULTIPLE_NODES
12# include <mmzone.h>
13#endif
14
15#ifndef pa_to_nid
16#define pa_to_nid(addr) 0
17#endif
18
19#ifndef nid_to_addrbase
20#define nid_to_addrbase(nid) 0
21#endif
22
23#ifdef CONFIG_DISCONTIGMEM
24
25#define pfn_to_nid(pfn)		pa_to_nid((pfn) << PAGE_SHIFT)
26
27#endif /* CONFIG_DISCONTIGMEM */
28
29#endif /* _ASM_MMZONE_H_ */
v4.6
 
 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 <asm/page.h>
 9#include <mmzone.h>
 
 
 
 
 
 
 
 
 
 
 
10
11#ifdef CONFIG_DISCONTIGMEM
12
13#define pfn_to_nid(pfn)		pa_to_nid((pfn) << PAGE_SHIFT)
14
15#endif /* CONFIG_DISCONTIGMEM */
16
17#endif /* _ASM_MMZONE_H_ */