blob: dc7a17db5f76a787eed8aa7c804a05b67e572082 [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 ****************************************************************************/
19#ifndef _ISOFS_FS_H
20#define _ISOFS_FS_H
21#include <linux/types.h>
22#include <linux/magic.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024#define ISODCL(from,to) (to - from + 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070025struct iso_volume_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -080026 char type[ISODCL(1, 1)];
27 char id[ISODCL(2, 6)];
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 char version[ISODCL(7, 7)];
30 char data[ISODCL(8, 2048)];
Ben Cheng655a7c02013-10-16 16:09:24 -070031};
32#define ISO_VD_PRIMARY 1
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define ISO_VD_SUPPLEMENTARY 2
35#define ISO_VD_END 255
36#define ISO_STANDARD_ID "CD001"
37struct iso_primary_descriptor {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 char type[ISODCL(1, 1)];
40 char id[ISODCL(2, 6)];
41 char version[ISODCL(7, 7)];
42 char unused1[ISODCL(8, 8)];
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 char system_id[ISODCL(9, 40)];
45 char volume_id[ISODCL(41, 72)];
46 char unused2[ISODCL(73, 80)];
47 char volume_space_size[ISODCL(81, 88)];
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 char unused3[ISODCL(89, 120)];
50 char volume_set_size[ISODCL(121, 124)];
51 char volume_sequence_number[ISODCL(125, 128)];
52 char logical_block_size[ISODCL(129, 132)];
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 char path_table_size[ISODCL(133, 140)];
55 char type_l_path_table[ISODCL(141, 144)];
56 char opt_type_l_path_table[ISODCL(145, 148)];
57 char type_m_path_table[ISODCL(149, 152)];
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 char opt_type_m_path_table[ISODCL(153, 156)];
60 char root_directory_record[ISODCL(157, 190)];
61 char volume_set_id[ISODCL(191, 318)];
62 char publisher_id[ISODCL(319, 446)];
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 char preparer_id[ISODCL(447, 574)];
65 char application_id[ISODCL(575, 702)];
66 char copyright_file_id[ISODCL(703, 739)];
67 char abstract_file_id[ISODCL(740, 776)];
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080069 char bibliographic_file_id[ISODCL(777, 813)];
70 char creation_date[ISODCL(814, 830)];
71 char modification_date[ISODCL(831, 847)];
72 char expiration_date[ISODCL(848, 864)];
Ben Cheng655a7c02013-10-16 16:09:24 -070073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080074 char effective_date[ISODCL(865, 881)];
75 char file_structure_version[ISODCL(882, 882)];
76 char unused4[ISODCL(883, 883)];
77 char application_data[ISODCL(884, 1395)];
Ben Cheng655a7c02013-10-16 16:09:24 -070078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080079 char unused5[ISODCL(1396, 2048)];
Ben Cheng655a7c02013-10-16 16:09:24 -070080};
81struct iso_supplementary_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -080082 char type[ISODCL(1, 1)];
Ben Cheng655a7c02013-10-16 16:09:24 -070083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 char id[ISODCL(2, 6)];
85 char version[ISODCL(7, 7)];
86 char flags[ISODCL(8, 8)];
87 char system_id[ISODCL(9, 40)];
Ben Cheng655a7c02013-10-16 16:09:24 -070088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080089 char volume_id[ISODCL(41, 72)];
90 char unused2[ISODCL(73, 80)];
91 char volume_space_size[ISODCL(81, 88)];
92 char escape[ISODCL(89, 120)];
Ben Cheng655a7c02013-10-16 16:09:24 -070093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080094 char volume_set_size[ISODCL(121, 124)];
95 char volume_sequence_number[ISODCL(125, 128)];
96 char logical_block_size[ISODCL(129, 132)];
97 char path_table_size[ISODCL(133, 140)];
Ben Cheng655a7c02013-10-16 16:09:24 -070098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080099 char type_l_path_table[ISODCL(141, 144)];
100 char opt_type_l_path_table[ISODCL(145, 148)];
101 char type_m_path_table[ISODCL(149, 152)];
102 char opt_type_m_path_table[ISODCL(153, 156)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800104 char root_directory_record[ISODCL(157, 190)];
105 char volume_set_id[ISODCL(191, 318)];
106 char publisher_id[ISODCL(319, 446)];
107 char preparer_id[ISODCL(447, 574)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800109 char application_id[ISODCL(575, 702)];
110 char copyright_file_id[ISODCL(703, 739)];
111 char abstract_file_id[ISODCL(740, 776)];
112 char bibliographic_file_id[ISODCL(777, 813)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800114 char creation_date[ISODCL(814, 830)];
115 char modification_date[ISODCL(831, 847)];
116 char expiration_date[ISODCL(848, 864)];
117 char effective_date[ISODCL(865, 881)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800119 char file_structure_version[ISODCL(882, 882)];
120 char unused4[ISODCL(883, 883)];
121 char application_data[ISODCL(884, 1395)];
122 char unused5[ISODCL(1396, 2048)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124};
125#define HS_STANDARD_ID "CDROM"
126struct hs_volume_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800127 char foo[ISODCL(1, 8)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800129 char type[ISODCL(9, 9)];
130 char id[ISODCL(10, 14)];
131 char version[ISODCL(15, 15)];
132 char data[ISODCL(16, 2048)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134};
135struct hs_primary_descriptor {
Tao Baod7db5942015-01-28 10:07:51 -0800136 char foo[ISODCL(1, 8)];
137 char type[ISODCL(9, 9)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 char id[ISODCL(10, 14)];
140 char version[ISODCL(15, 15)];
141 char unused1[ISODCL(16, 16)];
142 char system_id[ISODCL(17, 48)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800144 char volume_id[ISODCL(49, 80)];
145 char unused2[ISODCL(81, 88)];
146 char volume_space_size[ISODCL(89, 96)];
147 char unused3[ISODCL(97, 128)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800149 char volume_set_size[ISODCL(129, 132)];
150 char volume_sequence_number[ISODCL(133, 136)];
151 char logical_block_size[ISODCL(137, 140)];
152 char path_table_size[ISODCL(141, 148)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800154 char type_l_path_table[ISODCL(149, 152)];
155 char unused4[ISODCL(153, 180)];
156 char root_directory_record[ISODCL(181, 214)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700157};
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159struct iso_path_table {
160 unsigned char name_len[2];
161 char extent[4];
162 char parent[2];
Ben Cheng655a7c02013-10-16 16:09:24 -0700163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800164 char name[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700165} __attribute__((packed));
166struct iso_directory_record {
Tao Baod7db5942015-01-28 10:07:51 -0800167 char length[ISODCL(1, 1)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800169 char ext_attr_length[ISODCL(2, 2)];
170 char extent[ISODCL(3, 10)];
171 char size[ISODCL(11, 18)];
172 char date[ISODCL(19, 25)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700173/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800174 char flags[ISODCL(26, 26)];
175 char file_unit_size[ISODCL(27, 27)];
176 char interleave[ISODCL(28, 28)];
177 char volume_sequence_number[ISODCL(29, 32)];
Ben Cheng655a7c02013-10-16 16:09:24 -0700178/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800179 unsigned char name_len[ISODCL(33, 33)];
180 char name[0];
Ben Cheng655a7c02013-10-16 16:09:24 -0700181} __attribute__((packed));
182#define ISOFS_BLOCK_BITS 11
183/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184#define ISOFS_BLOCK_SIZE 2048
185#define ISOFS_BUFFER_SIZE(INODE) ((INODE)->i_sb->s_blocksize)
186#define ISOFS_BUFFER_BITS(INODE) ((INODE)->i_sb->s_blocksize_bits)
187#endif
188/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */