• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/staging/tidspbridge/dynload/
1/*
2 * reloc_table_c6000.c
3 *
4 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
5 *
6 * Copyright (C) 2005-2006 Texas Instruments, Inc.
7 *
8 * This package is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 *
12 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15 */
16
17/* Tables generated for c6000 */
18
19#define HASH_FUNC(zz) (((((zz) + 1) * 1845UL) >> 11) & 63)
20#define HASH_L(zz) ((zz) >> 8)
21#define HASH_I(zz) ((zz) & 0xFF)
22
23static const u16 rop_map1[] = {
24	0,
25	1,
26	2,
27	20,
28	4,
29	5,
30	6,
31	15,
32	80,
33	81,
34	82,
35	83,
36	84,
37	85,
38	86,
39	87,
40	17,
41	18,
42	19,
43	21,
44	16,
45	16394,
46	16404,
47	65535,
48	65535,
49	65535,
50	65535,
51	65535,
52	65535,
53	32,
54	65535,
55	65535,
56	65535,
57	65535,
58	65535,
59	65535,
60	40,
61	112,
62	113,
63	65535,
64	16384,
65	16385,
66	16386,
67	16387,
68	16388,
69	16389,
70	16390,
71	16391,
72	16392,
73	16393,
74	16395,
75	16396,
76	16397,
77	16398,
78	16399,
79	16400,
80	16401,
81	16402,
82	16403,
83	16405,
84	16406,
85	65535,
86	65535,
87	65535
88};
89
90static const s16 rop_map2[] = {
91	-256,
92	-255,
93	-254,
94	-245,
95	-253,
96	-252,
97	-251,
98	-250,
99	-241,
100	-240,
101	-239,
102	-238,
103	-237,
104	-236,
105	1813,
106	5142,
107	-248,
108	-247,
109	778,
110	-244,
111	-249,
112	-221,
113	-211,
114	-1,
115	-1,
116	-1,
117	-1,
118	-1,
119	-1,
120	-243,
121	-1,
122	-1,
123	-1,
124	-1,
125	-1,
126	-1,
127	-242,
128	-233,
129	-232,
130	-1,
131	-231,
132	-230,
133	-229,
134	-228,
135	-227,
136	-226,
137	-225,
138	-224,
139	-223,
140	5410,
141	-220,
142	-219,
143	-218,
144	-217,
145	-216,
146	-215,
147	-214,
148	-213,
149	5676,
150	-210,
151	-209,
152	-1,
153	-1,
154	-1
155};
156
157static const u16 rop_action[] = {
158	2560,
159	2304,
160	2304,
161	2432,
162	2432,
163	2560,
164	2176,
165	2304,
166	2560,
167	3200,
168	3328,
169	3584,
170	3456,
171	2304,
172	4208,
173	20788,
174	21812,
175	3415,
176	3245,
177	2311,
178	4359,
179	19764,
180	2311,
181	3191,
182	3280,
183	6656,
184	7680,
185	8704,
186	9728,
187	10752,
188	11776,
189	12800,
190	13824,
191	14848,
192	15872,
193	16896,
194	17920,
195	18944,
196	0,
197	0,
198	0,
199	0,
200	1536,
201	1536,
202	1536,
203	5632,
204	512,
205	0
206};
207
208static const u16 rop_info[] = {
209	0,
210	35,
211	35,
212	35,
213	35,
214	35,
215	35,
216	35,
217	35,
218	39,
219	39,
220	39,
221	39,
222	35,
223	34,
224	283,
225	299,
226	4135,
227	4391,
228	291,
229	33059,
230	283,
231	295,
232	4647,
233	4135,
234	64,
235	64,
236	128,
237	64,
238	64,
239	64,
240	64,
241	64,
242	64,
243	64,
244	64,
245	64,
246	128,
247	201,
248	197,
249	74,
250	70,
251	208,
252	196,
253	200,
254	192,
255	192,
256	66
257};
258