blob: 157d67c5b66540be1e21a47f1e7eabd51619e2c5 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef AFFS_HARDBLOCKS_H
8#define AFFS_HARDBLOCKS_H
9#include <linux/types.h>
10struct RigidDiskBlock {
Christopher Ferris8666d042023-09-06 14:55:31 -070011 __be32 rdb_ID;
Tao Baod7db5942015-01-28 10:07:51 -080012 __be32 rdb_SummedLongs;
Christopher Ferris8666d042023-09-06 14:55:31 -070013 __be32 rdb_ChkSum;
14 __be32 rdb_HostID;
Tao Baod7db5942015-01-28 10:07:51 -080015 __be32 rdb_BlockBytes;
Christopher Ferris8666d042023-09-06 14:55:31 -070016 __be32 rdb_Flags;
17 __be32 rdb_BadBlockList;
Tao Baod7db5942015-01-28 10:07:51 -080018 __be32 rdb_PartitionList;
Christopher Ferris8666d042023-09-06 14:55:31 -070019 __be32 rdb_FileSysHeaderList;
20 __be32 rdb_DriveInit;
21 __be32 rdb_Reserved1[6];
22 __be32 rdb_Cylinders;
23 __be32 rdb_Sectors;
24 __be32 rdb_Heads;
25 __be32 rdb_Interleave;
26 __be32 rdb_Park;
27 __be32 rdb_Reserved2[3];
28 __be32 rdb_WritePreComp;
29 __be32 rdb_ReducedWrite;
30 __be32 rdb_StepRate;
31 __be32 rdb_Reserved3[5];
32 __be32 rdb_RDBBlocksLo;
33 __be32 rdb_RDBBlocksHi;
34 __be32 rdb_LoCylinder;
35 __be32 rdb_HiCylinder;
36 __be32 rdb_CylBlocks;
37 __be32 rdb_AutoParkSeconds;
38 __be32 rdb_HighRDSKBlock;
39 __be32 rdb_Reserved4;
Tao Baod7db5942015-01-28 10:07:51 -080040 char rdb_DiskVendor[8];
41 char rdb_DiskProduct[16];
42 char rdb_DiskRevision[4];
Tao Baod7db5942015-01-28 10:07:51 -080043 char rdb_ControllerVendor[8];
44 char rdb_ControllerProduct[16];
45 char rdb_ControllerRevision[4];
Christopher Ferris8666d042023-09-06 14:55:31 -070046 __be32 rdb_Reserved5[10];
Ben Cheng655a7c02013-10-16 16:09:24 -070047};
48#define IDNAME_RIGIDDISK 0x5244534B
49struct PartitionBlock {
Tao Baod7db5942015-01-28 10:07:51 -080050 __be32 pb_ID;
Tao Baod7db5942015-01-28 10:07:51 -080051 __be32 pb_SummedLongs;
Christopher Ferris8666d042023-09-06 14:55:31 -070052 __be32 pb_ChkSum;
53 __be32 pb_HostID;
Tao Baod7db5942015-01-28 10:07:51 -080054 __be32 pb_Next;
Christopher Ferris8666d042023-09-06 14:55:31 -070055 __be32 pb_Flags;
56 __be32 pb_Reserved1[2];
57 __be32 pb_DevFlags;
Tao Baod7db5942015-01-28 10:07:51 -080058 __u8 pb_DriveName[32];
Christopher Ferris8666d042023-09-06 14:55:31 -070059 __be32 pb_Reserved2[15];
Tao Baod7db5942015-01-28 10:07:51 -080060 __be32 pb_Environment[17];
Christopher Ferris8666d042023-09-06 14:55:31 -070061 __be32 pb_EReserved[15];
Ben Cheng655a7c02013-10-16 16:09:24 -070062};
Ben Cheng655a7c02013-10-16 16:09:24 -070063#define IDNAME_PARTITION 0x50415254
64#define RDB_ALLOCATION_LIMIT 16
65#endif