opera1.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) opera1.c (fe63a1a6216749fd9d9c5b52d52b75240f9d20f3)
1/* DVB USB framework compliant Linux driver for the Opera1 DVB-S Card
2*
3* Copyright (C) 2006 Mario Hlawitschka (dh1pa@amsat.org)
4* Copyright (C) 2006 Marco Gittler (g.marco@freenet.de)
5*
6* This program is free software; you can redistribute it and/or modify it
7* under the terms of the GNU General Public License as published by the Free
8* Software Foundation, version 2.

--- 439 unchanged lines hidden (view full) ---

448{
449 const struct firmware *fw = NULL;
450 u8 *b, *p;
451 int ret = 0, i,fpgasize=40;
452 u8 testval;
453 info("start downloading fpga firmware %s",filename);
454
455 if ((ret = request_firmware(&fw, filename, &dev->dev)) != 0) {
1/* DVB USB framework compliant Linux driver for the Opera1 DVB-S Card
2*
3* Copyright (C) 2006 Mario Hlawitschka (dh1pa@amsat.org)
4* Copyright (C) 2006 Marco Gittler (g.marco@freenet.de)
5*
6* This program is free software; you can redistribute it and/or modify it
7* under the terms of the GNU General Public License as published by the Free
8* Software Foundation, version 2.

--- 439 unchanged lines hidden (view full) ---

448{
449 const struct firmware *fw = NULL;
450 u8 *b, *p;
451 int ret = 0, i,fpgasize=40;
452 u8 testval;
453 info("start downloading fpga firmware %s",filename);
454
455 if ((ret = request_firmware(&fw, filename, &dev->dev)) != 0) {
456 err("did not find the firmware file. (%s) Please see linux/Documentation/dvb/ for more details on firmware-problems.",
456 err("did not find the firmware file '%s'. You can use <kernel_dir>/scripts/get_dvb_firmware to get the firmware",
457 filename);
458 return ret;
459 } else {
460 p = kmalloc(fw->size, GFP_KERNEL);
461 opera1_xilinx_rw(dev, 0xbc, 0x00, &testval, 1, OPERA_READ_MSG);
462 if (p != NULL && testval != 0x67) {
463
464 u8 reset = 0, fpga_command = 0;

--- 119 unchanged lines hidden ---
457 filename);
458 return ret;
459 } else {
460 p = kmalloc(fw->size, GFP_KERNEL);
461 opera1_xilinx_rw(dev, 0xbc, 0x00, &testval, 1, OPERA_READ_MSG);
462 if (p != NULL && testval != 0x67) {
463
464 u8 reset = 0, fpga_command = 0;

--- 119 unchanged lines hidden ---