Home | History | Annotate | Download | only in linux
      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 _UAPI__CRAMFS_H
     20 #define _UAPI__CRAMFS_H
     21 #include <linux/types.h>
     22 #include <linux/magic.h>
     23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     24 #define CRAMFS_SIGNATURE "Compressed ROMFS"
     25 #define CRAMFS_MODE_WIDTH 16
     26 #define CRAMFS_UID_WIDTH 16
     27 #define CRAMFS_SIZE_WIDTH 24
     28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     29 #define CRAMFS_GID_WIDTH 8
     30 #define CRAMFS_NAMELEN_WIDTH 6
     31 #define CRAMFS_OFFSET_WIDTH 26
     32 #define CRAMFS_MAXPATHLEN (((1 << CRAMFS_NAMELEN_WIDTH) - 1) << 2)
     33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     34 struct cramfs_inode {
     35   __u32 mode : CRAMFS_MODE_WIDTH, uid : CRAMFS_UID_WIDTH;
     36   __u32 size : CRAMFS_SIZE_WIDTH, gid : CRAMFS_GID_WIDTH;
     37   __u32 namelen : CRAMFS_NAMELEN_WIDTH, offset : CRAMFS_OFFSET_WIDTH;
     38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     39 };
     40 struct cramfs_info {
     41   __u32 crc;
     42   __u32 edition;
     43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     44   __u32 blocks;
     45   __u32 files;
     46 };
     47 struct cramfs_super {
     48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     49   __u32 magic;
     50   __u32 size;
     51   __u32 flags;
     52   __u32 future;
     53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     54   __u8 signature[16];
     55   struct cramfs_info fsid;
     56   __u8 name[16];
     57   struct cramfs_inode root;
     58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     59 };
     60 #define CRAMFS_FLAG_FSID_VERSION_2 0x00000001
     61 #define CRAMFS_FLAG_SORTED_DIRS 0x00000002
     62 #define CRAMFS_FLAG_HOLES 0x00000100
     63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     64 #define CRAMFS_FLAG_WRONG_SIGNATURE 0x00000200
     65 #define CRAMFS_FLAG_SHIFTED_ROOT_OFFSET 0x00000400
     66 #define CRAMFS_SUPPORTED_FLAGS (0x000000ff | CRAMFS_FLAG_HOLES | CRAMFS_FLAG_WRONG_SIGNATURE | CRAMFS_FLAG_SHIFTED_ROOT_OFFSET)
     67 #endif
     68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
     69