aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/affs_hardblocks.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/affs_hardblocks.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/linux/affs_hardblocks.h')
-rw-r--r--include/linux/affs_hardblocks.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/include/linux/affs_hardblocks.h b/include/linux/affs_hardblocks.h
new file mode 100644
index 000000000000..3fb869939d82
--- /dev/null
+++ b/include/linux/affs_hardblocks.h
@@ -0,0 +1,66 @@
1#ifndef AFFS_HARDBLOCKS_H
2#define AFFS_HARDBLOCKS_H
3
4/* Just the needed definitions for the RDB of an Amiga HD. */
5
6struct RigidDiskBlock {
7 u32 rdb_ID;
8 __be32 rdb_SummedLongs;
9 s32 rdb_ChkSum;
10 u32 rdb_HostID;
11 __be32 rdb_BlockBytes;
12 u32 rdb_Flags;
13 u32 rdb_BadBlockList;
14 __be32 rdb_PartitionList;
15 u32 rdb_FileSysHeaderList;
16 u32 rdb_DriveInit;
17 u32 rdb_Reserved1[6];
18 u32 rdb_Cylinders;
19 u32 rdb_Sectors;
20 u32 rdb_Heads;
21 u32 rdb_Interleave;
22 u32 rdb_Park;
23 u32 rdb_Reserved2[3];
24 u32 rdb_WritePreComp;
25 u32 rdb_ReducedWrite;
26 u32 rdb_StepRate;
27 u32 rdb_Reserved3[5];
28 u32 rdb_RDBBlocksLo;
29 u32 rdb_RDBBlocksHi;
30 u32 rdb_LoCylinder;
31 u32 rdb_HiCylinder;
32 u32 rdb_CylBlocks;
33 u32 rdb_AutoParkSeconds;
34 u32 rdb_HighRDSKBlock;
35 u32 rdb_Reserved4;
36 char rdb_DiskVendor[8];
37 char rdb_DiskProduct[16];
38 char rdb_DiskRevision[4];
39 char rdb_ControllerVendor[8];
40 char rdb_ControllerProduct[16];
41 char rdb_ControllerRevision[4];
42 u32 rdb_Reserved5[10];
43};
44
45#define IDNAME_RIGIDDISK 0x5244534B /* "RDSK" */
46
47struct PartitionBlock {
48 __be32 pb_ID;
49 __be32 pb_SummedLongs;
50 s32 pb_ChkSum;
51 u32 pb_HostID;
52 __be32 pb_Next;
53 u32 pb_Flags;
54 u32 pb_Reserved1[2];
55 u32 pb_DevFlags;
56 u8 pb_DriveName[32];
57 u32 pb_Reserved2[15];
58 __be32 pb_Environment[17];
59 u32 pb_EReserved[15];
60};
61
62#define IDNAME_PARTITION 0x50415254 /* "PART" */
63
64#define RDB_ALLOCATION_LIMIT 16
65
66#endif /* AFFS_HARDBLOCKS_H */