aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips/sn/kldir.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips/sn/kldir.h')
-rw-r--r--include/asm-mips/sn/kldir.h35
1 files changed, 2 insertions, 33 deletions
diff --git a/include/asm-mips/sn/kldir.h b/include/asm-mips/sn/kldir.h
index f0efab1672ec..0573cbffc104 100644
--- a/include/asm-mips/sn/kldir.h
+++ b/include/asm-mips/sn/kldir.h
@@ -11,11 +11,6 @@
11#ifndef _ASM_SN_KLDIR_H 11#ifndef _ASM_SN_KLDIR_H
12#define _ASM_SN_KLDIR_H 12#define _ASM_SN_KLDIR_H
13 13
14#include <linux/config.h>
15
16#if defined(CONFIG_SGI_IO)
17#include <asm/hack.h>
18#endif
19 14
20/* 15/*
21 * The kldir memory area resides at a fixed place in each node's memory and 16 * The kldir memory area resides at a fixed place in each node's memory and
@@ -136,8 +131,6 @@
136#define KLDIR_OFF_STRIDE 0x28 131#define KLDIR_OFF_STRIDE 0x28
137#endif /* __ASSEMBLY__ */ 132#endif /* __ASSEMBLY__ */
138 133
139#if !defined(CONFIG_SGI_IO)
140
141/* 134/*
142 * This is defined here because IP27_SYMMON_STK_SIZE must be at least what 135 * This is defined here because IP27_SYMMON_STK_SIZE must be at least what
143 * we define here. Since it's set up in the prom. We can't redefine it later 136 * we define here. Since it's set up in the prom. We can't redefine it later
@@ -147,7 +140,7 @@
147 */ 140 */
148#define SYMMON_STACK_SIZE 0x8000 141#define SYMMON_STACK_SIZE 0x8000
149 142
150#if defined (PROM) || defined (SABLE) 143#if defined (PROM)
151 144
152/* 145/*
153 * These defines are prom version dependent. No code other than the IP27 146 * These defines are prom version dependent. No code other than the IP27
@@ -184,7 +177,7 @@
184#define IP27_FREEMEM_COUNT 1 177#define IP27_FREEMEM_COUNT 1
185#define IP27_FREEMEM_STRIDE 0 178#define IP27_FREEMEM_STRIDE 0
186 179
187#endif /* PROM || SABLE*/ 180#endif /* PROM */
188/* 181/*
189 * There will be only one of these in a partition so the IO6 must set it up. 182 * There will be only one of these in a partition so the IO6 must set it up.
190 */ 183 */
@@ -207,17 +200,11 @@
207#define KLDIR_ENT_SIZE 0x40 200#define KLDIR_ENT_SIZE 0x40
208#define KLDIR_MAX_ENTRIES (0x400 / 0x40) 201#define KLDIR_MAX_ENTRIES (0x400 / 0x40)
209 202
210#endif /* !CONFIG_SGI_IO */
211
212#ifndef __ASSEMBLY__ 203#ifndef __ASSEMBLY__
213typedef struct kldir_ent_s { 204typedef struct kldir_ent_s {
214 u64 magic; /* Indicates validity of entry */ 205 u64 magic; /* Indicates validity of entry */
215 off_t offset; /* Offset from start of node space */ 206 off_t offset; /* Offset from start of node space */
216#if defined(CONFIG_SGI_IO) /* FIXME */
217 __psunsigned_t pointer; /* Pointer to area in some cases */
218#else
219 unsigned long pointer; /* Pointer to area in some cases */ 207 unsigned long pointer; /* Pointer to area in some cases */
220#endif
221 size_t size; /* Size in bytes */ 208 size_t size; /* Size in bytes */
222 u64 count; /* Repeat count if array, 1 if not */ 209 u64 count; /* Repeat count if array, 1 if not */
223 size_t stride; /* Stride if array, 0 if not */ 210 size_t stride; /* Stride if array, 0 if not */
@@ -227,22 +214,4 @@ typedef struct kldir_ent_s {
227} kldir_ent_t; 214} kldir_ent_t;
228#endif /* !__ASSEMBLY__ */ 215#endif /* !__ASSEMBLY__ */
229 216
230#if defined(CONFIG_SGI_IO)
231
232#define KLDIR_ENT_SIZE 0x40
233#define KLDIR_MAX_ENTRIES (0x400 / 0x40)
234
235/*
236 * The actual offsets of each memory area are machine-dependent
237 */
238#ifdef CONFIG_SGI_IP27
239// Not yet #include <asm/sn/sn0/kldir.h>
240#elif defined(CONFIG_SGI_IP35)
241#include <asm/sn/sn1/kldir.h>
242#else
243#error "kldir.h is currently defined for IP27 and IP35 platforms only"
244#endif
245
246#endif /* CONFIG_SGI_IO */
247
248#endif /* _ASM_SN_KLDIR_H */ 217#endif /* _ASM_SN_KLDIR_H */