1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2384740dcSRalf Baechle #ifndef _ASM_MACH_MMZONE_H 3384740dcSRalf Baechle #define _ASM_MACH_MMZONE_H 4384740dcSRalf Baechle 5384740dcSRalf Baechle #include <asm/sn/addrs.h> 6384740dcSRalf Baechle #include <asm/sn/arch.h> 7*b78e9d63SThomas Bogendoerfer #include <asm/sn/agent.h> 8*b78e9d63SThomas Bogendoerfer #include <asm/sn/klkernvars.h> 9384740dcSRalf Baechle 104bf841ebSThomas Bogendoerfer #define pa_to_nid(addr) NASID_GET(addr) 11384740dcSRalf Baechle 12384740dcSRalf Baechle struct hub_data { 13384740dcSRalf Baechle kern_vars_t kern_vars; 14384740dcSRalf Baechle DECLARE_BITMAP(h_bigwin_used, HUB_NUM_BIG_WINDOW); 15384740dcSRalf Baechle cpumask_t h_cpus; 16384740dcSRalf Baechle }; 17384740dcSRalf Baechle 18384740dcSRalf Baechle struct node_data { 19384740dcSRalf Baechle struct pglist_data pglist; 20384740dcSRalf Baechle struct hub_data hub; 21384740dcSRalf Baechle }; 22384740dcSRalf Baechle 23384740dcSRalf Baechle extern struct node_data *__node_data[]; 24384740dcSRalf Baechle 25384740dcSRalf Baechle #define hub_data(n) (&__node_data[(n)]->hub) 26384740dcSRalf Baechle 27384740dcSRalf Baechle #endif /* _ASM_MACH_MMZONE_H */ 28