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   __u32 rdb_ID;
24   __be32 rdb_SummedLongs;
25   __s32 rdb_ChkSum;
26   __u32 rdb_HostID;
27   __be32 rdb_BlockBytes;
28   __u32 rdb_Flags;
29   __u32 rdb_BadBlockList;
30   __be32 rdb_PartitionList;
31   __u32 rdb_FileSysHeaderList;
32   __u32 rdb_DriveInit;
33   __u32 rdb_Reserved1[6];
34   __u32 rdb_Cylinders;
35   __u32 rdb_Sectors;
36   __u32 rdb_Heads;
37   __u32 rdb_Interleave;
38   __u32 rdb_Park;
39   __u32 rdb_Reserved2[3];
40   __u32 rdb_WritePreComp;
41   __u32 rdb_ReducedWrite;
42   __u32 rdb_StepRate;
43   __u32 rdb_Reserved3[5];
44   __u32 rdb_RDBBlocksLo;
45   __u32 rdb_RDBBlocksHi;
46   __u32 rdb_LoCylinder;
47   __u32 rdb_HiCylinder;
48   __u32 rdb_CylBlocks;
49   __u32 rdb_AutoParkSeconds;
50   __u32 rdb_HighRDSKBlock;
51   __u32 rdb_Reserved4;
52   char rdb_DiskVendor[8];
53   char rdb_DiskProduct[16];
54   char rdb_DiskRevision[4];
55   char rdb_ControllerVendor[8];
56   char rdb_ControllerProduct[16];
57   char rdb_ControllerRevision[4];
58   __u32 rdb_Reserved5[10];
59 };
60 #define IDNAME_RIGIDDISK 0x5244534B
61 struct PartitionBlock {
62   __be32 pb_ID;
63   __be32 pb_SummedLongs;
64   __s32 pb_ChkSum;
65   __u32 pb_HostID;
66   __be32 pb_Next;
67   __u32 pb_Flags;
68   __u32 pb_Reserved1[2];
69   __u32 pb_DevFlags;
70   __u8 pb_DriveName[32];
71   __u32 pb_Reserved2[15];
72   __be32 pb_Environment[17];
73   __u32 pb_EReserved[15];
74 };
75 #define IDNAME_PARTITION 0x50415254
76 #define RDB_ALLOCATION_LIMIT 16
77 #endif
78