1 #ifndef __LINUX_ROMFS_FS_H
2 #define __LINUX_ROMFS_FS_H
4 #include <linux/types.h>
7 /* The basic structures of the romfs filesystem */
9 #define ROMBSIZE BLOCK_SIZE
10 #define ROMBSBITS BLOCK_SIZE_BITS
11 #define ROMBMASK (ROMBSIZE-1)
12 #define ROMFS_MAGIC 0x7275
14 #define ROMFS_MAXFN 128
16 #define __mkw(h,l) (((h)&0x00ff)<< 8|((l)&0x00ff))
17 #define __mkl(h,l) (((h)&0xffff)<<16|((l)&0xffff))
18 #define __mk4(a,b,c,d) cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d)))
19 #define ROMSB_WORD0 __mk4('-','r','o','m')
20 #define ROMSB_WORD1 __mk4('1','f','s','-')
22 /* On-disk "super block" */
24 struct romfs_super_block
{
29 char name
[0]; /* volume name */
35 __be32 next
; /* low 4 bits see ROMFH_ */
56 #define ROMFH_PAD (ROMFH_SIZE-1)
57 #define ROMFH_MASK (~ROMFH_PAD)
This page took 0.031347 seconds and 5 git commands to generate.