klkernvars.h 612 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * File ported from IRIX to Linux by Kanoj Sarcar, 06/08/00.
  4. * Copyright 2000 Silicon Graphics, Inc.
  5. */
  6. #ifndef __ASM_SN_KLKERNVARS_H
  7. #define __ASM_SN_KLKERNVARS_H
  8. #define KV_MAGIC_OFFSET 0x0
  9. #define KV_RO_NASID_OFFSET 0x4
  10. #define KV_RW_NASID_OFFSET 0x6
  11. #define KV_MAGIC 0x5f4b565f
  12. #ifndef __ASSEMBLY__
  13. #include <asm/sn/types.h>
  14. typedef struct kern_vars_s {
  15. int kv_magic;
  16. nasid_t kv_ro_nasid;
  17. nasid_t kv_rw_nasid;
  18. unsigned long kv_ro_baseaddr;
  19. unsigned long kv_rw_baseaddr;
  20. } kern_vars_t;
  21. #endif /* !__ASSEMBLY__ */
  22. #endif /* __ASM_SN_KLKERNVARS_H */