Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI_ADFS_FS_H
0003 #define _UAPI_ADFS_FS_H
0004 
0005 #include <linux/types.h>
0006 #include <linux/magic.h>
0007 
0008 /*
0009  * Disc Record at disc address 0xc00
0010  */
0011 struct adfs_discrecord {
0012     __u8  log2secsize;
0013     __u8  secspertrack;
0014     __u8  heads;
0015     __u8  density;
0016     __u8  idlen;
0017     __u8  log2bpmb;
0018     __u8  skew;
0019     __u8  bootoption;
0020     __u8  lowsector;
0021     __u8  nzones;
0022     __le16 zone_spare;
0023     __le32 root;
0024     __le32 disc_size;
0025     __le16 disc_id;
0026     __u8  disc_name[10];
0027     __le32 disc_type;
0028     __le32 disc_size_high;
0029     __u8  log2sharesize:4;
0030     __u8  unused40:4;
0031     __u8  big_flag:1;
0032     __u8  unused41:7;
0033     __u8  nzones_high;
0034     __u8  reserved43;
0035     __le32 format_version;
0036     __le32 root_size;
0037     __u8  unused52[60 - 52];
0038 } __attribute__((packed, aligned(4)));
0039 
0040 #define ADFS_DISCRECORD     (0xc00)
0041 #define ADFS_DR_OFFSET      (0x1c0)
0042 #define ADFS_DR_SIZE         60
0043 #define ADFS_DR_SIZE_BITS   (ADFS_DR_SIZE << 3)
0044 
0045 #endif /* _UAPI_ADFS_FS_H */