OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [include/] [linux/] [affs_hardblocks.h] - Blame information for rev 1778

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#ifndef AFFS_HARDBLOCKS_H
2
#define AFFS_HARDBLOCKS_H
3
 
4
/* Just the needed definitions for the RDB of an Amiga HD. */
5
 
6
struct RigidDiskBlock {
7
        __u32   rdb_ID;
8
        __u32   rdb_SummedLongs;
9
        __s32   rdb_ChkSum;
10
        __u32   rdb_HostID;
11
        __u32   rdb_BlockBytes;
12
        __u32   rdb_Flags;
13
        __u32   rdb_BadBlockList;
14
        __u32   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
 
47
struct PartitionBlock {
48
        __u32   pb_ID;
49
        __u32   pb_SummedLongs;
50
        __s32   pb_ChkSum;
51
        __u32   pb_HostID;
52
        __u32   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
        __u32   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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.