romfs_fs.h revision 655a7c081f83b8351ed5f11a6c6accd9458293a8
1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef __LINUX_ROMFS_FS_H 20#define __LINUX_ROMFS_FS_H 21#include <linux/types.h> 22#include <linux/fs.h> 23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24#define ROMBSIZE BLOCK_SIZE 25#define ROMBSBITS BLOCK_SIZE_BITS 26#define ROMBMASK (ROMBSIZE-1) 27#define ROMFS_MAGIC 0x7275 28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29#define ROMFS_MAXFN 128 30#define __mkw(h,l) (((h)&0x00ff)<< 8|((l)&0x00ff)) 31#define __mkl(h,l) (((h)&0xffff)<<16|((l)&0xffff)) 32#define __mk4(a,b,c,d) cpu_to_be32(__mkl(__mkw(a,b),__mkw(c,d))) 33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34#define ROMSB_WORD0 __mk4('-','r','o','m') 35#define ROMSB_WORD1 __mk4('1','f','s','-') 36struct romfs_super_block { 37 __be32 word0; 38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 __be32 word1; 40 __be32 size; 41 __be32 checksum; 42 char name[0]; 43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44}; 45struct romfs_inode { 46 __be32 next; 47 __be32 spec; 48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __be32 size; 50 __be32 checksum; 51 char name[0]; 52}; 53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54#define ROMFH_TYPE 7 55#define ROMFH_HRD 0 56#define ROMFH_DIR 1 57#define ROMFH_REG 2 58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59#define ROMFH_SYM 3 60#define ROMFH_BLK 4 61#define ROMFH_CHR 5 62#define ROMFH_SCK 6 63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64#define ROMFH_FIF 7 65#define ROMFH_EXEC 8 66#define ROMFH_SIZE 16 67#define ROMFH_PAD (ROMFH_SIZE-1) 68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69#define ROMFH_MASK (~ROMFH_PAD) 70#endif 71