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 : 7; 45 __u8 nzones_high; 46 __u8 reserved43; 47 __le32 format_version; 48 __le32 root_size; 49 __u8 unused52[60 - 52]; 50 } __attribute__((packed, aligned(4))); 51 #define ADFS_DISCRECORD (0xc00) 52 #define ADFS_DR_OFFSET (0x1c0) 53 #define ADFS_DR_SIZE 60 54 #define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3) 55 #endif 56