1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2384740dcSRalf Baechle /* 3384740dcSRalf Baechle * File ported from IRIX to Linux by Kanoj Sarcar, 06/08/00. 4384740dcSRalf Baechle * Copyright 2000 Silicon Graphics, Inc. 5384740dcSRalf Baechle */ 6384740dcSRalf Baechle #ifndef __ASM_SN_KLKERNVARS_H 7384740dcSRalf Baechle #define __ASM_SN_KLKERNVARS_H 8384740dcSRalf Baechle 9384740dcSRalf Baechle #define KV_MAGIC_OFFSET 0x0 10384740dcSRalf Baechle #define KV_RO_NASID_OFFSET 0x4 11384740dcSRalf Baechle #define KV_RW_NASID_OFFSET 0x6 12384740dcSRalf Baechle 13384740dcSRalf Baechle #define KV_MAGIC 0x5f4b565f 14384740dcSRalf Baechle 15384740dcSRalf Baechle #ifndef __ASSEMBLY__ 16384740dcSRalf Baechle 17384740dcSRalf Baechle #include <asm/sn/types.h> 18384740dcSRalf Baechle 19384740dcSRalf Baechle typedef struct kern_vars_s { 20384740dcSRalf Baechle int kv_magic; 21384740dcSRalf Baechle nasid_t kv_ro_nasid; 22384740dcSRalf Baechle nasid_t kv_rw_nasid; 23384740dcSRalf Baechle unsigned long kv_ro_baseaddr; 24384740dcSRalf Baechle unsigned long kv_rw_baseaddr; 25384740dcSRalf Baechle } kern_vars_t; 26384740dcSRalf Baechle 27384740dcSRalf Baechle #endif /* !__ASSEMBLY__ */ 28384740dcSRalf Baechle 29384740dcSRalf Baechle #endif /* __ASM_SN_KLKERNVARS_H */ 30