0001
0002 #ifndef _ASM_MACH_MMZONE_H
0003 #define _ASM_MACH_MMZONE_H
0004
0005 #include <asm/sn/addrs.h>
0006 #include <asm/sn/arch.h>
0007 #include <asm/sn/agent.h>
0008 #include <asm/sn/klkernvars.h>
0009
0010 #define pa_to_nid(addr) NASID_GET(addr)
0011
0012 struct hub_data {
0013 kern_vars_t kern_vars;
0014 DECLARE_BITMAP(h_bigwin_used, HUB_NUM_BIG_WINDOW);
0015 cpumask_t h_cpus;
0016 };
0017
0018 struct node_data {
0019 struct pglist_data pglist;
0020 struct hub_data hub;
0021 };
0022
0023 extern struct node_data *__node_data[];
0024
0025 #define NODE_DATA(n) (&__node_data[(n)]->pglist)
0026 #define hub_data(n) (&__node_data[(n)]->hub)
0027
0028 #endif