xref: /kernel/linux/linux-5.10/arch/mips/include/asm/mmzone.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/mips/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Written by Kanoj Sarcar (kanoj@sgi.com) Aug 99
48c2ecf20Sopenharmony_ci * Rewritten for Linux 2.6 by Christoph Hellwig (hch@lst.de) Jan 2004
58c2ecf20Sopenharmony_ci */
68c2ecf20Sopenharmony_ci#ifndef _ASM_MMZONE_H_
78c2ecf20Sopenharmony_ci#define _ASM_MMZONE_H_
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#include <asm/page.h>
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifdef CONFIG_NEED_MULTIPLE_NODES
128c2ecf20Sopenharmony_ci# include <mmzone.h>
138c2ecf20Sopenharmony_ci#endif
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#ifndef pa_to_nid
168c2ecf20Sopenharmony_ci#define pa_to_nid(addr) 0
178c2ecf20Sopenharmony_ci#endif
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#ifndef nid_to_addrbase
208c2ecf20Sopenharmony_ci#define nid_to_addrbase(nid) 0
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#ifdef CONFIG_DISCONTIGMEM
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#define pfn_to_nid(pfn)		pa_to_nid((pfn) << PAGE_SHIFT)
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ci#endif /* CONFIG_DISCONTIGMEM */
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif /* _ASM_MMZONE_H_ */
30

Indexes created Thu Nov 07 10:32:03 CST 2024