mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-24 08:09:47 +07:00
1bdb7b7670
Clean up legacy code after stripping out Loongson2ef code. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: linux-mips@vger.kernel.org Cc: paul.burton@mips.com
30 lines
957 B
C
30 lines
957 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2010 Loongson Inc. & Lemote Inc. &
|
|
* Institute of Computing Technology
|
|
* Author: Xiang Gao, gaoxiang@ict.ac.cn
|
|
* Huacai Chen, chenhc@lemote.com
|
|
* Xiaofu Meng, Shuangshuang Zhang
|
|
*/
|
|
#ifndef _ASM_MACH_LOONGSON64_MMZONE_H
|
|
#define _ASM_MACH_LOONGSON64_MMZONE_H
|
|
|
|
#include <boot_param.h>
|
|
#define NODE_ADDRSPACE_SHIFT 44
|
|
#define NODE0_ADDRSPACE_OFFSET 0x000000000000UL
|
|
#define NODE1_ADDRSPACE_OFFSET 0x100000000000UL
|
|
#define NODE2_ADDRSPACE_OFFSET 0x200000000000UL
|
|
#define NODE3_ADDRSPACE_OFFSET 0x300000000000UL
|
|
|
|
#define pa_to_nid(addr) (((addr) & 0xf00000000000) >> NODE_ADDRSPACE_SHIFT)
|
|
#define nid_to_addrbase(nid) ((nid) << NODE_ADDRSPACE_SHIFT)
|
|
|
|
extern struct pglist_data *__node_data[];
|
|
|
|
#define NODE_DATA(n) (__node_data[n])
|
|
|
|
extern void setup_zero_pages(void);
|
|
extern void __init prom_init_numa_memory(void);
|
|
|
|
#endif /* _ASM_MACH_MMZONE_H */
|