1/****************************************************************************
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 {
25 short system_id;
26 short a_magic;
27 unsigned int version_id;
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 struct timespec file_time;
30 unsigned int entry_space;
31 unsigned int entry_subspace;
32 unsigned int entry_offset;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 unsigned int aux_header_location;
35 unsigned int aux_header_size;
36 unsigned int som_length;
37 unsigned int presumed_dp;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 unsigned int space_location;
40 unsigned int space_total;
41 unsigned int subspace_location;
42 unsigned int subspace_total;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 unsigned int loader_fixup_location;
45 unsigned int loader_fixup_total;
46 unsigned int space_strings_location;
47 unsigned int space_strings_size;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 unsigned int init_array_location;
50 unsigned int init_array_total;
51 unsigned int compiler_location;
52 unsigned int compiler_total;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 unsigned int symbol_location;
55 unsigned int symbol_total;
56 unsigned int fixup_request_location;
57 unsigned int fixup_request_total;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 unsigned int symbol_strings_location;
60 unsigned int symbol_strings_size;
61 unsigned int unloadable_sp_location;
62 unsigned int unloadable_sp_size;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 unsigned int checksum;
65};
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 */
84 unsigned int mandatory :1;
85 unsigned int copy :1;
86 unsigned int append :1;
87 unsigned int ignore :1;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 unsigned int reserved :12;
90 unsigned int type :16;
91 unsigned int length;
92};
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94struct som_exec_auxhdr {
95 struct aux_id som_auxhdr;
96 int exec_tsize;
97 int exec_tmem;
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 int exec_tfile;
100 int exec_dsize;
101 int exec_dmem;
102 int exec_dfile;
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 int exec_bsize;
105 int exec_entry;
106 int exec_flags;
107 int exec_bfill;
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109};
110union name_pt {
111 char * n_name;
112 unsigned int n_strx;
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114};
115struct space_dictionary_record {
116 union name_pt name;
117 unsigned int is_loadable :1;
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 unsigned int is_defined :1;
120 unsigned int is_private :1;
121 unsigned int has_intermediate_code :1;
122 unsigned int is_tspecific :1;
123/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 unsigned int reserved :11;
125 unsigned int sort_key :8;
126 unsigned int reserved2 :8;
127 int space_number;
128/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 int subspace_index;
130 unsigned int subspace_quantity;
131 int loader_fix_index;
132 unsigned int loader_fix_quantity;
133/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 int init_pointer_index;
135 unsigned int init_pointer_quantity;
136};
137struct subspace_dictionary_record {
138/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 int space_index;
140 unsigned int access_control_bits :7;
141 unsigned int memory_resident :1;
142 unsigned int dup_common :1;
143/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 unsigned int is_common :1;
145 unsigned int quadrant :2;
146 unsigned int initially_frozen :1;
147 unsigned int is_first :1;
148/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 unsigned int code_only :1;
150 unsigned int sort_key :8;
151 unsigned int replicate_init :1;
152 unsigned int continuation :1;
153/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 unsigned int is_tspecific :1;
155 unsigned int is_comdat :1;
156 unsigned int reserved :4;
157 int file_loc_init_value;
158/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 unsigned int initialization_length;
160 unsigned int subspace_start;
161 unsigned int subspace_length;
162 unsigned int reserved2 :5;
163/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 unsigned int alignment :27;
165 union name_pt name;
166 int fixup_request_index;
167 unsigned int fixup_request_quantity;
168/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169};
170#endif
171