Lines Matching +full:sub +full:- +full:components

2 # SPDX-License-Identifier: GPL-2.0-or-later
11 @components = ( "sp8870", "sp887x", "tda10045", "tda10046",
26 for ($i=0; $i < scalar(@components); $i++) {
27 if ($cid eq $components[$i]) {
46 # ---------------------------------------------------------------
47 # Firmware-specific extraction subroutines
49 sub sp8870 {
53 my $outfile = "dvb-fe-sp8870.fw";
66 sub sp887x {
71 my $outfile = "dvb-fe-sp887x.fw";
86 sub tda10045 {
90 my $outfile = "dvb-fe-tda10045.fw";
104 sub tda10046 {
108 my $outfile = "dvb-fe-tda10046.fw";
122 sub tda10046lifeview {
126 my $outfile = "dvb-fe-tda10046.fw";
140 sub av7110 {
141 my $sourcefile = "dvb-ttpci-01.fw-261d";
144 my $outfile = "dvb-ttpci-01.fw";
155 sub dec2000t {
159 my $outfile = "dvb-ttusb-dec-2000t.fw";
172 sub dec2540t {
176 my $outfile = "dvb-ttusb-dec-2540t.fw";
189 sub dec3000s {
193 my $outfile = "dvb-ttusb-dec-3000s.fw";
205 sub opera1{
209 my $fwfile1="dvb-usb-opera1-fpga-01.fw";
210 my $fwfile2="dvb-usb-opera-01.fw";
211 extract("2830SCap2.sys", 0x62e8, 55024, "$tmpdir/opera1-fpga.fw");
212 extract("2830SLoad2.sys",0x3178,0x3685-0x3178,"$tmpdir/fw1part1");
213 extract("2830SLoad2.sys",0x0980,0x3150-0x0980,"$tmpdir/fw1part2");
214 delzero("$tmpdir/fw1part1","$tmpdir/fw1part1-1");
215 delzero("$tmpdir/fw1part2","$tmpdir/fw1part2-1");
216 verify("$tmpdir/fw1part1-1","5e0909858fdf0b5b09ad48b9fe622e70");
217 verify("$tmpdir/fw1part2-1","d6e146f321427e931df2c6fcadac37a1");
218 verify("$tmpdir/opera1-fpga.fw","0f8133f5e9051f5f3c1928f7e5a1b07d");
229 appendfile(FW,"$tmpdir/fw1part1-1");
234 appendfile(FW,"$tmpdir/fw1part2-1");
239 copy ("$tmpdir/opera1-fpga.fw",$fwfile1);
245 sub vp7041 {
247 my $url = "http://www.twinhan.com/files/driver/USB-Ter/$sourcefile";
249 my $outfile = "dvb-vp7041-2.422.fw";
279 sub vp7049 {
280 my $fwfile = "dvb-usb-vp7049-0.95.fw";
281 … = "http://ao2.it/sites/default/files/blog/2012/11/06/linux-support-digicom-digitune-s-vp7049-udtt…
292 sub dibusb {
293 my $url = "https://linuxtv.org/downloads/firmware/dvb-usb-dibusb-5.0.0.11.fw";
294 my $outfile = "dvb-dibusb-5.0.0.11.fw";
305 sub nxt2002 {
306 my $sourcefile = "Technisat_DVB-PC_4_4_COMPACT.zip";
309 my $outfile = "dvb-fe-nxt2002.fw";
322 sub nxt2004 {
324 my $url = "http://www.avermedia-usa.com/support/Drivers/$sourcefile";
326 my $outfile = "dvb-fe-nxt2004.fw";
339 sub or51211 {
340 my $fwfile = "dvb-fe-or51211.fw";
352 sub cx231xx {
353 my $fwfile = "v4l-cx231xx-avcore-01.fw";
365 sub cx18 {
369 'v4l-cx23418-apu.fw' => '588f081b562f5c653a3db1ad8f65939a',
370 'v4l-cx23418-cpu.fw' => 'b6c7ed64bc44b1a6e0840adaeac39d79',
371 'v4l-cx23418-dig.fw' => '95bc688d3e7599fd5800161e9971cc55',
388 sub mpc718 {
390 my $url = "ftp://ftp.work.acer-euro.com/desktop/aspire_idea510/vista/Drivers/$archive";
391 my $fwfile = "dvb-cx18-mpc718-mt352.fw";
411 # register-value pairs that end in 0x5d 0x01 which is a "TUNER GO"
413 # Pull out the middle run (because it's easy) of register-value
434 die "Couldn't find valid register-value sequence in $sourcefile for $fwfile\n";
439 sub cx23885 {
443 'v4l-cx23885-avcore-01.fw' => 'a9f8f5d901a7fb42f552e1ee6384f3bb',
444 'v4l-cx23885-enc.fw' => 'a9f8f5d901a7fb42f552e1ee6384f3bb',
461 sub pvrusb2 {
465 'v4l-cx25840.fw' => 'dadb79e9904fc8af96e8111d9cb59320',
482 sub or51132_qam {
483 my $fwfile = "dvb-fe-or51132-qam.fw";
495 sub or51132_vsb {
496 my $fwfile = "dvb-fe-or51132-vsb.fw";
508 sub bluebird {
509 my $url = "https://linuxtv.org/download/dvb/firmware/dvb-usb-bluebird-01.fw";
510 my $outfile = "dvb-usb-bluebird-01.fw";
521 sub af9015 {
525 my $outfile = "dvb-usb-af9015.fw";
548 $fwlength -= $rcount + 8;
555 sub ngene {
561 my $url2 = "http://l4m-daten.de/downloads/firmware/dvb-s2/linux/all/";
579 sub az6027{
580 my $firmware = "dvb-usb-az6027-03.fw";
588 sub lme2510_lg {
591 my $outfile = "dvb-usb-lme2510-lg.fw";
602 sub lme2510c_s7395 {
605 my $outfile = "dvb-usb-lme2510c-s7395.fw";
616 sub lme2510c_s7395_old {
619 my $outfile = "dvb-usb-lme2510c-s7395.fw";
630 sub drxk {
631 my $url = "http://l4m-daten.de/files/";
648 sub drxk_hauppauge_hvr930c {
650 my $zipfile = "HVR-9x0_5_10_325_28153_SIGNED.zip";
653 my $drvfile = "HVR-900/emOEM.sys";
654 my $fwfile = "dvb-usb-hauppauge-hvr930c-drxk.fw";
666 sub drxk_terratec_h5 {
669 my $fwfile = "dvb-usb-terratec-h5-drxk.fw";
679 sub drxk_terratec_htc_stick {
685 my $fwfile = "dvb-usb-terratec-htc-stick-drxk.fw";
697 sub it9135 {
699 my $file1 = "dvb-usb-it9135-01.zip";
700 my $fwfile1 = "dvb-usb-it9135-01.fw";
702 my $file2 = "dvb-usb-it9135-02.zip";
703 my $fwfile2 = "dvb-usb-it9135-02.fw";
719 sub tda10071 {
723 my $fwfile = "dvb-fe-tda10071.fw";
736 sub drxk_pctv {
740 my $fwfile = "dvb-demod-drxk-pctv.fw";
753 sub sms1xxx_hcw {
756 'sms1xxx-hcw-55xxx-dvbt-01.fw' => "afb6f9fb9a71d64392e8564ef9577e5a",
757 'sms1xxx-hcw-55xxx-dvbt-02.fw' => "b44807098ba26e52cbedeadc052ba58f",
758 'sms1xxx-hcw-55xxx-isdbt-02.fw' => "dae934eeea85225acbd63ce6cfe1c9e4",
775 sub si2165 {
779 my $fwfile = "dvb-demod-si2165.fw";
787 extract("$tmpdir/Driver10/Hcw10bda.sys", 0x80788, 0x81E08-0x80788, "$tmpdir/fw1");
789 delzero("$tmpdir/fw1","$tmpdir/fw1-1");
806 # ---------------------------------------------------------------
809 sub checkstandard {
811 …die "This firmware requires the unzip command - see ftp://ftp.info-zip.org/pub/infozip/UnZip.html\…
814 die "This firmware requires the md5sum command - see http://www.gnu.org/software/coreutils/\n";
817 die "This firmware requires the wget command - see http://wget.sunsite.dk/\n";
821 sub checkunshield {
823 die "This firmware requires the unshield command - see http://sourceforge.net/projects/synce/\n";
827 sub wgetfile {
830 if (! -f $sourcefile) {
831 system("wget -O \"$sourcefile\" \"$url\"") and die "wget failed - unable to download firmware";
835 sub unzip {
838 $status = system("unzip -q -o -d \"$todir\" \"$sourcefile\" 2>/dev/null" );
840 die ("unzip failed - unable to extract firmware");
844 sub unshield {
847 …system("unshield x -d \"$todir\" \"$sourcefile\" > /dev/null" ) and die ("unshield failed - unable…
850 sub verify {
856 $testhash =~ /([a-zA-Z0-9]*)/;
862 sub copy {
865 system("cp -f \"$from\" \"$to\"") and die ("cp failed");
868 sub extract {
883 $length -= $rcount;
889 sub appendfile {
902 sub delzero{
921 sub syntax() {
923 print STDERR "Supported components:\n";
924 @components = sort @components;
925 for($i=0; $i < scalar(@components); $i++) {
926 print STDERR "\t" . $components[$i] . "\n";