0001
0002
0003 #ifndef _ASM_SN_KLDIR_H
0004 #define _ASM_SN_KLDIR_H
0005
0006 #define KLDIR_MAGIC 0x434d5f53505f5357
0007
0008 #define KLDIR_OFF_MAGIC 0x00
0009 #define KLDIR_OFF_OFFSET 0x08
0010 #define KLDIR_OFF_POINTER 0x10
0011 #define KLDIR_OFF_SIZE 0x18
0012 #define KLDIR_OFF_COUNT 0x20
0013 #define KLDIR_OFF_STRIDE 0x28
0014
0015 #define KLDIR_ENT_SIZE 0x40
0016 #define KLDIR_MAX_ENTRIES (0x400 / 0x40)
0017
0018 #ifndef __ASSEMBLY__
0019 typedef struct kldir_ent_s {
0020 u64 magic;
0021 off_t offset;
0022 unsigned long pointer;
0023 size_t size;
0024 u64 count;
0025 size_t stride;
0026 char rsvd[16];
0027
0028
0029 } kldir_ent_t;
0030 #endif
0031
0032 #ifdef CONFIG_SGI_IP27
0033 #include <asm/sn/sn0/kldir.h>
0034 #endif
0035
0036 #endif