blob: cb76e70f4e1d7569b8fcb571f60b18dfde2cc500 [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 _LINUX_SOM_H
20#define _LINUX_SOM_H
21#include <linux/time.h>
22#define SOM_PAGESIZE 4096
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24struct som_hdr {
Tao Baod7db5942015-01-28 10:07:51 -080025 short system_id;
26 short a_magic;
27 unsigned int version_id;
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 struct timespec file_time;
30 unsigned int entry_space;
31 unsigned int entry_subspace;
32 unsigned int entry_offset;
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 unsigned int aux_header_location;
35 unsigned int aux_header_size;
36 unsigned int som_length;
37 unsigned int presumed_dp;
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 unsigned int space_location;
40 unsigned int space_total;
41 unsigned int subspace_location;
42 unsigned int subspace_total;
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 unsigned int loader_fixup_location;
45 unsigned int loader_fixup_total;
46 unsigned int space_strings_location;
47 unsigned int space_strings_size;
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 unsigned int init_array_location;
50 unsigned int init_array_total;
51 unsigned int compiler_location;
52 unsigned int compiler_total;
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 unsigned int symbol_location;
55 unsigned int symbol_total;
56 unsigned int fixup_request_location;
57 unsigned int fixup_request_total;
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 unsigned int symbol_strings_location;
60 unsigned int symbol_strings_size;
61 unsigned int unloadable_sp_location;
62 unsigned int unloadable_sp_size;
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 unsigned int checksum;
Ben Cheng655a7c02013-10-16 16:09:24 -070065};
66#define SOM_SID_PARISC_1_0 0x020b
67#define SOM_SID_PARISC_1_1 0x0210
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69#define SOM_SID_PARISC_2_0 0x0214
70#define SOM_LIB_EXEC 0x0104
71#define SOM_RELOCATABLE 0x0106
72#define SOM_EXEC_NONSHARE 0x0107
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#define SOM_EXEC_SHARE 0x0108
75#define SOM_EXEC_DEMAND 0x010B
76#define SOM_LIB_DYN 0x010D
77#define SOM_LIB_SHARE 0x010E
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79#define SOM_LIB_RELOC 0x0619
80#define SOM_ID_OLD 85082112
81#define SOM_ID_NEW 87102412
82struct aux_id {
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080084 unsigned int mandatory : 1;
85 unsigned int copy : 1;
86 unsigned int append : 1;
87 unsigned int ignore : 1;
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 unsigned int reserved : 12;
90 unsigned int type : 16;
91 unsigned int length;
Ben Cheng655a7c02013-10-16 16:09:24 -070092};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94struct som_exec_auxhdr {
Tao Baod7db5942015-01-28 10:07:51 -080095 struct aux_id som_auxhdr;
96 int exec_tsize;
97 int exec_tmem;
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 int exec_tfile;
100 int exec_dsize;
101 int exec_dmem;
102 int exec_dfile;
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 int exec_bsize;
105 int exec_entry;
106 int exec_flags;
107 int exec_bfill;
Ben Cheng655a7c02013-10-16 16:09:24 -0700108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109};
110union name_pt {
Tao Baod7db5942015-01-28 10:07:51 -0800111 char * n_name;
112 unsigned int n_strx;
Ben Cheng655a7c02013-10-16 16:09:24 -0700113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114};
115struct space_dictionary_record {
Tao Baod7db5942015-01-28 10:07:51 -0800116 union name_pt name;
117 unsigned int is_loadable : 1;
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 unsigned int is_defined : 1;
120 unsigned int is_private : 1;
121 unsigned int has_intermediate_code : 1;
122 unsigned int is_tspecific : 1;
Ben Cheng655a7c02013-10-16 16:09:24 -0700123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800124 unsigned int reserved : 11;
125 unsigned int sort_key : 8;
126 unsigned int reserved2 : 8;
127 int space_number;
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 int subspace_index;
130 unsigned int subspace_quantity;
131 int loader_fix_index;
132 unsigned int loader_fix_quantity;
Ben Cheng655a7c02013-10-16 16:09:24 -0700133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800134 int init_pointer_index;
135 unsigned int init_pointer_quantity;
Ben Cheng655a7c02013-10-16 16:09:24 -0700136};
137struct subspace_dictionary_record {
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800139 int space_index;
140 unsigned int access_control_bits : 7;
141 unsigned int memory_resident : 1;
142 unsigned int dup_common : 1;
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 unsigned int is_common : 1;
145 unsigned int quadrant : 2;
146 unsigned int initially_frozen : 1;
147 unsigned int is_first : 1;
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 unsigned int code_only : 1;
150 unsigned int sort_key : 8;
151 unsigned int replicate_init : 1;
152 unsigned int continuation : 1;
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 unsigned int is_tspecific : 1;
155 unsigned int is_comdat : 1;
156 unsigned int reserved : 4;
157 int file_loc_init_value;
Ben Cheng655a7c02013-10-16 16:09:24 -0700158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -0800159 unsigned int initialization_length;
160 unsigned int subspace_start;
161 unsigned int subspace_length;
162 unsigned int reserved2 : 5;
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 unsigned int alignment : 27;
165 union name_pt name;
166 int fixup_request_index;
167 unsigned int fixup_request_quantity;
Ben Cheng655a7c02013-10-16 16:09:24 -0700168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169};
170#endif