blob: f46bdf12ef44ffa79f5b043a7f222384d99c91b9 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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>
22struct RigidDiskBlock {
Tao Baod7db5942015-01-28 10:07:51 -080023 __u32 rdb_ID;
24 __be32 rdb_SummedLongs;
25 __s32 rdb_ChkSum;
26 __u32 rdb_HostID;
Tao Baod7db5942015-01-28 10:07:51 -080027 __be32 rdb_BlockBytes;
28 __u32 rdb_Flags;
29 __u32 rdb_BadBlockList;
30 __be32 rdb_PartitionList;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u32 rdb_FileSysHeaderList;
32 __u32 rdb_DriveInit;
33 __u32 rdb_Reserved1[6];
34 __u32 rdb_Cylinders;
Tao Baod7db5942015-01-28 10:07:51 -080035 __u32 rdb_Sectors;
36 __u32 rdb_Heads;
37 __u32 rdb_Interleave;
38 __u32 rdb_Park;
Tao Baod7db5942015-01-28 10:07:51 -080039 __u32 rdb_Reserved2[3];
40 __u32 rdb_WritePreComp;
41 __u32 rdb_ReducedWrite;
42 __u32 rdb_StepRate;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u32 rdb_Reserved3[5];
44 __u32 rdb_RDBBlocksLo;
45 __u32 rdb_RDBBlocksHi;
46 __u32 rdb_LoCylinder;
Tao Baod7db5942015-01-28 10:07:51 -080047 __u32 rdb_HiCylinder;
48 __u32 rdb_CylBlocks;
49 __u32 rdb_AutoParkSeconds;
50 __u32 rdb_HighRDSKBlock;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u32 rdb_Reserved4;
52 char rdb_DiskVendor[8];
53 char rdb_DiskProduct[16];
54 char rdb_DiskRevision[4];
Tao Baod7db5942015-01-28 10:07:51 -080055 char rdb_ControllerVendor[8];
56 char rdb_ControllerProduct[16];
57 char rdb_ControllerRevision[4];
58 __u32 rdb_Reserved5[10];
Ben Cheng655a7c02013-10-16 16:09:24 -070059};
60#define IDNAME_RIGIDDISK 0x5244534B
61struct PartitionBlock {
Tao Baod7db5942015-01-28 10:07:51 -080062 __be32 pb_ID;
Tao Baod7db5942015-01-28 10:07:51 -080063 __be32 pb_SummedLongs;
64 __s32 pb_ChkSum;
65 __u32 pb_HostID;
66 __be32 pb_Next;
Tao Baod7db5942015-01-28 10:07:51 -080067 __u32 pb_Flags;
68 __u32 pb_Reserved1[2];
69 __u32 pb_DevFlags;
70 __u8 pb_DriveName[32];
Tao Baod7db5942015-01-28 10:07:51 -080071 __u32 pb_Reserved2[15];
72 __be32 pb_Environment[17];
73 __u32 pb_EReserved[15];
Ben Cheng655a7c02013-10-16 16:09:24 -070074};
Ben Cheng655a7c02013-10-16 16:09:24 -070075#define IDNAME_PARTITION 0x50415254
76#define RDB_ALLOCATION_LIMIT 16
77#endif