blob: 6fb9347383877fe4e6f0236da258213e5f1f7547 [file] [log] [blame]
Nick Kralevicha67e4de2013-01-14 11:28:26 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
Ben Cheng655a7c02013-10-16 16:09:24 -070019#ifndef _UAPI_ADFS_FS_H
20#define _UAPI_ADFS_FS_H
21#include <linux/types.h>
22#include <linux/magic.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070023struct adfs_discrecord {
Tao Baod7db5942015-01-28 10:07:51 -080024 __u8 log2secsize;
25 __u8 secspertrack;
26 __u8 heads;
Tao Baod7db5942015-01-28 10:07:51 -080027 __u8 density;
28 __u8 idlen;
29 __u8 log2bpmb;
30 __u8 skew;
Tao Baod7db5942015-01-28 10:07:51 -080031 __u8 bootoption;
32 __u8 lowsector;
33 __u8 nzones;
34 __le16 zone_spare;
Tao Baod7db5942015-01-28 10:07:51 -080035 __le32 root;
36 __le32 disc_size;
37 __le16 disc_id;
38 __u8 disc_name[10];
Tao Baod7db5942015-01-28 10:07:51 -080039 __le32 disc_type;
40 __le32 disc_size_high;
41 __u8 log2sharesize : 4;
42 __u8 unused40 : 4;
Tao Baod7db5942015-01-28 10:07:51 -080043 __u8 big_flag : 1;
44 __u8 unused41 : 1;
45 __u8 nzones_high;
46 __le32 format_version;
Tao Baod7db5942015-01-28 10:07:51 -080047 __le32 root_size;
48 __u8 unused52[60 - 52];
Ben Cheng655a7c02013-10-16 16:09:24 -070049};
50#define ADFS_DISCRECORD (0xc00)
Ben Cheng655a7c02013-10-16 16:09:24 -070051#define ADFS_DR_OFFSET (0x1c0)
52#define ADFS_DR_SIZE 60
53#define ADFS_DR_SIZE_BITS (ADFS_DR_SIZE << 3)
Nick Kralevicha67e4de2013-01-14 11:28:26 -080054#endif