blob: c95a42e50de01d4507e21a870505b6b8028a7a16 [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 _UAPI_ADFS_FS_H
8#define _UAPI_ADFS_FS_H
9#include <linux/types.h>
10#include <linux/magic.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070011struct adfs_discrecord {
Tao Baod7db5942015-01-28 10:07:51 -080012 __u8 log2secsize;
13 __u8 secspertrack;
14 __u8 heads;
Tao Baod7db5942015-01-28 10:07:51 -080015 __u8 density;
16 __u8 idlen;
17 __u8 log2bpmb;
18 __u8 skew;
Tao Baod7db5942015-01-28 10:07:51 -080019 __u8 bootoption;
20 __u8 lowsector;
21 __u8 nzones;
22 __le16 zone_spare;
Tao Baod7db5942015-01-28 10:07:51 -080023 __le32 root;
24 __le32 disc_size;
25 __le16 disc_id;
26 __u8 disc_name[10];
Tao Baod7db5942015-01-28 10:07:51 -080027 __le32 disc_type;
28 __le32 disc_size_high;
29 __u8 log2sharesize : 4;
30 __u8 unused40 : 4;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u8 big_flag : 1;
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070032 __u8 unused41 : 7;
Tao Baod7db5942015-01-28 10:07:51 -080033 __u8 nzones_high;
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070034 __u8 reserved43;
Tao Baod7db5942015-01-28 10:07:51 -080035 __le32 format_version;
Tao Baod7db5942015-01-28 10:07:51 -080036 __le32 root_size;
37 __u8 unused52[60 - 52];
Christopher Ferrisb8a95e22019-10-02 18:29:20 -070038} __attribute__((packed, aligned(4)));
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define ADFS_DISCRECORD (0xc00)
Ben Cheng655a7c02013-10-16 16:09:24 -070040#define ADFS_DR_OFFSET (0x1c0)
41#define ADFS_DR_SIZE 60
42#define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080043#endif