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_ADFS_FS_H
     20 #define _UAPI_ADFS_FS_H
     21 #include <linux/types.h>
     22 #include <linux/magic.h>
     23 struct adfs_discrecord {
     24   __u8 log2secsize;
     25   __u8 secspertrack;
     26   __u8 heads;
     27   __u8 density;
     28   __u8 idlen;
     29   __u8 log2bpmb;
     30   __u8 skew;
     31   __u8 bootoption;
     32   __u8 lowsector;
     33   __u8 nzones;
     34   __le16 zone_spare;
     35   __le32 root;
     36   __le32 disc_size;
     37   __le16 disc_id;
     38   __u8 disc_name[10];
     39   __le32 disc_type;
     40   __le32 disc_size_high;
     41   __u8 log2sharesize : 4;
     42   __u8 unused40 : 4;
     43   __u8 big_flag : 1;
     44   __u8 unused41 : 1;
     45   __u8 nzones_high;
     46   __le32 format_version;
     47   __le32 root_size;
     48   __u8 unused52[60 - 52];
     49 };
     50 #define ADFS_DISCRECORD (0xc00)
     51 #define ADFS_DR_OFFSET (0x1c0)
     52 #define ADFS_DR_SIZE 60
     53 #define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3)
     54 #endif
     55