1 #ifndef DEVICES_HARDBLOCK_H
2 #define DEVICES_HARDBLOCK_H
5 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 Desc: File System identifier blocks for hard disks
13 # include <exec/types.h>
19 ULONG rdb_SummedLongs
;
24 ULONG rdb_BadBlockList
;
25 ULONG rdb_PartitionList
;
26 ULONG rdb_FileSysHeaderList
;
28 ULONG rdb_Reserved1
[6];
34 ULONG rdb_Reserved2
[3];
35 ULONG rdb_WritePreComp
;
36 ULONG rdb_ReducedWrite
;
38 ULONG rdb_Reserved3
[5];
39 ULONG rdb_RDBBlocksLo
;
40 ULONG rdb_RDBBlocksHi
;
44 ULONG rdb_AutoParkSeconds
;
45 ULONG rdb_HighRDSKBlock
;
47 char rdb_DiskVendor
[8];
48 char rdb_DiskProduct
[16];
49 char rdb_DiskRevision
[4];
50 char rdb_ControllerVendor
[8];
51 char rdb_ControllerProduct
[16];
52 char rdb_ControllerRevision
[4];
53 char rdb_DriveInitName
[40];
56 #define IDNAME_RIGIDDISK 0x5244534B /* 'RDSK' */
58 #define RDB_LOCATION_LIMIT 16
61 #define RDBFB_LASTLUN 1
62 #define RDBFB_LASTTID 2
63 #define RDBFB_NORESELECT 3
64 #define RDBFB_DISKID 4
65 #define RDBFB_CTRLRID 5
68 #define RDBFF_LAST (1L << 0)
69 #define RDBFF_LASTLUN (1L << 1)
70 #define RDBFF_LASTTID (1L << 2)
71 #define RDBFF_NORESELECT (1L << 3)
72 #define RDBFF_DISKID (1L << 4)
73 #define RDBFF_CTRLRID (1L << 5)
74 #define RDBFF_SYNCH (1L << 6)
85 ULONG bbb_SummedLongs
;
90 struct BadBlockEntry bbb_BlockPairs
[61];
93 #define IDNAME_BADBLOCK 0x42414442 /* "BADB" */
103 ULONG pb_Reserved1
[2];
105 UBYTE pb_DriveName
[32];
106 ULONG pb_Reserved2
[15];
107 ULONG pb_Environment
[20];
108 ULONG pb_EReserved
[12];
111 #define IDNAME_PARTITION 0x50415254 /* "PART" */
113 #define PBFB_BOOTABLE 0
114 #define PBFB_NOMOUNT 1
116 #define PBFF_BOOTABLE 1L
117 #define PBFF_NOMOUNT 2L
119 struct FileSysHeaderBlock
122 ULONG fhb_SummedLongs
;
127 ULONG fhb_Reserved1
[2];
130 ULONG fhb_PatchFlags
;
138 LONG fhb_SegListBlocks
;
140 ULONG fhb_Reserved2
[23];
141 char fhb_FileSysName
[84];
145 #define IDNAME_FILESYSHEADER 0x46534844 /* "FSHD" */
150 ULONG lsb_SummedLongs
;
154 ULONG lsb_LoadData
[123];
157 #define IDNAME_LOADSEG 0x4C534547 /* "LSEG" */
159 #endif /* DEVICES_HARDBLOCK_H */