Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
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;      /* Indicates validity of entry      */
0021     off_t       offset;     /* Offset from start of node space  */
0022     unsigned long   pointer;    /* Pointer to area in some cases    */
0023     size_t      size;       /* Size in bytes            */
0024     u64     count;      /* Repeat count if array, 1 if not  */
0025     size_t      stride;     /* Stride if array, 0 if not        */
0026     char        rsvd[16];   /* Pad entry to 0x40 bytes      */
0027     /* NOTE: These 16 bytes are used in the Partition KLDIR
0028        entry to store partition info. Refer to klpart.h for this. */
0029 } kldir_ent_t;
0030 #endif /* !__ASSEMBLY__ */
0031 
0032 #ifdef CONFIG_SGI_IP27
0033 #include <asm/sn/sn0/kldir.h>
0034 #endif
0035 
0036 #endif /* _ASM_SN_KLDIR_H */