mmzone.h 605 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_MACH_MMZONE_H
  3. #define _ASM_MACH_MMZONE_H
  4. #include <asm/sn/addrs.h>
  5. #include <asm/sn/arch.h>
  6. #include <asm/sn/agent.h>
  7. #include <asm/sn/klkernvars.h>
  8. #define pa_to_nid(addr) NASID_GET(addr)
  9. struct hub_data {
  10. kern_vars_t kern_vars;
  11. DECLARE_BITMAP(h_bigwin_used, HUB_NUM_BIG_WINDOW);
  12. cpumask_t h_cpus;
  13. };
  14. struct node_data {
  15. struct pglist_data pglist;
  16. struct hub_data hub;
  17. };
  18. extern struct node_data *__node_data[];
  19. #define NODE_DATA(n) (&__node_data[(n)]->pglist)
  20. #define hub_data(n) (&__node_data[(n)]->hub)
  21. #endif /* _ASM_MACH_MMZONE_H */