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 AFFS_HARDBLOCKS_H
20 #define AFFS_HARDBLOCKS_H
21 #include <linux/types.h>
22 struct RigidDiskBlock {
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24   __u32 rdb_ID;
25   __be32 rdb_SummedLongs;
26   __s32 rdb_ChkSum;
27   __u32 rdb_HostID;
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29   __be32 rdb_BlockBytes;
30   __u32 rdb_Flags;
31   __u32 rdb_BadBlockList;
32   __be32 rdb_PartitionList;
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34   __u32 rdb_FileSysHeaderList;
35   __u32 rdb_DriveInit;
36   __u32 rdb_Reserved1[6];
37   __u32 rdb_Cylinders;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39   __u32 rdb_Sectors;
40   __u32 rdb_Heads;
41   __u32 rdb_Interleave;
42   __u32 rdb_Park;
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44   __u32 rdb_Reserved2[3];
45   __u32 rdb_WritePreComp;
46   __u32 rdb_ReducedWrite;
47   __u32 rdb_StepRate;
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   __u32 rdb_Reserved3[5];
50   __u32 rdb_RDBBlocksLo;
51   __u32 rdb_RDBBlocksHi;
52   __u32 rdb_LoCylinder;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   __u32 rdb_HiCylinder;
55   __u32 rdb_CylBlocks;
56   __u32 rdb_AutoParkSeconds;
57   __u32 rdb_HighRDSKBlock;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   __u32 rdb_Reserved4;
60   char rdb_DiskVendor[8];
61   char rdb_DiskProduct[16];
62   char rdb_DiskRevision[4];
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64   char rdb_ControllerVendor[8];
65   char rdb_ControllerProduct[16];
66   char rdb_ControllerRevision[4];
67   __u32 rdb_Reserved5[10];
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 };
70 #define IDNAME_RIGIDDISK 0x5244534B
71 struct PartitionBlock {
72   __be32 pb_ID;
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74   __be32 pb_SummedLongs;
75   __s32 pb_ChkSum;
76   __u32 pb_HostID;
77   __be32 pb_Next;
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79   __u32 pb_Flags;
80   __u32 pb_Reserved1[2];
81   __u32 pb_DevFlags;
82   __u8 pb_DriveName[32];
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84   __u32 pb_Reserved2[15];
85   __be32 pb_Environment[17];
86   __u32 pb_EReserved[15];
87 };
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define IDNAME_PARTITION 0x50415254
90 #define RDB_ALLOCATION_LIMIT 16
91 #endif
92