x86: switch 64-bit to generic find_first_bit
[linux-2.6] / drivers / net / starfire_firmware.h
1 /*
2  * Copyright 2003 Adaptec, Inc.
3  *
4  * Please read the following license before using the Adaptec Software
5  * ("Program"). If you do not agree to the license terms, do not use the
6  * Program:
7  *
8  * You agree to be bound by version 2 of the General Public License ("GPL")
9  * dated June 1991, which can be found at http://www.fsf.org/licenses/gpl.html.
10  * If the link is broken, write to Free Software Foundation, 59 Temple Place,
11  * Boston, Massachusetts 02111-1307.
12  *
13  * BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE IT IS LICENSED "AS IS" AND
14  * THERE IS NO WARRANTY FOR THE PROGRAM, INCLUDING BUT NOT LIMITED TO THE
15  * IMPLIED WARRANTIES OF MERCHANTIBILITY OR FITNESS FOR A PARTICULAR PURPOSE
16  * (TO THE EXTENT PERMITTED BY APPLICABLE LAW). USE OF THE PROGRAM IS AT YOUR
17  * OWN RISK. IN NO EVENT WILL ADAPTEC OR ITS LICENSORS BE LIABLE TO YOU FOR
18  * DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
19  * ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM.
20  *
21  */
22
23 static const u32 firmware_rx[] = {
24   0x010003dc, 0x00000000,
25   0x04000421, 0x00000086,
26   0x80000015, 0x0000180e,
27   0x81000015, 0x00006664,
28   0x1a0040ab, 0x00000b06,
29   0x14200011, 0x00000000,
30   0x14204022, 0x0000aaaa,
31   0x14204022, 0x00000300,
32   0x14204022, 0x00000000,
33   0x1a0040ab, 0x00000b14,
34   0x14200011, 0x00000000,
35   0x83000015, 0x00000002,
36   0x04000021, 0x00000000,
37   0x00000010, 0x00000000,
38   0x04000421, 0x00000087,
39   0x00000010, 0x00000000,
40   0x00000010, 0x00000000,
41   0x00008015, 0x00000000,
42   0x0000003e, 0x00000000,
43   0x00000010, 0x00000000,
44   0x82000015, 0x00004000,
45   0x009e8050, 0x00000000,
46   0x03008015, 0x00000000,
47   0x86008015, 0x00000000,
48   0x82000015, 0x00008000,
49   0x0100001c, 0x00000000,
50   0x000050a0, 0x0000010c,
51   0x4e20d011, 0x00006008,
52   0x1420d012, 0x00004008,
53   0x0000f090, 0x00007000,
54   0x0000c8b0, 0x00003000,
55   0x00004040, 0x00000000,
56   0x00108015, 0x00000000,
57   0x00a2c150, 0x00004000,
58   0x00a400b0, 0x00000014,
59   0x00000020, 0x00000000,
60   0x2500400d, 0x00002525,
61   0x00047220, 0x00003100,
62   0x00934070, 0x00000000,
63   0x00000020, 0x00000000,
64   0x00924460, 0x00000184,
65   0x2b20c011, 0x00000000,
66   0x0000c420, 0x00000540,
67   0x36014018, 0x0000422d,
68   0x14200011, 0x00000000,
69   0x00924460, 0x00000183,
70   0x3200001f, 0x00000034,
71   0x02ac0015, 0x00000002,
72   0x00a60110, 0x00000008,
73   0x42200011, 0x00000000,
74   0x00924060, 0x00000103,
75   0x0000001e, 0x00000000,
76   0x00000020, 0x00000100,
77   0x0000001e, 0x00000000,
78   0x00924460, 0x00000086,
79   0x00004080, 0x00000000,
80   0x0092c070, 0x00000000,
81   0x00924060, 0x00000100,
82   0x0000c890, 0x00005000,
83   0x00a6c110, 0x00000000,
84   0x00b0c090, 0x00000012,
85   0x021c0015, 0x00000000,
86   0x3200001f, 0x00000034,
87   0x00924460, 0x00000510,
88   0x44210011, 0x00000000,
89   0x42000011, 0x00000000,
90   0x83000015, 0x00000040,
91   0x00924460, 0x00000508,
92   0x45014018, 0x00004545,
93   0x00808050, 0x00000000,
94   0x62208012, 0x00000000,
95   0x82000015, 0x00000800,
96   0x15200011, 0x00000000,
97   0x00000010, 0x00000000,
98   0x00000010, 0x00000000,
99   0x00000010, 0x00000000,
100   0x00000010, 0x00000000,
101   0x00000010, 0x00000000,
102   0x80000015, 0x0000eea4,
103   0x81000015, 0x0000005f,
104   0x00000060, 0x00000000,
105   0x00004120, 0x00000000,
106   0x00004a00, 0x00004000,
107   0x00924460, 0x00000190,
108   0x5601401a, 0x00005956,
109   0x14000011, 0x00000000,
110   0x00934050, 0x00000018,
111   0x00930050, 0x00000018,
112   0x3601403a, 0x0000002d,
113   0x000643a9, 0x00000000,
114   0x0000c420, 0x00000140,
115   0x5601401a, 0x00005956,
116   0x14000011, 0x00000000,
117   0x00000010, 0x00000000,
118   0x00000010, 0x00000000,
119   0x000642a9, 0x00000000,
120   0x00024420, 0x00000183,
121   0x5601401a, 0x00005956,
122   0x82000015, 0x00002000,
123   0x15200011, 0x00000000,
124   0x82000015, 0x00000010,
125   0x15200011, 0x00000000,
126   0x82000015, 0x00000010,
127   0x15200011, 0x00000000,
128 };      /* 104 Rx instructions */
129 #define FIRMWARE_RX_SIZE 104
130
131 static const u32 firmware_tx[] = {
132   0x010003dc, 0x00000000,
133   0x04000421, 0x00000086,
134   0x80000015, 0x0000180e,
135   0x81000015, 0x00006664,
136   0x1a0040ab, 0x00000b06,
137   0x14200011, 0x00000000,
138   0x14204022, 0x0000aaaa,
139   0x14204022, 0x00000300,
140   0x14204022, 0x00000000,
141   0x1a0040ab, 0x00000b14,
142   0x14200011, 0x00000000,
143   0x83000015, 0x00000002,
144   0x04000021, 0x00000000,
145   0x00000010, 0x00000000,
146   0x04000421, 0x00000087,
147   0x00000010, 0x00000000,
148   0x00000010, 0x00000000,
149   0x00008015, 0x00000000,
150   0x0000003e, 0x00000000,
151   0x00000010, 0x00000000,
152   0x82000015, 0x00004000,
153   0x009e8050, 0x00000000,
154   0x03008015, 0x00000000,
155   0x86008015, 0x00000000,
156   0x82000015, 0x00008000,
157   0x0100001c, 0x00000000,
158   0x000050a0, 0x0000010c,
159   0x4e20d011, 0x00006008,
160   0x1420d012, 0x00004008,
161   0x0000f090, 0x00007000,
162   0x0000c8b0, 0x00003000,
163   0x00004040, 0x00000000,
164   0x00108015, 0x00000000,
165   0x00a2c150, 0x00004000,
166   0x00a400b0, 0x00000014,
167   0x00000020, 0x00000000,
168   0x2500400d, 0x00002525,
169   0x00047220, 0x00003100,
170   0x00934070, 0x00000000,
171   0x00000020, 0x00000000,
172   0x00924460, 0x00000184,
173   0x2b20c011, 0x00000000,
174   0x0000c420, 0x00000540,
175   0x36014018, 0x0000422d,
176   0x14200011, 0x00000000,
177   0x00924460, 0x00000183,
178   0x3200001f, 0x00000034,
179   0x02ac0015, 0x00000002,
180   0x00a60110, 0x00000008,
181   0x42200011, 0x00000000,
182   0x00924060, 0x00000103,
183   0x0000001e, 0x00000000,
184   0x00000020, 0x00000100,
185   0x0000001e, 0x00000000,
186   0x00924460, 0x00000086,
187   0x00004080, 0x00000000,
188   0x0092c070, 0x00000000,
189   0x00924060, 0x00000100,
190   0x0000c890, 0x00005000,
191   0x00a6c110, 0x00000000,
192   0x00b0c090, 0x00000012,
193   0x021c0015, 0x00000000,
194   0x3200001f, 0x00000034,
195   0x00924460, 0x00000510,
196   0x44210011, 0x00000000,
197   0x42000011, 0x00000000,
198   0x83000015, 0x00000040,
199   0x00924460, 0x00000508,
200   0x45014018, 0x00004545,
201   0x00808050, 0x00000000,
202   0x62208012, 0x00000000,
203   0x82000015, 0x00000800,
204   0x15200011, 0x00000000,
205   0x00000010, 0x00000000,
206   0x00000010, 0x00000000,
207   0x00000010, 0x00000000,
208   0x00000010, 0x00000000,
209   0x00000010, 0x00000000,
210   0x80000015, 0x0000eea4,
211   0x81000015, 0x0000005f,
212   0x00000060, 0x00000000,
213   0x00004120, 0x00000000,
214   0x00004a00, 0x00004000,
215   0x00924460, 0x00000190,
216   0x5601401a, 0x00005956,
217   0x14000011, 0x00000000,
218   0x00934050, 0x00000018,
219   0x00930050, 0x00000018,
220   0x3601403a, 0x0000002d,
221   0x000643a9, 0x00000000,
222   0x0000c420, 0x00000140,
223   0x5601401a, 0x00005956,
224   0x14000011, 0x00000000,
225   0x00000010, 0x00000000,
226   0x00000010, 0x00000000,
227   0x000642a9, 0x00000000,
228   0x00024420, 0x00000183,
229   0x5601401a, 0x00005956,
230   0x82000015, 0x00002000,
231   0x15200011, 0x00000000,
232   0x82000015, 0x00000010,
233   0x15200011, 0x00000000,
234   0x82000015, 0x00000010,
235   0x15200011, 0x00000000,
236 };      /* 104 Tx instructions */
237 #define FIRMWARE_TX_SIZE 104
238 #if 0
239 static const u32 firmware_wol[] = {
240   0x010003dc, 0x00000000,
241   0x19000421, 0x00000087,
242   0x80000015, 0x00001a1a,
243   0x81000015, 0x00001a1a,
244   0x1a0040ab, 0x00000b06,
245   0x15200011, 0x00000000,
246   0x15204022, 0x0000aaaa,
247   0x15204022, 0x00000300,
248   0x15204022, 0x00000000,
249   0x1a0040ab, 0x00000b15,
250   0x15200011, 0x00000000,
251   0x83000015, 0x00000002,
252   0x04000021, 0x00000000,
253   0x00000010, 0x00000000,
254   0x04000421, 0x00000087,
255   0x00000010, 0x00000000,
256   0x00000010, 0x00000000,
257   0x00008015, 0x00000000,
258   0x0000003e, 0x00000000,
259   0x00000010, 0x00000000,
260   0x00000010, 0x00000000,
261   0x82000015, 0x00004000,
262   0x82000015, 0x00008000,
263   0x0000000c, 0x00000000,
264   0x00000010, 0x00000000,
265   0x00004080, 0x00000100,
266   0x1f20c011, 0x00001122,
267   0x2720f011, 0x00003011,
268   0x19200071, 0x00000000,
269   0x1a200051, 0x00000000,
270   0x00000010, 0x00000000,
271   0x00000010, 0x00000000,
272   0x1d2040a4, 0x00003344,
273   0x1d2040a2, 0x00005566,
274   0x000040a0, 0x00000100,
275   0x00108050, 0x00000001,
276   0x1a208012, 0x00000006,
277   0x82000015, 0x00008080,
278   0x010003dc, 0x00000000,
279   0x1d2040a4, 0x00002233,
280   0x1d2040a4, 0x00004455,
281   0x2d208011, 0x00000005,
282   0x1d2040a4, 0x00006611,
283   0x00108050, 0x00000001,
284   0x27200011, 0x00000000,
285   0x1d2050a4, 0x00006600,
286   0x82000015, 0x00008080,
287   0x010003dc, 0x00000000,
288   0x00000050, 0x00000000,
289   0x1b200031, 0x00000000,
290   0x0000001e, 0x00000000,
291   0x0000001e, 0x00000000,
292   0x0000001e, 0x00000000,
293   0x0000001e, 0x00000000,
294   0x00924460, 0x00000086,
295   0x00004080, 0x00000000,
296   0x0092c070, 0x00000000,
297   0x00924060, 0x00000100,
298   0x0000c890, 0x00005000,
299   0x00a6c110, 0x00000000,
300   0x00b0c090, 0x00000012,
301   0x021c0015, 0x00000000,
302   0x3200001f, 0x00000034,
303   0x00924460, 0x00000510,
304   0x44210011, 0x00000000,
305   0x42000011, 0x00000000,
306   0x83000015, 0x00000040,
307   0x00924460, 0x00000508,
308   0x476a0012, 0x00000100,
309   0x83000015, 0x00000008,
310   0x16200011, 0x00000000,
311   0x001e8050, 0x00000000,
312   0x001e8050, 0x00000000,
313   0x00808050, 0x00000000,
314   0x03008015, 0x00000000,
315   0x62208012, 0x00000000,
316   0x82000015, 0x00000800,
317   0x16200011, 0x00000000,
318   0x80000015, 0x0000eea4,
319   0x81000015, 0x0000005f,
320   0x00000020, 0x00000000,
321   0x00004120, 0x00000000,
322   0x00004a00, 0x00004000,
323   0x00924460, 0x00000190,
324   0x5c01401a, 0x0000595c,
325   0x15000011, 0x00000000,
326   0x00934050, 0x00000018,
327   0x00930050, 0x00000018,
328   0x3601403a, 0x0000002d,
329   0x00064029, 0x00000000,
330   0x0000c420, 0x00000140,
331   0x5c01401a, 0x0000595c,
332   0x15000011, 0x00000000,
333   0x00000010, 0x00000000,
334   0x00000010, 0x00000000,
335   0x00064029, 0x00000000,
336   0x00024420, 0x00000183,
337   0x5c01401a, 0x0000595c,
338   0x82000015, 0x00002000,
339   0x16200011, 0x00000000,
340   0x82000015, 0x00000010,
341   0x16200011, 0x00000000,
342   0x82000015, 0x00000010,
343   0x16200011, 0x00000000,
344 };      /* 104 WoL instructions */
345 #define FIRMWARE_WOL_SIZE 104
346 #endif