e9c0c7456d6782ab970f3de62253887f382ca1eb
[releases.git] / deblob-2.6.28
1 #!/bin/sh
2
3 #    Copyright (C) 2008, 2009 Alexandre Oliva <lxoliva@fsfla.org>
4 #    Copyright (C) 2008 Jeff Moe
5 #
6 #    This program is free software; you can redistribute it and/or modify
7 #    it under the terms of the GNU General Public License as published by
8 #    the Free Software Foundation; either version 2 of the License, or
9 #    (at your option) any later version.
10 #
11 #    This program is distributed in the hope that it will be useful,
12 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #    GNU General Public License for more details.
15 #
16 #    You should have received a copy of the GNU General Public License
17 #    along with this program; if not, write to the Free Software
18 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19
20
21 # deblob - remove non-free blobs from the vanilla linux kernel
22
23 # http://www.fsfla.org/svn/fsfla/software/linux-libre
24
25
26 # This script, suited for the kernel version named below, in kver,
27 # attempts to remove only non-Free Software bits, without removing
28 # Free Software that happens to be in the same file.
29
30 # Drivers that currently require non-Free firmware are retained, but
31 # firmware included in GPLed sources is replaced with /*(DEBLOBBED)*/
32 # if the deblob-check script, that knows how to do this, is present.
33 # -lxoliva
34
35
36 # See also:
37 # http://wiki.debian.org/KernelFirmwareLicensing
38 # svn://svn.debian.org/kernel/dists/trunk/linux-2.6/debian/patches/debian/dfsg/files-1
39 # http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk/firmware/firmware-removed
40 # http://svn.gnewsense.svnhopper.net/gnewsense/builder/trunk/gen-kernel
41
42 # Thanks to Brian Brazil @ gnewsense
43
44
45 # For each kver release, start extra with an empty string, then count
46 # from 1 if changes are needed that require rebuilding the tarball.
47 kver=2.6.28 extra=++
48
49 fatal () {
50   echo "$@"
51   exit 1
52 }
53
54 case $1 in
55 --force) die () { echo ERROR: "$@": ignored >&2; }; forced=:; shift;;
56 *) die () { fatal "$@"; }; forced=false;;
57 esac
58
59 check=`echo $0 | sed 's,/[^/]*$,,'`/deblob-check
60 if [ ! -f $check ] ; then
61   if $forced; then
62     die deblob-check script missing, will remove entire files
63   else
64     die deblob-check script missing
65   fi
66   have_check=false
67 else
68   have_check=:
69 fi
70
71 announce () {
72         echo
73         echo "$@"
74 }
75
76 clean_file () {
77         #$1 = filename
78         if test ! -f $1; then
79                 die $1 does not exist, something is wrong
80         fi
81         rm $1
82         echo $1: removed
83 }
84
85 check_changed () {
86         if test ! -f $1; then
87                 die $1 does not exist, something is wrong
88         elif cmp $1.deblob $1 > /dev/null; then
89                 die $1 did not change, something is wrong
90         fi
91         mv $1.deblob $1
92 }
93
94 clean_blob () {
95         #$1 = filename
96         if $have_check; then
97             if test ! -f $1; then
98                 die $1 does not exist, something is wrong
99             fi
100             name=$1
101             set fnord "$@" -d
102             shift 2
103             $check "$@" -i linux-$kver $name > $name.deblob
104             echo $name: removed blobs
105             check_changed $name
106         else
107             clean_file $1
108         fi
109 }
110
111 dummy_blob () {
112         #$1 = filename
113         if test -f $1; then
114             fatal $1 exists, something is wrong
115         elif test ! -f firmware/Makefile; then
116             fatal firmware/Makefile does not exist, something is wrong
117         fi
118
119         clean_sed "s,`echo $1 | sed s,^firmware/,,`,\$(DEBLOBBED),g" \
120           firmware/Makefile "dropped $1"
121 }
122
123 clean_fw () {
124         #$1 = firmware text input, $2 = firmware output
125         if test ! -f $1; then
126                 fatal $1 does not exist, something is wrong
127         elif test -f $2; then
128                 fatal $2 exists, something is wrong
129         fi
130         clean_blob $1 -s 4
131         dummy_blob $2
132 }
133
134 drop_fw_file () {
135         #$1 = firmware text input, $2 = firmware output
136         if test ! -f $1; then
137                 fatal $1 does not exist, something is wrong
138         elif test -f $2; then
139                 fatal $2 exists, something is wrong
140         fi
141         clean_file $1
142         dummy_blob $2
143 }
144
145 clean_kconfig () {
146         #$1 = filename $2 = things to remove
147         case $1 in
148         -f)
149                 shift
150                 ;;
151         *)
152                 if $have_check; then
153                         return
154                 fi
155                 ;;
156         esac
157         sed "/^config \\($2\\)\$/{p;i\
158         depends on NONFREE
159 d;}" $1 > $1.deblob
160         echo $1: marked config $2 as depending on NONFREE
161         check_changed $1
162 }
163
164 clean_mk () {
165         #$1 = config $2 = Makefile name
166         # We don't clean up Makefiles any more --lxoliva
167         # sed -i "/\\($1\\)/d" $2
168         # echo $2: removed $1 support
169         # check_changed $2
170         if sed -n "/\\($1\\)/p" $2 | grep . > /dev/null; then
171             :
172         else
173             die $2 does not contain matches for $1
174         fi
175 }
176
177 clean_sed () {
178         #$1 = sed-script $2 = file $3 = comment
179         sed -e "$1" "$2" > "$2".deblob
180         echo $2: ${3-applied sed script $1}
181         check_changed "$2"
182 }
183
184 reject_firmware () {
185         #$1 = file
186         clean_sed '
187 s,request\(_ihex\|\)_firmware(,reject_firmware(,
188 ' "$1" 'disabled non-Free firmware-loading machinery'
189 }
190
191 # First, check that files that contain firmwares and their
192 # corresponding sources are present.
193
194 for f in \
195   drivers/char/ser_a2232fw.h \
196     drivers/char/ser_a2232fw.ax \
197   drivers/net/ixp2000/ixp2400_rx.ucode \
198     drivers/net/ixp2000/ixp2400_rx.uc \
199   drivers/net/ixp2000/ixp2400_tx.ucode \
200     drivers/net/ixp2000/ixp2400_rx.uc \
201   drivers/net/wan/wanxlfw.inc_shipped \
202     drivers/net/wan/wanxlfw.S \
203   drivers/net/wireless/atmel.c \
204     drivers/net/wireless/atmel.c \
205   drivers/scsi/53c700_d.h_shipped \
206     drivers/scsi/53c700.scr \
207   drivers/scsi/aic7xxx/aic79xx_seq.h_shipped \
208     drivers/scsi/aic7xxx/aic79xx.seq \
209   drivers/scsi/aic7xxx/aic7xxx_seq.h_shipped \
210     drivers/scsi/aic7xxx/aic7xxx.seq \
211   drivers/scsi/aic7xxx_old/aic7xxx_seq.c \
212     drivers/scsi/aic7xxx_old/aic7xxx.seq \
213   drivers/scsi/53c7xx_d.h_shipped \
214     drivers/scsi/53c7xx.scr \
215   drivers/scsi/sym53c8xx_2/sym_fw1.h \
216     drivers/scsi/sym53c8xx_2/sym_fw1.h \
217   drivers/scsi/sym53c8xx_2/sym_fw2.h \
218     drivers/scsi/sym53c8xx_2/sym_fw2.h \
219   firmware/dsp56k/bootstrap.bin.ihex \
220     firmware/dsp56k/bootstrap.asm \
221   firmware/keyspan_pda/keyspan_pda.HEX \
222     firmware/keyspan_pda/keyspan_pda.S \
223   firmware/keyspan_pda/xircom_pgs.HEX \
224     firmware/keyspan_pda/xircom_pgs.S \
225   sound/pci/cs46xx/imgs/cwcdma.h \
226     sound/pci/cs46xx/imgs/cwcdma.asp \
227 ; do
228   if test ! $f; then
229     die $f is not present, something is amiss
230   fi
231 done
232
233 # Identify the tarball.
234 clean_sed "
235 s,^EXTRAVERSION.*,&-libre$extra,
236 " Makefile 'added -libre to EXTRAVERSION'
237
238 # Add reject_firmware and maybe_reject_firmware
239 clean_sed '
240 $i\
241 #ifndef _LINUX_LIBRE_FIRMWARE_H\
242 #define _LINUX_LIBRE_FIRMWARE_H\
243 \
244 #define NONFREE_FIRMWARE "/*(DEBLOBBED)*/"\
245 \
246 static inline int\
247 report_missing_free_firmware(const char *name, const char *what)\
248 {\
249         printk(KERN_ERR "%s: Missing Free %s\\n", name,\
250                what ? what : "firmware");\
251         return -EINVAL;\
252 }\
253 static inline int\
254 reject_firmware(const struct firmware **fw,
255                 const char *name, struct device *device)\
256 {\
257         struct firmware *xfw = NULL;\
258         int retval;\
259         report_missing_free_firmware(device->name, NULL);\
260         retval = request_firmware(&xfw, NONFREE_FIRMWARE, device);\
261         if (!retval)\
262                 release_firmware(xfw);\
263         return -EINVAL;\
264 }\
265 static inline int\
266 maybe_reject_firmware(const struct firmware **fw,\
267                       const char *name, struct device *device)\
268 {\
269         if (strstr (name, NONFREE_FIRMWARE))\
270                 return reject_firmware(fw, name, device);\
271         else\
272                 return request_firmware(fw, name, device);\
273 }\
274 static inline void\
275 discard_rejected_firmware(const struct firmware *fw, void *context)\
276 {\
277         release_firmware(fw);\
278 }\
279 static inline int\
280 reject_firmware_nowait(struct module *module, int uevent,\
281                        const char *name, struct device *device,\
282                        void *context,\
283                        void (*cont)(const struct firmware *fw,\
284                                     void *context))\
285 {\
286         int retval;\
287         report_missing_free_firmware(device->name, NULL);\
288         retval = request_firmware_nowait(module, uevent, NONFREE_FIRMWARE,\
289                                          device, NULL,\
290                                          discard_rejected_firmware);\
291         if (retval)\
292                 return retval;\
293         return -EINVAL;\
294 }\
295 static inline int\
296 maybe_reject_firmware_nowait(struct module *module, int uevent,\
297                              const char *name, struct device *device,\
298                              void *context,\
299                              void (*cont)(const struct firmware *fw,\
300                                           void *context))\
301 {\
302         if (strstr (name, NONFREE_FIRMWARE))\
303                 return reject_firmware_nowait(module, uevent, name,\
304                                               device, context, cont);\
305         else\
306                 return request_firmware_nowait(module, uevent, name,\
307                                                device, context, cont);\
308 }\
309 \
310 #endif /* _LINUX_LIBRE_FIRMWARE_H */\
311 ' include/linux/firmware.h 'added non-Free firmware notification support'
312
313 ########################
314 # Removed Arch Drivers #
315 ########################
316
317 # x86
318
319 announce MICROCODE_AMD - "AMD microcode patch loading support"
320 reject_firmware arch/x86/kernel/microcode_amd.c
321 clean_blob arch/x86/kernel/microcode_amd.c
322 clean_kconfig arch/x86/Kconfig 'MICROCODE_AMD'
323 clean_mk CONFIG_MICROCODE_AMD arch/x86/kernel/Makefile
324
325 announce MICROCODE_INTEL - "Intel microcode patch loading support"
326 reject_firmware arch/x86/kernel/microcode_intel.c
327 clean_blob arch/x86/kernel/microcode_intel.c
328 clean_kconfig arch/x86/Kconfig 'MICROCODE_INTEL'
329 clean_mk CONFIG_MICROCODE_INTEL arch/x86/kernel/Makefile
330
331 # arm
332
333 announce IXP4XX_NPE - "IXP4xx Network Processor Engine support"
334 reject_firmware arch/arm/mach-ixp4xx/ixp4xx_npe.c
335 clean_blob Documentation/arm/IXP4xx
336
337 announce ARCH_NETX - "Hilscher NetX based"
338 clean_sed '
339 s,\([" ]\)request_firmware(,\1reject_firmware(,
340 ' arch/arm/mach-netx/xc.c 'disabled non-Free firmware-loading machinery'
341
342
343 #######################
344 # Removed ATM Drivers #
345 #######################
346
347 announce ATM_AMBASSADOR - "Madge Ambassador, Collage PCI 155 Server"
348 reject_firmware drivers/atm/ambassador.c
349 clean_blob drivers/atm/ambassador.c
350 clean_fw firmware/atmsar11.HEX firmware/atmsar11.fw
351 clean_kconfig drivers/atm/Kconfig 'ATM_AMBASSADOR'
352 clean_mk CONFIG_ATM_AMBASSADOR drivers/atm/Makefile
353
354 announce ATM_FORE200E - "FORE Systems 200E-series"
355 reject_firmware drivers/atm/fore200e.c
356 clean_blob drivers/atm/fore200e.c
357 clean_blob Documentation/networking/fore200e.txt
358 clean_kconfig drivers/atm/Kconfig 'ATM_FORE200E'
359 clean_mk CONFIG_ATM_FORE200E drivers/atm/Makefile
360
361
362 ########################
363 # Removed char Drivers #
364 ########################
365
366 announce COMPUTONE - "Computone IntelliPort Plus serial"
367 drop_fw_file firmware/intelliport2.bin.ihex firmware/intelliport2.bin
368 reject_firmware drivers/char/ip2/ip2main.c
369 clean_blob drivers/char/ip2/ip2main.c
370 clean_kconfig drivers/char/Kconfig 'COMPUTONE'
371 clean_mk CONFIG_COMPUTONE drivers/char/Makefile
372
373 announce CYCLADES - "Cyclades async mux support"
374 reject_firmware drivers/char/cyclades.c
375 clean_blob drivers/char/cyclades.c
376 clean_kconfig drivers/char/Kconfig 'CYCLADES'
377 clean_mk CONFIG_CYCLADES drivers/char/Makefile
378
379 announce ISI - "Multi-Tech multiport card support (EXPERIMENTAL)"
380 reject_firmware drivers/char/isicom.c
381 clean_blob drivers/char/isicom.c
382 clean_kconfig drivers/char/Kconfig 'ISI'
383 clean_mk CONFIG_ISI drivers/char/Makefile
384
385 announce MOXA_INTELLIO - "Moxa Intellio support"
386 reject_firmware drivers/char/moxa.c
387 clean_blob drivers/char/moxa.c
388 clean_kconfig drivers/char/Kconfig 'MOXA_INTELLIO'
389 clean_mk CONFIG_MOXA_INTELLIO drivers/char/Makefile
390
391 # gpu drm
392
393 announce DRM_MGA - "Matrox g200/g400"
394 clean_blob drivers/gpu/drm/mga/mga_ucode.h
395 clean_blob drivers/gpu/drm/mga/mga_warp.c
396 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_MGA'
397 clean_mk CONFIG_DRM_MGA drivers/gpu/drm/Makefile
398
399 announce DRM_R128 - "ATI Rage 128"
400 clean_sed '
401 /^static int r128_do_init_cce([^;]*$/,/^}$/{
402   /^    r128_cce_load_microcode(dev_priv);$/{
403     i\
404         DRM_ERROR("Missing Free microcode!\\n");\
405         dev->dev_private = (void *)dev_priv;\
406         r128_do_cleanup_cce(dev);\
407         return -EINVAL;
408   }
409 }' drivers/gpu/drm/r128/r128_cce.c 'report missing Free microcode'
410 clean_blob drivers/gpu/drm/r128/r128_cce.c
411 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_R128'
412 clean_mk CONFIG_DRM_R128 drivers/gpu/drm/Makefile
413
414 announce DRM_RADEON - "ATI Radeon"
415 clean_sed '
416 /^static int radeon_do_init_cce([^;]*$/,/^}$/{
417   /^    radeon_cp_load_microcode(dev_priv);$/{
418     i\
419         DRM_ERROR("Missing Free microcode!\\n");\
420         radeon_do_cleanup_cp(dev);\
421         return -EINVAL;
422   }
423 }
424 /^static int radeon_do_resume_cp([^;]*$/,/^}$/{
425   /^    radeon_cp_load_microcode(dev_priv);$/{
426     i\
427         DRM_ERROR("Missing Free microcode!\\n");\
428         return -EINVAL;
429   }
430 }' drivers/gpu/drm/radeon/radeon_cp.c 'report missing Free microcode'
431 clean_blob drivers/gpu/drm/radeon/radeon_microcode.h
432 clean_kconfig drivers/gpu/drm/Kconfig 'DRM_RADEON'
433 clean_mk CONFIG_DRM_RADEON drivers/gpu/drm/Makefile
434
435
436 #########################
437 # Removed Media Drivers #
438 #########################
439
440 # media/tuner
441
442 announce MEDIA_TUNER_XC2028 - "XCeive xc2028/xc3028 tuners"
443 clean_sed '
444 s,\(#define XC\(2028\|3028L\)_DEFAULT_FIRMWARE \)"[^"]*",\1NONFREE_FIRMWARE,
445 ' drivers/media/common/tuners/tuner-xc2028.h 'report missing non-Free firmware'
446 clean_blob drivers/media/common/tuners/tuner-xc2028.h
447 clean_sed '
448 s,request_firmware(,maybe_reject_firmware(,
449 ' drivers/media/common/tuners/tuner-xc2028.c \
450   'disabled non-Free firmware loading machinery'
451 clean_kconfig drivers/media/common/tuners/Kconfig 'MEDIA_TUNER_XC2028'
452 clean_mk CONFIG_MEDIA_TUNER_XC2028 drivers/media/common/tuners/Makefile
453
454 announce MEDIA_TUNER_XC5000 - "Xceive XC5000 silicon tuner"
455 reject_firmware drivers/media/common/tuners/xc5000.c
456 clean_blob drivers/media/common/tuners/xc5000.c
457 clean_kconfig drivers/media/common/tuners/Kconfig 'MEDIA_TUNER_XC5000'
458 clean_mk CONFIG_MEDIA_TUNER_XC5000 drivers/media/common/tuners/Makefile
459
460 announce DVB - "non-Free firmware scripts and documentation"
461 clean_blob Documentation/dvb/get_dvb_firmware
462 clean_blob Documentation/dvb/avermedia.txt
463 clean_blob Documentation/dvb/opera-firmware.txt
464 clean_blob Documentation/dvb/ttusb-dec.txt
465
466 announce DVB_USB_AF9005 - "Afatech AF9005 DVB-T USB1.1"
467 clean_file drivers/media/dvb/dvb-usb/af9005-script.h
468 clean_sed '
469 s,^     deb_info("load init script\\n");$,      {\n             err("Missing Free init script\\n");\n           return scriptlen = ret = -EINVAL;\n             ,;
470 ' drivers/media/dvb/dvb-usb/af9005-fe.c 'report missing Free init script'
471 clean_blob drivers/media/dvb/dvb-usb/af9005-fe.c
472 clean_kconfig drivers/media/dvb/dvb-usb/Kconfig 'DVB_USB_AF9005'
473 clean_mk CONFIG_DVB_USB_AF9005 drivers/media/dvb/dvb-usb/Makefile
474
475 announce DVB_B2C2_FLEXCOP - "Technisat/B2C2 FlexCopII(b) and FlexCopIII adapters"
476 reject_firmware drivers/media/dvb/b2c2/flexcop-fe-tuner.c
477
478 announce DVB_BT8XX - "BT8xx based PCI cards"
479 reject_firmware drivers/media/dvb/bt8xx/dvb-bt8xx.c
480
481 # dvb/frontends
482
483 announce DVB_SP8870 - "Spase sp8870"
484 clean_sed '
485 s,SP8870_DEFAULT_FIRMWARE,NONFREE_FIRMWARE,g
486 ' drivers/media/dvb/frontends/sp8870.c 'disable non-Free firmware'
487 clean_blob drivers/media/dvb/frontends/sp8870.c
488 clean_kconfig drivers/media/dvb/frontends 'DVB_SP8870'
489 clean_mk CONFIG_DVB_SP8870 drivers/media/dvb/frontends/Makefile
490
491 announce DVB_TDA1004X - "Philips TDA10045H/TDA10046H"
492 clean_sed '
493 s,TDA1004[56]_DEFAULT_FIRMWARE,NONFREE_FIRMWARE,g
494 ' drivers/media/dvb/frontends/tda1004x.c 'disable non-Free firmware'
495 clean_blob drivers/media/dvb/frontends/tda1004x.c
496 clean_kconfig drivers/media/dvb/frontends 'DVB_TDA1004X'
497 clean_mk CONFIG_DVB_TDA1004X drivers/media/dvb/frontends/Makefile
498
499 # dvb/ttpci
500
501 announce DVB_AV7110 - "AV7110 cards"
502 # The bootcode is actually Free Software under GPLv2, but since it's
503 # being distributed without source code, we're taking it out for now.
504 clean_sed '
505 s,^     \/\* boot \*\/$,        printk(KERN_ERR "dvb-ttpci: av7110_bootarm(): Missing Free bootcode\\n");\n     return -EINVAL;\n\n&,
506 ' drivers/media/dvb/ttpci/av7110_hw.c 'report missing Free bootcode'
507 clean_sed '
508 s,mwdebi(.*bootcode.*$,/* & */,
509 ' drivers/media/dvb/ttpci/av7110_hw.c 'adjust bootcode loader'
510 clean_blob drivers/media/dvb/ttpci/av7110_hw.c
511 clean_sed '
512 /^static int get_firmware([^;]*$/,/^}$/{
513   s, request_firmware(, reject_firmware(,
514 }' drivers/media/dvb/ttpci/av7110.c 'report missing Free firwmare'
515 clean_sed '
516 /^static int alps_tdlb7_request_firmware([^;]*$/,/^}$/{
517   s, request_firmware(, maybe_reject_firmware(,
518 }' drivers/media/dvb/ttpci/av7110.c 'accept Free firmware'
519 clean_blob drivers/media/dvb/ttpci/av7110.c
520 clean_kconfig drivers/media/dvb/ttpci/Kconfig 'DVB_AV7110'
521 clean_mk CONFIG_DVB_AV7110 drivers/media/dvb/ttpci/Makefile
522
523 announce DVB_BUDGET - "Budget cards"
524 clean_sed '
525 /^static int alps_tdhd1_204_request_firmware([^;]*$/,/^}$/{
526   s, request_firmware(, maybe_reject_firmware(,
527 }' drivers/media/dvb/ttpci/budget.c 'report missing Free firmware'
528
529 announce DVB_BUDGET_AV - "Budget cards with analog video inputs"
530 clean_sed '
531 /^static int philips_tu1216_request_firmware([^;]*$/,/^}$/{
532   s, request_firmware(, maybe_reject_firmware(,
533 }' drivers/media/dvb/ttpci/budget-av.c \
534   'report missing Free firmware, accept Free firmware'
535
536 announce DVB_BUDGET_CI - "Budget cards with onboard CI connector"
537 clean_sed '
538 /^static int philips_tdm1316l_request_firmware([^;]*$/,/^}$/{
539   s, request_firmware(, maybe_reject_firmware(,
540 }' drivers/media/dvb/ttpci/budget-ci.c \
541   'report missing Free firmware, accept Free firmware'
542
543 # dvb/ttusb-budget
544
545 announce DVB_TTUSB_BUDGET - "Technotrend/Hauppauge Nova-USB devices"
546 drop_fw_file firmware/ttusb-budget/dspbootcode.bin.ihex firmware/ttusb-budget/dspbootcode.bin
547 clean_sed '
548 /^static int philips_tdm1316l_request_firmware([^;]*$/,/^}$/{
549   s, request_firmware(, maybe_reject_firmware(,
550 }' drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c \
551   'report missing Free firmware, accept Free firmware'
552 reject_firmware drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
553 clean_blob drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c
554 clean_kconfig drivers/media/dvb/ttusb-budget/Kconfig 'DVB_TTUSB_BUDGET'
555 clean_mk CONFIG_DVB_TTUSB_BUDGET drivers/media/dvb/ttusb-budget/Makefile
556
557 # video
558
559 announce VIDEO_CPIA2 - "CPiA2 Video For Linux"
560 clean_fw firmware/cpia2/stv0672_vp4.bin.ihex firmware/cpia2/stv0672_vp4.bin
561 reject_firmware drivers/media/video/cpia2/cpia2_core.c
562 clean_blob drivers/media/video/cpia2/cpia2_core.c
563 clean_kconfig drivers/media/video/cpia2/Kconfig 'VIDEO_CPIA2'
564 clean_mk CONFIG_VIDEO_CPIA2 drivers/media/video/cpia2/Makefile
565
566 announce USB_DABUSB - "DABUSB driver"
567 clean_fw firmware/dabusb/bitstream.bin.ihex firmware/dabusb/bitstream.bin
568 clean_fw firmware/dabusb/firmware.HEX firmware/dabusb/firmware.fw
569 reject_firmware drivers/media/video/dabusb.c
570 clean_blob drivers/media/video/dabusb.c
571 clean_kconfig drivers/media/Kconfig 'USB_DABUSB'
572 clean_mk CONFIG_USB_DABUSB drivers/media/video/Makefile
573
574 # video/usbvideo
575
576 announce USB_VICAM - "USB 3com HomeConnect, AKA vicam"
577 drop_fw_file firmware/vicam/firmware.H16 firmware/vicam/firmware.fw
578 reject_firmware drivers/media/video/usbvideo/vicam.c
579 clean_blob drivers/media/video/usbvideo/vicam.c
580 clean_kconfig drivers/media/video/usbvideo/Kconfig 'USB_VICAM'
581 clean_mk CONFIG_USB_VICAM drivers/media/video/usbvideo/Makefile
582
583
584 #######################
585 # Removed net Drivers #
586 #######################
587
588 announce ACENIC - "Alteon AceNIC/3Com 3C985/NetGear GA620 Gigabit"
589 clean_blob drivers/net/acenic_firmware.h
590 clean_sed '
591 s,      \(ace_load_firmware[^;]*\),     if ((ecode = \1)) goto init_error,
592 ' drivers/net/acenic.c 'check for error in firmware loading'
593 clean_sed '
594 /^static int __devinit ace_load_firmware([^;]*$/,/^}$/{
595   /^}$/i\
596 }\
597         printk(KERN_ERR "%s: Missing Free firwmare\\n", ap->name);\
598         return -EINVAL;
599 }' drivers/net/acenic.c 'report missing Free firmware'
600 clean_blob drivers/net/acenic.c
601 clean_kconfig drivers/net/Kconfig 'ACENIC'
602 clean_mk CONFIG_ACENIC drivers/net/Makefile
603
604 announce ADAPTEC_STARFIRE - "Adaptec Starfire/DuraLAN support"
605 # This file requires prior acceptance of the GPL before you can even
606 # run the code in it.  It's not clear whether this is a further
607 # requirement that would make the distribution incompatible with the
608 # GPL, but since nothing remains after we remove the blob, it's
609 # irrelevant whether the explicit acceptance would be a problem.
610 clean_file drivers/net/starfire_firmware.h
611 clean_file drivers/net/starfire_firmware.pl
612 clean_sed '
613 /Load Rx\/Tx firmware/i\
614         printk (KERN_ERR "%s: Missing Free firmware\\n", dev->name);\
615         return -EINVAL;
616 ' drivers/net/starfire.c 'report missing Free firmware'
617 clean_blob drivers/net/starfire.c
618 clean_kconfig drivers/net/Kconfig 'ADAPTEC_STARFIRE'
619 clean_mk CONFIG_ADAPTEC_STARFIRE drivers/net/Makefile
620
621 announce BNX2 - "Broadcom NetXtremeII"
622 clean_file drivers/net/bnx2_fw.h
623 clean_file drivers/net/bnx2_fw2.h
624 clean_sed '
625 / bnx2_init_cpus(/i\
626         printk (KERN_ERR "%s: Missing Free firmware\\n", bp->dev->name);\
627         return -EINVAL;\
628 #define bnx2_init_cpus(bp) (-EINVAL)
629 ' drivers/net/bnx2.c 'report missing Free firmware'
630 clean_blob drivers/net/bnx2.c
631 clean_kconfig drivers/net/Kconfig 'BNX2'
632 clean_mk CONFIG_BNX2 drivers/net/Makefile
633
634 announce BNX2X - "Broadcom NetXtremeII 10Gb support"
635 clean_blob drivers/net/bnx2x_init_values.h
636 clean_blob drivers/net/bnx2x_init.h
637 clean_sed '
638 /^#include "bnx2x_init\.h"/,/^$/{
639   /^$/i\
640 #define bnx2x_init_block(bp, start, end) \\\
641   return printk(KERN_ERR PFX "%s: Missing Free firmware\\n", bp->dev->name),\
642          -EINVAL;
643 }' drivers/net/bnx2x_main.c 'report missing Free firmware'
644 clean_kconfig drivers/net/Kconfig 'BNX2X'
645 clean_mk CONFIG_BNX2X drivers/net/Makefile
646
647 announce CASSINI - "Sun Cassini"
648 drop_fw_file firmware/sun/cassini.bin.ihex firmware/sun/cassini.bin
649 reject_firmware drivers/net/cassini.c
650 clean_blob drivers/net/cassini.c
651 clean_kconfig drivers/net/Kconfig 'CASSINI'
652 clean_mk CONFIG_CASSINI drivers/net/Makefile
653
654 announce CHELSIO_T3 - "Chelsio AEL 2005 support"
655 clean_sed '
656 /^static int ael2005_setup_\(sr\|twinax\)_edc([^;]*$/,/^}$/{
657   /for.*ARRAY_SIZE(\(sr\|twinax\)_edc)/i\
658 }\
659         CH_ERR(phy->adapter, "Missing Free firwmare\\n");\
660         err = -EINVAL;
661 }' drivers/net/cxgb3/ael1002.c 'report missing Free firmware'
662 clean_blob drivers/net/cxgb3/ael1002.c
663 clean_kconfig drivers/net/Kconfig 'CHELSIO_T3'
664 clean_mk CONFIG_CHELSIO_T3 drivers/net/cxgb3/Makefile
665
666 announce E100 - "Intel PRO/100+"
667 clean_sed '
668 /^static void e100_setup_ucode([^;]*$/,/^}$/{
669   /^    } ucode_opts\[\] = {$/,/^       }[,;]/ {
670     s,D[^,]*_RCVBUNDLE_UCODE,/*DEBLOBBED*/{0},g;
671     s,D[^,]*_CPUSAVER_\(TIMER\|BUNDLE\|MIN_SIZE\)_DWORD,/*DEBLOBBED*/0,g;
672   }
673   /^    for ([^;]*ucode_opts[^{]*) {$/,/^       }$/ {
674     /^  }$/ i\
675         }\
676                 DPRINTK(DRV, ERR, "Missing Free firmware\\n");\
677                 /* ??? We should error out somehow.  */\
678                 goto noloaducode;
679   }
680 }
681 ' drivers/net/e100.c 'report missing Free firmware for some variants'
682 clean_blob drivers/net/e100.c
683 clean_kconfig drivers/net/Kconfig 'E100'
684 clean_mk CONFIG_E100 drivers/net/Makefile
685
686 announce MYRI_SBUS - "MyriCOM Gigabit Ethernet"
687 clean_file drivers/net/myri_code.h
688 clean_sed '
689 /myri_load_lanai.*;/{
690   i\
691         printk(KERN_ERR "Missing Free firmware\\n");\
692         goto err_free_irq;
693 }' drivers/net/myri_sbus.c 'report missing Free firmware'
694 clean_blob drivers/net/myri_sbus.c
695 clean_kconfig drivers/net/Kconfig 'MYRI_SBUS'
696 clean_mk CONFIG_MYRI_SBUS drivers/net/Makefile
697
698 announce MYRI10GE - "Myricom Myri-10G Ethernet support"
699 reject_firmware drivers/net/myri10ge/myri10ge.c
700 clean_blob drivers/net/myri10ge/myri10ge.c
701 clean_kconfig drivers/net/Kconfig 'MYRI10GE'
702 clean_mk CONFIG_MYRI10GE drivers/net/myri10ge/Makefile
703
704 announce SPIDER_NET - "Spider Gigabit Ethernet driver"
705 reject_firmware drivers/net/spider_net.c
706 clean_blob drivers/net/spider_net.h
707 clean_kconfig drivers/net/Kconfig 'SPIDER_NET'
708 clean_mk CONFIG_SPIDER_NET drivers/net/Makefile
709
710 announce TEHUTI - "Tehuti Networks 10G Ethernet"
711 clean_blob drivers/net/tehuti_fw.h
712 clean_sed '
713 /bdx_tx_push_desc_safe.*s_firmLoad.*/{
714   i\
715                 ERR("%s: Missing Free firmware\\n", priv->ndev->name);\
716                 RET(-EINVAL);
717 }' drivers/net/tehuti.c 'report missing Free firmware'
718 clean_blob drivers/net/tehuti.c
719 clean_kconfig drivers/net/Kconfig 'TEHUTI'
720 clean_mk CONFIG_TEHUTI drivers/net/Makefile
721
722 announce TIGON3 - "Broadcom Tigon3"
723 clean_sed '
724 s,\&tg3\(Tso5\?\)\?Fw\(Text\|Rodata\|Data\)\[0\],NULL,;
725 /^static int tg3_load_firmware_cpu([^;]*$/,/^}/{
726   /^    err = 0;/{
727     i\
728         printk(KERN_ERR PFX "Missing Free firmware for %s, hoping it works anyway\\n",\
729                tp->dev->name);
730   }
731 }' drivers/net/tg3.c 'report missing Free firmware, proceed without it'
732 clean_blob drivers/net/tg3.c
733 clean_kconfig drivers/net/Kconfig 'TIGON3'
734 clean_mk CONFIG_TIGON3 drivers/net/Makefile
735
736 announce TYPHOON - "3cr990 series Typhoon"
737 clean_blob drivers/net/typhoon-firmware.h
738 clean_sed '
739 /^typhoon_download_firmware([^;]*$/,/^}/{
740   /typhoon_firmware_image/{
741     i\
742         printk(KERN_ERR "%s: Missing Free firmware\\n", tp->name);\
743         err = -EINVAL;\
744         goto err_out;
745     d;
746   }
747 }' drivers/net/typhoon.c 'report missing Free firmware'
748 clean_kconfig drivers/net/Kconfig 'TYPHOON'
749 clean_mk CONFIG_TYPHOON drivers/net/Makefile
750
751 # appletalk
752
753 announce COPS - "COPS LocalTalk PC"
754 clean_sed '
755 /sizeof(\(ff\|lt\)drv_code)/{
756   i\
757                 printk(KERN_INFO "%s: Missing Free firmware.\\n", dev->name);\
758                 return;
759 }
760 /\(ff\|lt\)drv_code/d;
761 ' drivers/net/appletalk/cops.c 'report missing Free firmware'
762 clean_blob drivers/net/appletalk/cops.c
763 clean_file drivers/net/appletalk/cops_ffdrv.h
764 clean_file drivers/net/appletalk/cops_ltdrv.h
765 clean_kconfig drivers/net/appletalk/Kconfig 'COPS'
766 clean_mk CONFIG_COPS drivers/net/appletalk/Makefile
767
768 # hamradio
769
770 announce YAM - "YAM driver for AX.25"
771 clean_file drivers/net/hamradio/yam1200.h
772 clean_file drivers/net/hamradio/yam9600.h
773 clean_sed '
774 /add_mcs(bits_\(12\|96\)00, bitrate)/{
775   i\
776                 printk(KERN_ERR "yam: Missing Free firmware\\n");
777   s:add_mcs(bits_\(12\|96\)00, bitrate):NULL:
778 }' drivers/net/hamradio/yam.c 'report missing Free firmware'
779 clean_blob drivers/net/hamradio/yam.c
780 clean_kconfig drivers/net/hamradio/Kconfig 'YAM'
781 clean_mk CONFIG_YAM drivers/net/hamradio/Makefile
782
783 # irda
784
785 announce USB_IRDA - "IrDA USB dongles"
786 reject_firmware drivers/net/irda/irda-usb.c
787 clean_blob drivers/net/irda/irda-usb.c
788 clean_kconfig drivers/net/irda/Kconfig 'USB_IRDA'
789 clean_mk CONFIG_USB_IRDA drivers/net/irda/Makefile
790
791 # pcmcia
792
793 announce PCMCIA_SMC91C92 - "SMC 91Cxx PCMCIA"
794 clean_blob drivers/net/pcmcia/ositech.h
795 clean_sed '
796 /^\(static int \)\?osi_setup([^;]*$/,/^}$/{
797   s/^\(.*\)[/][*] Download.*firmware [*][/]/\1printk(KERN_ERR "%s: Missing Free firmware\\n", dev->name);\n\1rc = -EINVAL;\n\1goto free_cfg_mem;\n&/
798 }' drivers/net/pcmcia/smc91c92_cs.c 'report missing Free firmware'
799 clean_sed '
800 /^\(static int \)\?smc91c92_resume([^;]*$/,/^}$/{
801   s/^\(.*\)[/][*] Download.*firmware [*][/]/\1printk(KERN_ERR "%s: Missing Free firmware\\n", dev->name);\n\1return -EINVAL;\n&/
802 }' drivers/net/pcmcia/smc91c92_cs.c 'report another missing Free firmware'
803 clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_SMC91C92'
804 clean_mk CONFIG_PCMCIA_SMC91C92 drivers/net/pcmcia/Makefile
805
806 announce PCCARD - "PCCard (PCMCIA/CardBus) support"
807 reject_firmware drivers/pcmcia/ds.c
808 clean_blob drivers/pcmcia/ds.c
809 clean_kconfig drivers/pcmcia/Kconfig 'PCCARD'
810 clean_mk CONFIG_PCCARD drivers/pcmcia/Makefile
811
812 announce PCMCIA_3C574 - "3Com 3c574 PCMCIA support"
813 clean_blob drivers/net/pcmcia/3c574_cs.c
814 clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_3C574'
815 clean_mk CONFIG_PCMCIA_3C574 drivers/net/pcmcia/Makefile
816
817 announce PCMCIA_3C589 - "3Com 3c589 PCMCIA support"
818 clean_blob drivers/net/pcmcia/3c589_cs.c
819 clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_3C589'
820 clean_mk CONFIG_PCMCIA_3C589 drivers/net/pcmcia/Makefile
821
822 announce PCMCIA_PCNET - "NE2000 compatible PCMCIA support"
823 clean_blob drivers/net/pcmcia/pcnet_cs.c
824 clean_kconfig drivers/net/pcmcia/Kconfig 'PCMCIA_PCNET'
825 clean_mk CONFIG_PCMCIA_PCNET drivers/net/pcmcia/Makefile
826
827 announce SERIAL_8250_CS - "8250/16550 PCMCIA device support"
828 clean_blob drivers/serial/serial_cs.c
829 clean_kconfig drivers/serial/Kconfig 'SERIAL_8250_CS'
830 clean_mk CONFIG_SERIAL_8250_CS drivers/serial/Makefile
831
832 # tokenring
833
834 announce 3C359 - "3Com 3C359 Token Link Velocity XL adapter"
835 clean_file drivers/net/tokenring/3c359_microcode.h
836 clean_sed '
837 /^\(static int \)\?xl_hw_reset([^;]*$/,/^}/{
838   /printk.*Uploading Microcode/i\
839                 printk(KERN_ERR "%s: Missing Free firmware\\n", dev->name);\
840                 return -EINVAL;
841 }' drivers/net/tokenring/3c359.c 'report missing Free firmware'
842 clean_blob drivers/net/tokenring/3c359.c
843 clean_kconfig drivers/net/tokenring/Kconfig '3C359'
844 clean_mk CONFIG_3C359 drivers/net/tokenring/Makefile
845
846 announce SMCTR - "SMC ISA/MCA adapter"
847 drop_fw_file firmware/tr_smctr.bin.ihex firmware/tr_smctr.bin
848 reject_firmware drivers/net/tokenring/smctr.c
849 clean_blob drivers/net/tokenring/smctr.c
850 clean_kconfig drivers/net/tokenring/Kconfig 'SMCTR'
851 clean_mk CONFIG_SMCTR drivers/net/tokenring/Makefile
852
853 announce TMS380TR - "Generic TMS380 Token Ring ISA/PCI adapter support"
854 reject_firmware drivers/net/tokenring/tms380tr.c
855 clean_blob drivers/net/tokenring/tms380tr.c
856 clean_kconfig drivers/net/tokenring/Kconfig 'TMS380TR'
857 clean_mk CONFIG_TMS380TR drivers/net/tokenring/Makefile
858
859 # usb
860
861 announce USB_KAWETH - "USB KLSI KL5USB101-based ethernet device support"
862 drop_fw_file firmware/kaweth/new_code.bin.ihex firmware/kaweth/new_code.bin
863 drop_fw_file firmware/kaweth/new_code_fix.bin.ihex firmware/kaweth/new_code_fix.bin
864 drop_fw_file firmware/kaweth/trigger_code.bin.ihex firmware/kaweth/trigger_code.bin
865 drop_fw_file firmware/kaweth/trigger_code_fix.bin.ihex firmware/kaweth/trigger_code_fix.bin
866 reject_firmware drivers/net/usb/kaweth.c
867 clean_blob drivers/net/usb/kaweth.c
868 clean_kconfig drivers/net/usb/Kconfig 'USB_KAWETH'
869 clean_mk CONFIG_USB_KAWETH drivers/net/usb/Makefile
870
871 # wireless
872
873 announce ATMEL "Atmel at76c50x chipset  802.11b support"
874 reject_firmware drivers/net/wireless/atmel.c
875 clean_blob drivers/net/wireless/atmel.c
876 clean_kconfig drivers/net/wireless/Kconfig 'ATMEL'
877 clean_mk CONFIG_ATMEL drivers/net/wireless/Makefile
878
879 announce B43 - "Broadcom 43xx wireless support (mac80211 stack)"
880 reject_firmware drivers/net/wireless/b43/main.c
881 # Major portions of firwmare filenames not deblobbed.
882 clean_blob drivers/net/wireless/b43/main.c
883 clean_kconfig drivers/net/wireless/b43/Kconfig 'B43'
884 clean_mk CONFIG_B43 drivers/net/wireless/b43/Makefile
885
886 announce B43LEGACY - "Broadcom 43xx-legacy wireless support (mac80211 stack)"
887 reject_firmware drivers/net/wireless/b43legacy/main.c
888 # Major portions of firwmare filenames not deblobbed.
889 clean_blob drivers/net/wireless/b43legacy/main.c
890 clean_kconfig drivers/net/wireless/b43legacy/Kconfig 'B43LEGACY'
891 clean_mk CONFIG_B43LEGACY drivers/net/wireless/b43legacy/Makefile
892
893 announce HERMES - "Hermes chipset 802.11b support (Orinoco/Prism2/Symbol)"
894 reject_firmware drivers/net/wireless/orinoco.c
895 clean_blob drivers/net/wireless/orinoco.c
896 clean_kconfig drivers/net/wireless/Kconfig 'HERMES'
897 clean_mk CONFIG_HERMES drivers/net/wireless/Makefile
898
899 announce IPW2100 - "Intel PRO/Wireless 2100 Network Connection"
900 reject_firmware drivers/net/wireless/ipw2100.c
901 clean_blob drivers/net/wireless/ipw2100.c
902 clean_kconfig drivers/net/wireless/Kconfig 'IPW2100'
903 clean_mk CONFIG_IPW2100 drivers/net/wireless/Makefile
904
905 announce IPW2200 - "Intel PRO/Wireless 2200BG and 2915ABG Network Connection"
906 reject_firmware drivers/net/wireless/ipw2200.c
907 clean_blob drivers/net/wireless/ipw2200.c
908 clean_kconfig drivers/net/wireless/Kconfig 'IPW2200'
909 clean_mk CONFIG_IPW2200 drivers/net/wireless/Makefile
910
911 announce IWL3945 - "Intel PRO/Wireless 3945ABG/BG Network Connection"
912 reject_firmware drivers/net/wireless/iwlwifi/iwl3945-base.c
913 clean_blob drivers/net/wireless/iwlwifi/iwl3945-base.c
914 clean_kconfig drivers/net/wireless/iwlwifi/Kconfig 'IWL3945'
915 clean_mk CONFIG_IWL3945 drivers/net/wireless/iwlwifi/Makefile
916
917 announce IWLAGN - "Intel Wireless WiFi Next Gen AGN"
918 reject_firmware drivers/net/wireless/iwlwifi/iwl-agn.c
919 clean_blob drivers/net/wireless/iwlwifi/iwl-agn.c
920 clean_kconfig drivers/net/wireless/iwlwifi/Kconfig 'IWLAGN'
921 clean_mk CONFIG_IWLAGN drivers/net/wireless/iwlwifi/Makefile
922
923 announce IWL4965 - "Intel Wireless WiFi 4965AGN"
924 clean_blob drivers/net/wireless/iwlwifi/iwl-4965.c
925 clean_kconfig drivers/net/wireless/iwlwifi/Kconfig 'IWL4965'
926 clean_mk CONFIG_IWL4965 drivers/net/wireless/iwlwifi/Makefile
927
928 announce IWL5000 - "Intel Wireless WiFi 5000AGN"
929 clean_blob drivers/net/wireless/iwlwifi/iwl-5000.c
930 clean_kconfig drivers/net/wireless/iwlwifi/Kconfig 'IWL5000'
931 clean_mk CONFIG_IWL5000 drivers/net/wireless/iwlwifi/Makefile
932
933 announce LIBERTAS_CS - "Marvell Libertas 8385 CompactFlash 802.11b/g cards"
934 reject_firmware drivers/net/wireless/libertas/if_cs.c
935 clean_blob drivers/net/wireless/libertas/if_cs.c
936 clean_kconfig drivers/net/wireless/Kconfig 'LIBERTAS_CS'
937 clean_mk CONFIG_LIBERTAS_CS drivers/net/wireless/libertas/Makefile
938
939 announce LIBERTAS_SDIO - "Marvell Libertas 8385 and 8686 SDIO 802.11b/g cards"
940 reject_firmware drivers/net/wireless/libertas/if_sdio.c
941 clean_blob drivers/net/wireless/libertas/if_sdio.c
942 clean_kconfig drivers/net/wireless/Kconfig 'LIBERTAS_SDIO'
943 clean_mk CONFIG_LIBERTAS_SDIO drivers/net/wireless/libertas/Makefile
944
945 announce LIBERTAS_USB - "Marvell Libertas 8388 USB 802.11b/g cards"
946 reject_firmware drivers/net/wireless/libertas/if_usb.c
947 clean_blob drivers/net/wireless/libertas/if_usb.c
948 clean_kconfig drivers/net/wireless/Kconfig 'LIBERTAS_USB'
949 clean_mk CONFIG_LIBERTAS_USB drivers/net/wireless/libertas/Makefile
950
951 announce LIBERTAS_THINFIRM_USB - "Marvell Libertas 8388 USB 802.11b/g cards with thin firmware"
952 reject_firmware drivers/net/wireless/libertas_tf/if_usb.c
953 clean_blob drivers/net/wireless/libertas_tf/if_usb.c
954 clean_kconfig drivers/net/wireless/Kconfig 'LIBERTAS_THINFIRM_USB'
955 clean_mk CONFIG_LIBERTAS_THINFIRM_USB drivers/net/wireless/libertas_tf/Makefile
956
957 announce P54_PCI - "Prism54 PCI support"
958 reject_firmware drivers/net/wireless/p54/p54pci.c
959 clean_blob drivers/net/wireless/p54/p54pci.c
960 clean_kconfig drivers/net/wireless/p54/Kconfig 'P54_PCI'
961 clean_mk CONFIG_P54_PCI drivers/net/wireless/p54/Makefile
962
963 announce P54_USB - "Prism54 USB support"
964 reject_firmware drivers/net/wireless/p54/p54usb.c
965 clean_blob drivers/net/wireless/p54/p54usb.c
966 clean_kconfig drivers/net/wireless/p54/Kconfig 'P54_USB'
967 clean_mk CONFIG_P54_USB drivers/net/wireless/p54/Makefile
968
969 announce PRISM54 - 'Intersil Prism GT/Duette/Indigo PCI/Cardbus'
970 reject_firmware drivers/net/wireless/prism54/islpci_dev.c
971 clean_blob drivers/net/wireless/prism54/islpci_dev.c
972 clean_kconfig drivers/net/wireless/Kconfig 'PRISM54'
973 clean_mk CONFIG_PRISM54 drivers/net/wireless/prism54/Makefile
974
975 announce RT2X00_LIB_FIRMWARE - "Ralink driver firmware support"
976 reject_firmware drivers/net/wireless/rt2x00/rt2x00firmware.c
977 clean_blob drivers/net/wireless/rt2x00/rt2x00firmware.c
978 clean_kconfig drivers/net/wireless/rt2x00/Kconfig 'RT2X00_LIB_FIRMWARE'
979 clean_mk CONFIG_RT2X00_LIB_FIRMWARE drivers/net/wireless/rt2x00/Makefile
980
981 announce RT61PCI - "Ralink rt2501/rt61 (PCI/PCMCIA) support"
982 clean_blob drivers/net/wireless/rt2x00/rt61pci.h
983 clean_blob drivers/net/wireless/rt2x00/rt61pci.c
984 clean_kconfig drivers/net/wireless/rt2x00/Kconfig 'RT61PCI'
985 clean_mk CONFIG_RT61PCI drivers/net/wireless/rt2x00/Makefile
986
987 announce RT73USB - "Ralink rt2501/rt73 (USB) support"
988 clean_blob drivers/net/wireless/rt2x00/rt73usb.h
989 clean_blob drivers/net/wireless/rt2x00/rt73usb.c
990 clean_kconfig drivers/net/wireless/rt2x00/Kconfig 'RT73USB'
991 clean_mk CONFIG_RT73USB drivers/net/wireless/rt2x00/Makefile
992
993 announce USB_ZD1201 - "USB ZD1201 based Wireless device support"
994 reject_firmware drivers/net/wireless/zd1201.c
995 clean_blob drivers/net/wireless/zd1201.c
996 clean_kconfig drivers/net/wireless/Kconfig 'USB_ZD1201'
997 clean_mk CONFIG_USB_ZD1201 drivers/net/wireless/Makefile
998
999 announce ZD1211RW - "ZyDAS ZD1211/ZD1211B USB-wireless support"
1000 reject_firmware drivers/net/wireless/zd1211rw/zd_usb.c
1001 clean_blob drivers/net/wireless/zd1211rw/zd_usb.c
1002 clean_kconfig drivers/net/wireless/zd1211rw/Kconfig 'ZD1211RW'
1003 clean_mk CONFIG_ZD1211RW drivers/net/wireless/zd1211rw/Makefile
1004
1005 # bluetooth
1006
1007 announce BT_HCIBCM203X - "HCI BCM203x USB driver"
1008 reject_firmware drivers/bluetooth/bcm203x.c
1009 clean_blob drivers/bluetooth/bcm203x.c
1010 clean_kconfig drivers/bluetooth/Kconfig 'BT_HCIBCM203X'
1011 clean_mk CONFIG_BT_HCIBCM203X drivers/bluetooth/Makefile
1012
1013 announce BT_HCIBFUSB - "HCI BlueFRITZ! USB driver"
1014 reject_firmware drivers/bluetooth/bfusb.c
1015 clean_blob drivers/bluetooth/bfusb.c
1016 clean_kconfig drivers/bluetooth/Kconfig 'BT_HCIBFUSB'
1017 clean_mk CONFIG_BT_HCIBFUSB drivers/bluetooth/Makefile
1018
1019 announce BT_HCIBT3C - "HCI BT3C (PC Card) driver"
1020 reject_firmware drivers/bluetooth/bt3c_cs.c
1021 clean_blob drivers/bluetooth/bt3c_cs.c
1022 clean_kconfig drivers/bluetooth/Kconfig 'BT_HCIBT3C'
1023 clean_mk CONFIG_BT_HCIBT3C drivers/bluetooth/Makefile
1024
1025
1026 ########################
1027 # Removed SCSI Drivers #
1028 ########################
1029
1030 announce SCSI_QLOGICPTI - "PTI Qlogic, ISP Driver"
1031 clean_file drivers/scsi/qlogicpti_asm.c
1032 clean_sed '
1033 /^static int __devinit qlogicpti_load_firmware([^;]*$/,/^}$/{
1034   /[&]sbus_risc_code01/{
1035     i\
1036         printk(KERN_ERR "qlogicpti%d: Missing Free firmware\\n", qpti->qpti_id);\
1037         return -EINVAL;
1038   }
1039   s,[&]sbus_risc_code01\[0\],NULL,
1040   s,sbus_risc_code_length01,0,
1041 }' drivers/scsi/qlogicpti.c 'report missing Free firmware'
1042 clean_blob drivers/scsi/qlogicpti.c
1043 clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGICPTI'
1044 clean_mk CONFIG_SCSI_QLOGICPTI drivers/scsi/Makefile
1045
1046 announce SCSI_ADVANSYS - "AdvanSys SCSI"
1047 clean_sed '
1048 /ASC_DBG.*_asc_mcode_chksum);/d;
1049 /^\(static ASC_CNT \)\?AscLoadMicroCode([^;]*$/,/^}$/{
1050   /^}$/{
1051     p;
1052     i\
1053 #define AscLoadMicroCode(x1,x2,x3,x4) ((x1),(x2),(x3),(x4),printk(KERN_ERR "advansys: Missing Free firmware\\n"), -1)
1054     d;
1055   }
1056 }
1057 /^\(static int \)\?AdvLoadMicrocode([^;]*$/,/^}$/{
1058   /^}$/{
1059     p;
1060     i\
1061 #define AdvLoadMicrocode(x1,x2,x3,x4,x5) ((x1),(x2),(x3),(x4),(x5),printk(KERN_ERR "advansys: Missing Free firmware\\n"), ASC_IERR_MCODE_CHKSUM)
1062     d;
1063   }
1064 }
1065 s/\([   (]\)_\(asc_mcode\|adv_asc3\(550\|8C\(08\|16\)00\)\)_buf,/\1NULL,/;
1066 s/\([   ]\)_\(asc_mcode\|adv_asc3\(550\|8C\(08\|16\)00\)\)_size\([,)]\)/\1(unsigned short)0\5/;
1067 s/\([   ]\)_\(asc_mcode\|adv_asc3\(550\|8C\(08\|16\)00\)\)_chksum\([,)]\)/\1(ADV_DCNT)0\5/;
1068 ' drivers/scsi/advansys.c 'report missing Free firmware'
1069 clean_blob drivers/scsi/advansys.c
1070 clean_kconfig drivers/scsi/Kconfig 'SCSI_ADVANSYS'
1071 clean_mk CONFIG_SCSI_ADVANSYS drivers/scsi/Makefile
1072
1073 announce SCSI_QLOGIC_1280 - "Qlogic QLA 1240/1x80/1x160 SCSI"
1074 clean_blob drivers/scsi/ql1280_fw.h
1075 clean_blob drivers/scsi/ql1040_fw.h
1076 clean_blob drivers/scsi/ql12160_fw.h
1077 clean_sed '
1078 s,[&]\(fw12\(160\|80e\)i\|risc\(_code\)\?\)_\(code01\[0\]\|length01\),NULL,g;
1079 /^qla1280_load_firmware\(_pio\)\?([^;]*$/,/^}$/{
1080   /risc_code_size = [*]/{
1081     i\
1082         if (!risc_code_address) {\
1083                 printk(KERN_ERR "scsi(%li): Missing Free firmware\\n", ha->host_no);\
1084                 return -EINVAL;\
1085         }
1086   }
1087 }
1088 /^qla1280_load_firmware_dma([^;]*$/,/^}$/{
1089   /risc_code_size = [*]/{
1090     i\
1091         if (!risc_code_address) {\
1092                 printk(KERN_ERR "scsi(%li): Missing Free firmware\\n", ha->host_no);\
1093                 err = -EINVAL;\
1094                 goto out;\
1095         }
1096   }
1097 }' drivers/scsi/qla1280.c 'report missing Free firmware'
1098 clean_kconfig drivers/scsi/Kconfig 'SCSI_QLOGIC_1280'
1099 clean_mk CONFIG_SCSI_QLOGIC_1280 drivers/scsi/Makefile
1100
1101
1102 #######################
1103 # Removed USB Drivers #
1104 #######################
1105
1106 # misc
1107
1108 announce USB_EMI26 - "EMI 2|6 USB Audio interface"
1109 # These files are not under the GPL, better remove them all.
1110 drop_fw_file firmware/emi26/bitstream.HEX firmware/emi26/bitstream.fw
1111 drop_fw_file firmware/emi26/firmware.HEX firmware/emi26/firmware.fw
1112 drop_fw_file firmware/emi26/loader.HEX firmware/emi26/loader.fw
1113 reject_firmware drivers/usb/misc/emi26.c
1114 clean_blob drivers/usb/misc/emi26.c
1115 clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI26'
1116 clean_mk CONFIG_USB_EMI26 drivers/usb/misc/Makefile
1117
1118 announce USB_EMI62 - "EMI 6|2m USB Audio interface"
1119 # These files are probably not under the GPL, better remove them all.
1120 drop_fw_file firmware/emi62/bitstream.HEX firmware/emi62/bitstream.fw
1121 drop_fw_file firmware/emi62/loader.HEX firmware/emi62/loader.fw
1122 drop_fw_file firmware/emi62/midi.HEX firmware/emi62/midi.fw
1123 drop_fw_file firmware/emi62/spdif.HEX firmware/emi62/spdif.fw
1124 reject_firmware drivers/usb/misc/emi62.c
1125 clean_blob drivers/usb/misc/emi62.c
1126 clean_kconfig drivers/usb/misc/Kconfig 'USB_EMI62'
1127 clean_mk CONFIG_USB_EMI62 drivers/usb/misc/Makefile
1128
1129 # serial
1130
1131 announce USB_SERIAL_KEYSPAN - "USB Keyspan USA-xxx Serial Driver"
1132 drop_fw_file firmware/keyspan/mpr.HEX firmware/keyspan/mpr.fw
1133 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_MPR'
1134 drop_fw_file firmware/keyspan/usa18x.HEX firmware/keyspan/usa18x.fw
1135 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA18X'
1136 drop_fw_file firmware/keyspan/usa19.HEX firmware/keyspan/usa19.fw
1137 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19'
1138 drop_fw_file firmware/keyspan/usa19qi.HEX firmware/keyspan/usa19qi.fw
1139 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QI'
1140 drop_fw_file firmware/keyspan/usa19qw.HEX firmware/keyspan/usa19qw.fw
1141 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19QW'
1142 drop_fw_file firmware/keyspan/usa19w.HEX firmware/keyspan/usa19w.fw
1143 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA19W'
1144 drop_fw_file firmware/keyspan/usa28.HEX firmware/keyspan/usa28.fw
1145 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28'
1146 drop_fw_file firmware/keyspan/usa28xa.HEX firmware/keyspan/usa28xa.fw
1147 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XA'
1148 drop_fw_file firmware/keyspan/usa28xb.HEX firmware/keyspan/usa28xb.fw
1149 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28XB'
1150 drop_fw_file firmware/keyspan/usa28x.HEX firmware/keyspan/usa28x.fw
1151 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA28X'
1152 drop_fw_file firmware/keyspan/usa49w.HEX firmware/keyspan/usa49w.fw
1153 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49W'
1154 drop_fw_file firmware/keyspan/usa49wlc.HEX firmware/keyspan/usa49wlc.fw
1155 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN_USA49WLC'
1156 reject_firmware drivers/usb/serial/keyspan.c
1157 clean_blob drivers/usb/serial/keyspan.c
1158 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_KEYSPAN'
1159 clean_mk CONFIG_USB_SERIAL_KEYSPAN drivers/usb/serial/Makefile
1160
1161 announce USB_SERIAL_KEYSPAN_PDA - "USB Keyspan PDA Single Port Serial Driver"
1162 clean_sed '
1163 s,request_ihex_firmware,/*KEYSPAN_PDA*/&,
1164 ' drivers/usb/serial/keyspan_pda.c 'accept Free firmware'
1165
1166 announce USB_SERIAL_EDGEPORT - "USB Inside Out Edgeport Serial Driver"
1167 clean_fw firmware/edgeport/boot.H16 firmware/edgeport/boot.fw
1168 clean_fw firmware/edgeport/boot2.H16 firmware/edgeport/boot2.fw
1169 clean_fw firmware/edgeport/down.H16 firmware/edgeport/down.fw
1170 clean_fw firmware/edgeport/down2.H16 firmware/edgeport/down2.fw
1171 reject_firmware drivers/usb/serial/io_edgeport.c
1172 clean_blob drivers/usb/serial/io_edgeport.c
1173 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT'
1174 clean_mk CONFIG_USB_SERIAL_EDGEPORT drivers/usb/serial/Makefile
1175
1176 announce USB_SERIAL_EDGEPORT_TI - "USB Inside Out Edgeport Serial Driver (TI devices)"
1177 clean_fw firmware/edgeport/down3.bin.ihex firmware/edgeport/down3.bin
1178 reject_firmware drivers/usb/serial/io_ti.c
1179 clean_blob drivers/usb/serial/io_ti.c
1180 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_EDGEPORT_TI'
1181 clean_mk CONFIG_USB_SERIAL_EDGEPORT_TI drivers/usb/serial/Makefile
1182
1183 announce USB_SERIAL_TI - "USB TI 3410/5052 Serial Driver"
1184 drop_fw_file firmware/ti_3410.fw.ihex firmware/ti_3410.fw
1185 drop_fw_file firmware/ti_5052.fw.ihex firmware/ti_5052.fw
1186 reject_firmware drivers/usb/serial/ti_usb_3410_5052.c
1187 clean_blob drivers/usb/serial/ti_usb_3410_5052.c
1188 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_TI'
1189 clean_mk CONFIG_USB_SERIAL_TI drivers/usb/serial/Makefile
1190
1191 announce USB_SERIAL_WHITEHEAT - "USB ConnectTech WhiteHEAT Serial Driver"
1192 clean_fw firmware/whiteheat.HEX firmware/whiteheat.fw
1193 clean_fw firmware/whiteheat_loader.HEX firmware/whiteheat_loader.fw
1194 clean_fw firmware/whiteheat_loader_debug.HEX firmware/whiteheat_loader_debug.fw
1195 reject_firmware drivers/usb/serial/whiteheat.c
1196 clean_blob drivers/usb/serial/whiteheat.c
1197 clean_kconfig drivers/usb/serial/Kconfig 'USB_SERIAL_WHITEHEAT'
1198 clean_mk CONFIG_USB_SERIAL_WHITEHEAT drivers/usb/serial/Makefile
1199
1200
1201 #########################
1202 # Removed Sound Drivers #
1203 #########################
1204
1205 announce SND_CS46XX - "Cirrus Logic (Sound Fusion) CS4280/CS461x/CS462x/CS463x"
1206 # This appears to have been extracted from some non-Free driver
1207 clean_file sound/pci/cs46xx/cs46xx_image.h
1208 # The following blobs are definitely extracted from non-Free drivers.
1209 clean_file sound/pci/cs46xx/imgs/cwc4630.h
1210 clean_file sound/pci/cs46xx/imgs/cwcasync.h
1211 clean_file sound/pci/cs46xx/imgs/cwcsnoop.h
1212 clean_sed '
1213 /^\(int \)\?snd_cs46xx_download_image([^;]*$/,/^}$/{
1214   /for.*BA1_MEMORY_COUNT/i\
1215 #if 0
1216   /^}$/{
1217     i\
1218 #else\
1219         snd_printk(KERN_ERR "cs46xx: Missing Free firmware\\n");\
1220         return -EINVAL;\
1221 #endif
1222   }
1223 }
1224 s/cs46xx_dsp_load_module(chip, [&]cwc\(4630\|async\|snoop\)_module)/(snd_printk(KERN_ERR "cs46xx: Missing Free firmware\\n"),-EINVAL)/
1225 ' sound/pci/cs46xx/cs46xx_lib.c 'report missing Free firmware'
1226 clean_blob sound/pci/cs46xx/cs46xx_lib.c
1227 clean_kconfig sound/pci/Kconfig 'SND_CS46XX'
1228 clean_mk 'CONFIG_SND_CS46XX' sound/pci/cs46xx/Makefile
1229
1230 announce SND_KORG1212 - "Korg 1212 IO"
1231 drop_fw_file firmware/korg/k1212.dsp.ihex firmware/korg/k1212.dsp
1232 reject_firmware sound/pci/korg1212/korg1212.c
1233 clean_blob sound/pci/korg1212/korg1212.c
1234 clean_kconfig sound/pci/Kconfig 'SND_KORG1212'
1235 clean_mk 'CONFIG_SND_KORG1212' sound/pci/korg1212/Makefile
1236
1237 announce SND_MAESTRO3 - "ESS Allegro/Maestro3"
1238 drop_fw_file firmware/ess/maestro3_assp_kernel.fw.ihex firmware/ess/maestro3_assp_kernel.fw
1239 drop_fw_file firmware/ess/maestro3_assp_minisrc.fw.ihex firmware/ess/maestro3_assp_minisrc.fw
1240 reject_firmware sound/pci/maestro3.c
1241 clean_blob sound/pci/maestro3.c
1242 clean_kconfig sound/pci/Kconfig 'SND_MAESTRO3'
1243 clean_mk 'CONFIG_SND_MAESTRO3' sound/pci/Makefile
1244
1245 announce SND_YMFPCI - "Yamaha YMF724/740/744/754"
1246 drop_fw_file firmware/yamaha/ds1_ctrl.fw.ihex firmware/yamaha/ds1_ctrl.fw
1247 drop_fw_file firmware/yamaha/ds1_dsp.fw.ihex firmware/yamaha/ds1_dsp.fw
1248 drop_fw_file firmware/yamaha/ds1e_ctrl.fw.ihex firmware/yamaha/ds1e_ctrl.fw
1249 reject_firmware sound/pci/ymfpci/ymfpci_main.c
1250 clean_blob sound/pci/ymfpci/ymfpci_main.c
1251 clean_kconfig sound/pci/Kconfig 'SND_YMFPCI'
1252 clean_mk 'CONFIG_SND_YMFPCI' sound/pci/ymfpci/Makefile
1253
1254 announce SND_SB16_CSP - "SB16 Advanced Signal Processor"
1255 drop_fw_file firmware/sb16/alaw_main.csp.ihex firmware/sb16/alaw_main.csp
1256 drop_fw_file firmware/sb16/mulaw_main.csp.ihex firmware/sb16/mulaw_main.csp
1257 drop_fw_file firmware/sb16/ima_adpcm_init.csp.ihex firmware/sb16/ima_adpcm_init.csp
1258 drop_fw_file firmware/sb16/ima_adpcm_capture.csp.ihex firmware/sb16/ima_adpcm_capture.csp
1259 drop_fw_file firmware/sb16/ima_adpcm_playback.csp.ihex firmware/sb16/ima_adpcm_playback.csp
1260 reject_firmware sound/isa/sb/sb16_csp.c
1261 clean_blob sound/isa/sb/sb16_csp.c
1262 clean_kconfig sound/isa/Kconfig 'SND_SB16_CSP'
1263 clean_mk 'CONFIG_SND_SB16_CSP' sound/isa/sb/Makefile
1264
1265 announce SND_WAVEFRONT - "Turtle Beach Maui,Tropez,Tropez+ (Wavefront)"
1266 clean_blob sound/isa/wavefront/yss225.c
1267 clean_sed '
1268 /firmware = &yss225_registers_firmware/i\
1269         snd_printk(KERN_ERR "FX: Missing Free firmware\\n");\
1270         err = -EINVAL;\
1271         goto out;
1272 ' sound/isa/wavefront/wavefront_fx.c 'report missing Free firmware'
1273 reject_firmware sound/isa/wavefront/wavefront_fx.c
1274 clean_blob sound/isa/wavefront/wavefront_fx.c
1275 reject_firmware sound/isa/wavefront/wavefront_synth.c
1276 clean_blob sound/isa/wavefront/wavefront_synth.c
1277 clean_kconfig sound/isa/Kconfig 'SND_WAVEFRONT'
1278 clean_mk 'CONFIG_SND_WAVEFRONT' sound/isa/wavefront/Makefile
1279
1280
1281 ###########################
1282 # Removed Staging Drivers #
1283 ###########################
1284
1285 # ME4000 - Meilhaus ME-4000 I/O board
1286 clean_file drivers/staging/me4000/me4000_firmware.h
1287 clean_file drivers/staging/me4000/me4610_firmware.h
1288 clean_kconfig drivers/staging/me4000/Kconfig 'ME4000'
1289 clean_mk CONFIG_ME4000 drivers/staging/me4000/Makefile
1290
1291 # SLICOSS - Alacritech Gigabit IS-NIC cards
1292 clean_blob drivers/staging/slicoss/gbdownload.h
1293 clean_blob drivers/staging/slicoss/oasisdownload.h
1294 clean_blob drivers/staging/slicoss/oasisdbgdownload.h
1295 clean_blob drivers/staging/slicoss/gbrcvucode.h
1296 clean_blob drivers/staging/slicoss/oasisrcvucode.h
1297 clean_kconfig drivers/staging/slicoss/Kconfig 'SLICOSS'
1298 clean_mk CONFIG_SLICOSS drivers/staging/slicoss/Makefile
1299
1300 # SXG - Alacritech SLIC Technology Non-Accelerated 10Gbe cards
1301 clean_blob drivers/staging/sxg/saharadbgdownload.h
1302 clean_blob drivers/staging/sxg/sxgphycode.h
1303 clean_kconfig drivers/staging/sxg/Kconfig 'SXG'
1304 clean_mk CONFIG_SXG drivers/staging/sxg/Makefile
1305
1306
1307 exit 0