Commit 1e17d774 authored by Linus Torvalds's avatar Linus Torvalds

Merge git://git.infradead.org/~dwmw2/firmware-2.6

* git://git.infradead.org/~dwmw2/firmware-2.6:
  qla1280: Fix off-by-some error in firmware loading.
  Add README.AddingFirmware file. Basically telling people not to.
  firmware: Remove newly-added slicoss and sxg firmware images
  firmware/WHENCE: Add missing origin information for Ambassador atmsar11.fw
  ALSA: wavefront - Always use request_firmware()
  Remove fdump tool for av7110 firmware
  firmware: convert av7110 driver to request_firmware()
  Partially revert "V4L/DVB (9533): cx88: Add support for TurboSight TBS8910 DVB-S PCI card"
  Revert "fix modules_install via NFS"

Add-add conflicts in firmware/WHENCE fixed manually
parents d8482238 0ce49d6d
...@@ -28,25 +28,12 @@ config DVB_AV7110 ...@@ -28,25 +28,12 @@ config DVB_AV7110
download/extract it, and then copy it to /usr/lib/hotplug/firmware download/extract it, and then copy it to /usr/lib/hotplug/firmware
or /lib/firmware (depending on configuration of firmware hotplug). or /lib/firmware (depending on configuration of firmware hotplug).
Say Y if you own such a card and want to use it. Alternatively, you can download the file and use the kernel's
EXTRA_FIRMWARE configuration option to build it into your
config DVB_AV7110_FIRMWARE kernel image by adding the filename to the EXTRA_FIRMWARE
bool "Compile AV7110 firmware into the driver" configuration option string.
depends on DVB_AV7110 && !STANDALONE
default y if DVB_AV7110=y
help
The AV7110 firmware is normally loaded by the firmware hotplug manager.
If you want to compile the firmware into the driver you need to say
Y here and provide the correct path of the firmware. You need this
option if you want to compile the whole driver statically into the
kernel.
All other people say N. Say Y if you own such a card and want to use it.
config DVB_AV7110_FIRMWARE_FILE
string "Full pathname of av7110 firmware file"
depends on DVB_AV7110_FIRMWARE
default "/usr/lib/hotplug/firmware/dvb-ttpci-01.fw"
config DVB_AV7110_OSD config DVB_AV7110_OSD
bool "AV7110 OSD support" bool "AV7110 OSD support"
......
...@@ -19,12 +19,3 @@ obj-$(CONFIG_DVB_AV7110) += dvb-ttpci.o ...@@ -19,12 +19,3 @@ obj-$(CONFIG_DVB_AV7110) += dvb-ttpci.o
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/ EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
EXTRA_CFLAGS += -Idrivers/media/common/tuners EXTRA_CFLAGS += -Idrivers/media/common/tuners
hostprogs-y := fdump
ifeq ($(CONFIG_DVB_AV7110_FIRMWARE),y)
$(obj)/av7110.o: $(obj)/av7110_firm.h
$(obj)/av7110_firm.h: $(obj)/fdump
$(obj)/fdump $(CONFIG_DVB_AV7110_FIRMWARE_FILE) dvb_ttpci_fw $@
endif
...@@ -1518,20 +1518,6 @@ static int check_firmware(struct av7110* av7110) ...@@ -1518,20 +1518,6 @@ static int check_firmware(struct av7110* av7110)
return 0; return 0;
} }
#ifdef CONFIG_DVB_AV7110_FIRMWARE_FILE
#include "av7110_firm.h"
static void put_firmware(struct av7110* av7110)
{
av7110->bin_fw = NULL;
}
static inline int get_firmware(struct av7110* av7110)
{
av7110->bin_fw = dvb_ttpci_fw;
av7110->size_fw = sizeof(dvb_ttpci_fw);
return check_firmware(av7110);
}
#else
static void put_firmware(struct av7110* av7110) static void put_firmware(struct av7110* av7110)
{ {
vfree(av7110->bin_fw); vfree(av7110->bin_fw);
...@@ -1580,8 +1566,6 @@ static int get_firmware(struct av7110* av7110) ...@@ -1580,8 +1566,6 @@ static int get_firmware(struct av7110* av7110)
release_firmware(fw); release_firmware(fw);
return ret; return ret;
} }
#endif
static int alps_bsrv2_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params) static int alps_bsrv2_tuner_set_params(struct dvb_frontend* fe, struct dvb_frontend_parameters *params)
{ {
......
...@@ -198,29 +198,10 @@ static int load_dram(struct av7110 *av7110, u32 *data, int len) ...@@ -198,29 +198,10 @@ static int load_dram(struct av7110 *av7110, u32 *data, int len)
/* we cannot write av7110 DRAM directly, so load a bootloader into /* we cannot write av7110 DRAM directly, so load a bootloader into
* the DPRAM which implements a simple boot protocol */ * the DPRAM which implements a simple boot protocol */
static u8 bootcode[] = {
0xea, 0x00, 0x00, 0x0e, 0xe1, 0xb0, 0xf0, 0x0e, 0xe2, 0x5e, 0xf0, 0x04,
0xe2, 0x5e, 0xf0, 0x04, 0xe2, 0x5e, 0xf0, 0x08, 0xe2, 0x5e, 0xf0, 0x04,
0xe2, 0x5e, 0xf0, 0x04, 0xe2, 0x5e, 0xf0, 0x04, 0x2c, 0x00, 0x00, 0x24,
0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x34,
0x00, 0x00, 0x00, 0x00, 0xa5, 0xa5, 0x5a, 0x5a, 0x00, 0x1f, 0x15, 0x55,
0x00, 0x00, 0x00, 0x09, 0xe5, 0x9f, 0xd0, 0x7c, 0xe5, 0x9f, 0x40, 0x74,
0xe3, 0xa0, 0x00, 0x00, 0xe5, 0x84, 0x00, 0x00, 0xe5, 0x84, 0x00, 0x04,
0xe5, 0x9f, 0x10, 0x70, 0xe5, 0x9f, 0x20, 0x70, 0xe5, 0x9f, 0x30, 0x64,
0xe8, 0xb1, 0x1f, 0xe0, 0xe8, 0xa3, 0x1f, 0xe0, 0xe1, 0x51, 0x00, 0x02,
0xda, 0xff, 0xff, 0xfb, 0xe5, 0x9f, 0xf0, 0x50, 0xe1, 0xd4, 0x10, 0xb0,
0xe3, 0x51, 0x00, 0x00, 0x0a, 0xff, 0xff, 0xfc, 0xe1, 0xa0, 0x10, 0x0d,
0xe5, 0x94, 0x30, 0x04, 0xe1, 0xd4, 0x20, 0xb2, 0xe2, 0x82, 0x20, 0x3f,
0xe1, 0xb0, 0x23, 0x22, 0x03, 0xa0, 0x00, 0x02, 0xe1, 0xc4, 0x00, 0xb0,
0x0a, 0xff, 0xff, 0xf4, 0xe8, 0xb1, 0x1f, 0xe0, 0xe8, 0xa3, 0x1f, 0xe0,
0xe8, 0xb1, 0x1f, 0xe0, 0xe8, 0xa3, 0x1f, 0xe0, 0xe2, 0x52, 0x20, 0x01,
0x1a, 0xff, 0xff, 0xf9, 0xe2, 0x2d, 0xdb, 0x05, 0xea, 0xff, 0xff, 0xec,
0x2c, 0x00, 0x03, 0xf8, 0x2c, 0x00, 0x04, 0x00, 0x9e, 0x00, 0x08, 0x00,
0x2c, 0x00, 0x00, 0x74, 0x2c, 0x00, 0x00, 0xc0
};
int av7110_bootarm(struct av7110 *av7110) int av7110_bootarm(struct av7110 *av7110)
{ {
const struct firmware *fw;
const char *fw_name = "av7110/bootcode.bin";
struct saa7146_dev *dev = av7110->dev; struct saa7146_dev *dev = av7110->dev;
u32 ret; u32 ret;
int i; int i;
...@@ -261,7 +242,15 @@ int av7110_bootarm(struct av7110 *av7110) ...@@ -261,7 +242,15 @@ int av7110_bootarm(struct av7110 *av7110)
//saa7146_setgpio(dev, DEBI_DONE_LINE, SAA7146_GPIO_INPUT); //saa7146_setgpio(dev, DEBI_DONE_LINE, SAA7146_GPIO_INPUT);
//saa7146_setgpio(dev, 3, SAA7146_GPIO_INPUT); //saa7146_setgpio(dev, 3, SAA7146_GPIO_INPUT);
mwdebi(av7110, DEBISWAB, DPRAM_BASE, bootcode, sizeof(bootcode)); ret = request_firmware(&fw, fw_name, &dev->pci->dev);
if (ret) {
printk(KERN_ERR "dvb-ttpci: Failed to load firmware \"%s\"\n",
fw_name);
return ret;
}
mwdebi(av7110, DEBISWAB, DPRAM_BASE, fw->data, fw->size);
release_firmware(fw);
iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_STATE, BOOTSTATE_BUFFER_FULL, 2); iwdebi(av7110, DEBINOSWAP, AV7110_BOOT_STATE, BOOTSTATE_BUFFER_FULL, 2);
if (saa7146_wait_for_debi_done(av7110->dev, 1)) { if (saa7146_wait_for_debi_done(av7110->dev, 1)) {
...@@ -302,7 +291,7 @@ int av7110_bootarm(struct av7110 *av7110) ...@@ -302,7 +291,7 @@ int av7110_bootarm(struct av7110 *av7110)
av7110->arm_ready = 1; av7110->arm_ready = 1;
return 0; return 0;
} }
MODULE_FIRMWARE("av7110/bootcode.bin");
/**************************************************************************** /****************************************************************************
* DEBI command polling * DEBI command polling
......
...@@ -390,7 +390,8 @@ static inline void iwdebi(struct av7110 *av7110, u32 config, int addr, u32 val, ...@@ -390,7 +390,8 @@ static inline void iwdebi(struct av7110 *av7110, u32 config, int addr, u32 val,
} }
/* buffer writes */ /* buffer writes */
static inline void mwdebi(struct av7110 *av7110, u32 config, int addr, u8 *val, int count) static inline void mwdebi(struct av7110 *av7110, u32 config, int addr,
const u8 *val, int count)
{ {
memcpy(av7110->debi_virt, val, count); memcpy(av7110->debi_virt, val, count);
av7110_debiwrite(av7110, config, addr, 0, count); av7110_debiwrite(av7110, config, addr, 0, count);
......
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int main(int argc, char **argv)
{
unsigned char buf[8];
unsigned int i, count, bytes = 0;
FILE *fd_in, *fd_out;
if (argc != 4) {
fprintf(stderr, "\n\tusage: %s <ucode.bin> <array_name> <output_name>\n\n", argv[0]);
return -1;
}
fd_in = fopen(argv[1], "rb");
if (fd_in == NULL) {
fprintf(stderr, "firmware file '%s' not found\n", argv[1]);
return -1;
}
fd_out = fopen(argv[3], "w+");
if (fd_out == NULL) {
fprintf(stderr, "cannot create output file '%s'\n", argv[3]);
return -1;
}
fprintf(fd_out, "\n#include <asm/types.h>\n\nu8 %s [] = {", argv[2]);
while ((count = fread(buf, 1, 8, fd_in)) > 0) {
fprintf(fd_out, "\n\t");
for (i = 0; i < count; i++, bytes++)
fprintf(fd_out, "0x%02x, ", buf[i]);
}
fprintf(fd_out, "\n};\n\n");
fclose(fd_in);
fclose(fd_out);
return 0;
}
...@@ -1663,7 +1663,7 @@ qla1280_load_firmware_pio(struct scsi_qla_host *ha) ...@@ -1663,7 +1663,7 @@ qla1280_load_firmware_pio(struct scsi_qla_host *ha)
/* Load RISC code. */ /* Load RISC code. */
risc_address = ha->fwstart; risc_address = ha->fwstart;
fw_data = (const __le16 *)&fw->data[4]; fw_data = (const __le16 *)&fw->data[6];
risc_code_size = (fw->size - 6) / 2; risc_code_size = (fw->size - 6) / 2;
for (i = 0; i < risc_code_size; i++) { for (i = 0; i < risc_code_size; i++) {
...@@ -1722,7 +1722,7 @@ qla1280_load_firmware_dma(struct scsi_qla_host *ha) ...@@ -1722,7 +1722,7 @@ qla1280_load_firmware_dma(struct scsi_qla_host *ha)
/* Load RISC code. */ /* Load RISC code. */
risc_address = ha->fwstart; risc_address = ha->fwstart;
fw_data = (const __le16 *)&fw->data[4]; fw_data = (const __le16 *)&fw->data[6];
risc_code_size = (fw->size - 6) / 2; risc_code_size = (fw->size - 6) / 2;
dprintk(1, "%s: DMA RISC code (%i) words\n", dprintk(1, "%s: DMA RISC code (%i) words\n",
......
...@@ -3,3 +3,4 @@ ...@@ -3,3 +3,4 @@
*.bin *.bin
*.csp *.csp
*.dsp *.dsp
ihex2fw
...@@ -41,6 +41,7 @@ fw-shipped-$(CONFIG_COMPUTONE) += intelliport2.bin ...@@ -41,6 +41,7 @@ fw-shipped-$(CONFIG_COMPUTONE) += intelliport2.bin
fw-shipped-$(CONFIG_CHELSIO_T3) += cxgb3/t3b_psram-1.1.0.bin \ fw-shipped-$(CONFIG_CHELSIO_T3) += cxgb3/t3b_psram-1.1.0.bin \
cxgb3/t3c_psram-1.1.0.bin \ cxgb3/t3c_psram-1.1.0.bin \
cxgb3/t3fw-7.1.0.bin cxgb3/t3fw-7.1.0.bin
fw-shipped-$(CONFIG_DVB_AV7110) += av7110/bootcode.bin
fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += ttusb-budget/dspbootcode.bin fw-shipped-$(CONFIG_DVB_TTUSB_BUDGET) += ttusb-budget/dspbootcode.bin
fw-shipped-$(CONFIG_E100) += e100/d101m_ucode.bin e100/d101s_ucode.bin \ fw-shipped-$(CONFIG_E100) += e100/d101m_ucode.bin e100/d101s_ucode.bin \
e100/d102e_ucode.bin e100/d102e_ucode.bin
...@@ -59,14 +60,9 @@ fw-shipped-$(CONFIG_SND_SB16_CSP) += sb16/mulaw_main.csp sb16/alaw_main.csp \ ...@@ -59,14 +60,9 @@ fw-shipped-$(CONFIG_SND_SB16_CSP) += sb16/mulaw_main.csp sb16/alaw_main.csp \
sb16/ima_adpcm_init.csp \ sb16/ima_adpcm_init.csp \
sb16/ima_adpcm_playback.csp \ sb16/ima_adpcm_playback.csp \
sb16/ima_adpcm_capture.csp sb16/ima_adpcm_capture.csp
fw-shipped-$(CONFIG_SLICOSS) += slicoss/gbdownload.sys slicoss/gbrcvucode.sys \
slicoss/oasisdbgdownload.sys \
slicoss/oasisdownload.sys \
slicoss/oasisrcvucode.sys
fw-shipped-$(CONFIG_SXG) += sxg/saharadownloadB.sys \
sxg/saharadbgdownloadB.sys
fw-shipped-$(CONFIG_SND_YMFPCI) += yamaha/ds1_ctrl.fw yamaha/ds1_dsp.fw \ fw-shipped-$(CONFIG_SND_YMFPCI) += yamaha/ds1_ctrl.fw yamaha/ds1_dsp.fw \
yamaha/ds1e_ctrl.fw yamaha/ds1e_ctrl.fw
fw-shipped-$(CONFIG_SND_WAVEFRONT) += yamaha/yss225_registers.bin
fw-shipped-$(CONFIG_TEHUTI) += tehuti/bdx.bin fw-shipped-$(CONFIG_TEHUTI) += tehuti/bdx.bin
fw-shipped-$(CONFIG_TIGON3) += tigon/tg3.bin tigon/tg3_tso.bin \ fw-shipped-$(CONFIG_TIGON3) += tigon/tg3.bin tigon/tg3_tso.bin \
tigon/tg3_tso5.bin tigon/tg3_tso5.bin
...@@ -123,10 +119,10 @@ quiet_cmd_ihex = IHEX $@ ...@@ -123,10 +119,10 @@ quiet_cmd_ihex = IHEX $@
cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@ cmd_ihex = $(OBJCOPY) -Iihex -Obinary $< $@
quiet_cmd_ihex2fw = IHEX2FW $@ quiet_cmd_ihex2fw = IHEX2FW $@
cmd_ihex2fw = $(objtree)/scripts/ihex2fw $< $@ cmd_ihex2fw = $(objtree)/$(obj)/ihex2fw $< $@
quiet_cmd_h16tofw = H16TOFW $@ quiet_cmd_h16tofw = H16TOFW $@
cmd_h16tofw = $(objtree)/scripts/ihex2fw -w $< $@ cmd_h16tofw = $(objtree)/$(obj)/ihex2fw -w $< $@
quiet_cmd_fwbin = MK_FW $@ quiet_cmd_fwbin = MK_FW $@
cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \ cmd_fwbin = FWNAME="$(patsubst firmware/%.gen.S,%,$@)"; \
...@@ -185,15 +181,27 @@ $(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/% ...@@ -185,15 +181,27 @@ $(patsubst %,$(obj)/%.gen.o, $(fw-external-y)): $(obj)/%.gen.o: $(fwdir)/%
$(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %) $(obj)/%: $(obj)/%.ihex | $(objtree)/$(obj)/$$(dir %)
$(call cmd,ihex) $(call cmd,ihex)
# Don't depend on ihex2fw if we're installing and it already exists.
# Putting it after | in the dependencies doesn't seem sufficient when
# we're installing after a cross-compile, because ihex2fw has dependencies
# on stuff like /usr/lib/gcc/ppc64-redhat-linux/4.3.0/include/stddef.h and
# thus wants to be rebuilt. Which it can't be, if the prebuilt kernel tree
# is exported read-only for someone to run 'make install'.
ifeq ($(INSTALL):$(wildcard $(obj)/ihex2fw),install:$(obj)/ihex2fw)
ihex2fw_dep :=
else
ihex2fw_dep := $(obj)/ihex2fw
endif
# .HEX is also Intel HEX, but where the offset and length in each record # .HEX is also Intel HEX, but where the offset and length in each record
# is actually meaningful, because the firmware has to be loaded in a certain # is actually meaningful, because the firmware has to be loaded in a certain
# order rather than as a single binary blob. Thus, we convert them into our # order rather than as a single binary blob. Thus, we convert them into our
# more compact binary representation of ihex records (<linux/ihex.h>) # more compact binary representation of ihex records (<linux/ihex.h>)
$(obj)/%.fw: $(obj)/%.HEX | $(objtree)/$(obj)/$$(dir %) $(obj)/%.fw: $(obj)/%.HEX $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
$(call cmd,ihex2fw) $(call cmd,ihex2fw)
# .H16 is our own modified form of Intel HEX, with 16-bit length for records. # .H16 is our own modified form of Intel HEX, with 16-bit length for records.
$(obj)/%.fw: $(obj)/%.H16 | $(objtree)/$(obj)/$$(dir %) $(obj)/%.fw: $(obj)/%.H16 $(ihex2fw_dep) | $(objtree)/$(obj)/$$(dir %)
$(call cmd,h16tofw) $(call cmd,h16tofw)
$(firmware-dirs): $(firmware-dirs):
...@@ -210,3 +218,5 @@ targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \ ...@@ -210,3 +218,5 @@ targets := $(fw-shipped-) $(patsubst $(obj)/%,%, \
# Without this, built-in.o won't be created when it's empty, and the # Without this, built-in.o won't be created when it's empty, and the
# final vmlinux link will fail. # final vmlinux link will fail.
obj-n := dummy obj-n := dummy
hostprogs-y := ihex2fw
DO NOT ADD FIRMWARE TO THIS DIRECTORY.
======================================
This directory is only here to contain firmware images extracted from old
device drivers which predate the common use of request_firmware().
As we update those drivers to use request_firmware() and keep a clean
separation between code and firmware, we put the extracted firmware
here.
This directory is _NOT_ for adding arbitrary new firmware images. The
place to add those is the separate linux-firmware repository:
git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git
That repository contains all these firmware images which have been
extracted from older drivers, as well various new firmware images which
we were never permitted to include in a GPL'd work, but which we _have_
been permitted to redistribute under separate cover.
To submit firmware to that repository, please send either a git binary
diff or preferably a git pull request to:
David Woodhouse <dwmw2@infradead.org>
Your commit should include an update to the WHENCE file clearly
identifying the licence under which the firmware is available, and
that it is redistributable. If the licence is long and involved, it's
permitted to include it in a separate file and refer to it from the
WHENCE file.
Ideally, your commit should contain a Signed-Off-By: from someone
authoritative on the licensing of the firmware in question (i.e. from
within the company that owns the code).
...@@ -8,6 +8,24 @@ kernel. ...@@ -8,6 +8,24 @@ kernel.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
Driver: ambassador -- Madge Ambassador (Collage PCI 155 Server) ATM NIC.
File: firmware/atmsar11.fw
Licence: Allegedly GPLv2+, but no source visible. Marked:
Madge Ambassador ATM Adapter microcode.
Copyright (C) 1995-1999 Madge Networks Ltd.
This microcode data is placed under the terms of the GNU General
Public License. The GPL is contained in /usr/doc/copyright/GPL on a
Debian system and in the file COPYING in the Linux kernel source.
We would prefer you not to distribute modified versions without
consultation and not to ask for assembly/other microcode source.
--------------------------------------------------------------------------
Driver: korg1212 -- Korg 1212 IO audio device Driver: korg1212 -- Korg 1212 IO audio device
File: korg/k1212.dsp File: korg/k1212.dsp
...@@ -390,59 +408,6 @@ Found in hex form in kernel source. ...@@ -390,59 +408,6 @@ Found in hex form in kernel source.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
Driver: SLICOSS - Alacritech IS-NIC products
File: slicoss/gbdownload.sys.ihex
File: slicoss/gbrcvucode.sys.ihex
File: slicoss/oasisdbgdownload.sys.ihex
File: slicoss/oasisdownload.sys.ihex
File: slicoss/oasisrcvucode.sys.ihex
Licence:
Copyright (C) 1999-2009 Alacritech, Inc.
as an unpublished work. This notice does not imply unrestricted or
public access to the source code from which this firmware image is
derived. Except as noted below this firmware image may not be
reproduced, used, sold or transferred to any third party without
Alacritech's prior written consent. All Rights Reserved.
Permission is hereby granted for the distribution of this firmware
image as part of a Linux or other Open Source operating system kernel
in text or binary form as required.
This firmware may not be modified and may only be used with
Alacritech hardware.
Found in hex form in kernel source.
--------------------------------------------------------------------------
Driver: SXG - Alacritech IS-NIC products
File: sxg/saharadownloadB.sys.ihex
File: sxg/saharadbgdownloadB.sys.ihex
Licence:
Copyright (C) 1999-2009 Alacritech, Inc.
as an unpublished work. This notice does not imply unrestricted or
public access to the source code from which this firmware image is
derived. Except as noted below this firmware image may not be
reproduced, used, sold or transferred to any third party without
Alacritech's prior written consent. All Rights Reserved.
Permission is hereby granted for the distribution of this firmware
image as part of a Linux or other Open Source operating system kernel
in text or binary form as required.
This firmware may not be modified and may only be used with
Alacritech hardware.
Found in hex form in kernel source.
--------------------------------------------------------------------------
Driver: cxgb3 - Chelsio Terminator 3 1G/10G Ethernet adapter Driver: cxgb3 - Chelsio Terminator 3 1G/10G Ethernet adapter
File: cxgb3/t3b_psram-1.1.0.bin.ihex File: cxgb3/t3b_psram-1.1.0.bin.ihex
...@@ -662,3 +627,24 @@ Licence: ...@@ -662,3 +627,24 @@ Licence:
Found in hex form in kernel source. Found in hex form in kernel source.
-------------------------------------------------------------------------- --------------------------------------------------------------------------
Driver: DVB AV7110 -- AV7110 cards
File: av7110/bootcode.bin
Licence: GPLv2 or later
ARM assembly source code available at http://www.linuxtv.org/downloads/firmware/Boot.S
--------------------------------------------------------------------------
Driver: wavefront - ISA WaveFront sound card
File: yamaha/yss225_registers.bin
Licence: Allegedly GPLv2+, but no source visible.
Found in hex form in kernel source, with the following comment:
Copyright (c) 1998-2002 by Paul Davis <pbd@op.net>
--------------------------------------------------------------------------
/*
Boot.S: boot loader for Siemens DVB-S card
Copyright (C) 2001 Convergence integrated media GmbH
Written by Ralph Metzler
<rjkm@convergence.de>
Copyright (C) 2006 Matthieu CASTET <castet.mattheiu@free.fr>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*/
/*
check AV711x_3_1.pdf for some hardware infos
build it with :
$ cc -mbig-endian -c Boot.S
$ ld -Ttext 0x2c000000 -EB -o Boot Boot.o
$ objcopy -Obinary Boot
*/
.text
.align
.globl _start
_start:
b reset // reset vector
movs pc, r14 // undefined
subs pc, r14, #4 // SWI
subs pc, r14, #4 // prefetch abort
subs pc, r14, #8 // data abort
subs pc, r14, #4 // reserved
subs pc, r14, #4 // IRQ
subs pc, r14, #4 // FIQ
.word tbl // table needed by firmware ROM
tbl: .word (endtbl - tbl)
.word 0
.word conf
endtbl: .word 0
conf: .word 0xa5a55a5a
.word 0x001f1555
.word 0x00000009
reset: ldr r13, buffer
ldr r4, flag
mov r0, #0
str r0, [r4]
str r0, [r4, #4]
ldr r1, wait_address
ldr r2, flag_address
ldr r3, sram
copycode: // copy the code HW Sram
ldmia r1!, {r5-r12}
stmia r3!, {r5-r12}
cmp r1, r2
ble copycode
ldr pc, sram // jump to the copied code
wait: ldrh r1, [r4] // wait for flag!=0
cmp r1, #0
beq wait
mov r1, r13 // buffer address
ldr r3, [r4,#4] // destaddr
ldrh r2, [r4,#2] // get segment length
add r2, r2, #63 // round length to next 64 bytes
movs r2, r2, lsr #6 // and divide by 64
moveq r0, #2 // if 0, set flag to 2, else signal
strh r0, [r4] // that buffer is accepted by setting to 0
beq wait
copyloop:
ldmia r1!, {r5-r12}
stmia r3!, {r5-r12}
ldmia r1!, {r5-r12}
stmia r3!, {r5-r12}
subs r2, r2, #1
bne copyloop
eor r13, r13, #0x1400 // switch to other buffer
b wait
// flag is stored at 0x2c0003f8, length at 0x2c0003fa,
// destaddr at 0x2c0003fc
flag: .word 0x2c0003f8
// buffer 1 is at 0x2c000400, buffer 2 at 0x2c001000
buffer: .word 0x2c000400
sram: .word 0x9e000800
wait_address: .word wait
flag_address: .word flag
:10000000EA00000EE1B0F00EE25EF004E25EF00401
:10001000E25EF008E25EF004E25EF004E25EF0040C
:100020002C0000240000000C000000002C00003414
:1000300000000000A5A55A5A001F15550000000930
:10004000E59FD07CE59F4074E3A00000E5840000BC
:10005000E5840004E59F1070E59F2070E59F306403
:10006000E8B11FE0E8A31FE0E1510002DAFFFFFB67
:10007000E59FF050E1D410B0E35100000AFFFFFC0F
:10008000E1A0100DE5943004E1D420B2E282203FDB
:10009000E1B0232203A00002E1C400B00AFFFFF494
:1000A000E8B11FE0E8A31FE0E8B11FE0E8A31FE00C
:1000B000E25220011AFFFFF9E22DDB05EAFFFFEC17
:1000C0002C0003F82C0004009E0008002C00007493
:0400D0002C0000C040
:00000001FF
This diff is collapsed.
:10000000000200004775010004A01301001CB75B4B
:10001000093000B65F01001C00000020183B783A50
:10002000001CA27701001C071D017018AD7BF1FFB9
:100030001CB37BA9AA1EB47B010C1CB57B29061C32
:1000400000005064080C315A70040C315A80040CC2
:10005000314E90040C314AA000092555C0040C31E2
:1000600052B000E92455C004CCB3001C1CEB2D0198
:10007000001C065652D408079D00001C7BB70200E6
:1000800010A00F51540906565EC004A0307403003E
:10009000AC30750300CD033A001C7BB702001C6036
:1000A0008E5154092925750300808E5154098C30D6
:1000B000910004471C01001CA00F5154090000646A
:1000C0000004471C65C004471C7503006C30010028
:1000D0001C4D3402001C7BB702001CA00F515409B8
:1000E000C88337001C800100001C0000640004A0CD
:1000F0000F505409000074C3047BFBF2001CCC3386
:100100000D001CB47BFD031C800E505409E0FB0560
:10011000001C0000AC0300B30F5154090000EC7048
:10012000040000EC80040000AC93006176ADC304D1
:10013000C08D515409E07B00C01FA0FDC50100CC5B
:100140003305001CD403003C1CD4D31B001CC0D3BB
:1001500052001C00007C13048E8E5254095B807E7A
:100160001304000000001C0000940100A00F515473
:1001700009A00F515409C003FC7F1CA001A001007D
:100180000000A40100A00F515409C003FC031CF59A
:100190007701001C267A02061CA00F515409B30FE8
:1001A000515409B50202001CA00F5154097A7E0275
:1001B000001CB50202001C530F525409AF0301008A
:1001C0001C7A0E525409B50202001C000002001CE9
:1001D000A03DAA11040000AC1104D4D352001CB5F8
:1001E0003EB2010020FBFDFF1F802C8C0300B93ABA
:1001F0009E0100753B02001CA71C010010DB83164A
:10020000001CC71D21C104B93B8DC1048B2C01000A
:100210001C6B2C35C1040000781100CB2C79C10473
:10022000A00F515409A00F51540954D002001C4989
:1002300025B10100AB2C81C104A71D750300CC338F
:1002400009001CEB2D01001CEA2901001CA00F5124
:100250005409AE0F515409A00F515409D407FC039F
:100260001C993A02001CBB3802001C003800001C1C
:100270000000FC0104DB3B7E001CC71D01001C26A6
:100280007A16061C271D01001CB30F5154097A0E63
:10029000525409530F5254097A0E525409530F52B3
:1002A00054097A0E525409530F525409A00F515455
:1002B000097A0602001C530F525409AF0301001CB7
:1002C0007A0E525409530F5254097A0E525409535C
:1002D0000F5254097A0E525409530F5254097A0E90
:1002E000525409003D02001C0000581200CB2C01A2
:1002F000001C753B02001CA71C010010A67BFD051D
:100300001C000090C204A67BFD051C0000A8C204CE
:10031000CB2F05001C602C00001CC71CE90200A0AC
:100320000F515409530702001CC083F1321C000016
:10033000600204467AE6051C7A0E525409C083F125
:10034000321C000068020440FA15001C0000A802DC
:1003500004467AE6051CA00F515409A00F51540918
:10036000A00F515409A00F515409B37B01C01F7451
:100370000E505409C0039C001C8000F802000000CD
:10038000F802040000CC1205071D01001CD4D32B79
:10039000001CD4D352001C80769D1304000000037F
:1003A00000A67BB50310C79C00001C802C00001C1D
:1003B00000007C0204000074C304AB2DF912050791
:1003C0001DD5C2048B2D01001C692501001CA67BD4
:1003D000B50310CB2F09001C602C00001C00006826
:1003E0000300530F525409467AE6051C7A0E525404
:1003F0000940FA15001C0000300304467AE6051C8B
:10040000B50F515409A00F51540973EC4A0304600D
:100410002C00001C0000480300C71C01001C000049
:10042000481305071D01001CC0D722001C75569EED
:100430001304602C00001CE71C650304E79C00000B
:100440001CA67BB50310802C00001C0000180304C0
:10045000000074C304B97B01001C0000ACC304CBD2
:10046000AFFC071CCB2F01041CC79F80031C00009E
:10047000ACC304CBAFFC071CCB2F0D041CC79F8063
:10048000031C0000ACC304CBAF00F81DCB2F010050
:100490001DA67BB5031CC79CACC3040000AC1305B0
:1004A000071D01001CC01DFCD308279D040400A0EB
:1004B000EE66D400FB75291404207B06001CC01CCA
:1004C0003C04000000D0D308000020F400C0EFF28C
:1004D000001C20257C140460B7F2030000002C15DA
:1004E00000CCB3FC031CCC3305021C00002CC5045B
:1004F00060B72E050400002C150400007CC404C065
:100500001DB8F304000088C404079D00001C1B7480
:100510001DF404A67B11041CA00F895409E07B0084
:10052000FC1F397F02001C071DBDC304A67BCD0341
:100530001C000088C404E01C00001C0000C403046C
:10054000CBAF00F81DCB2F01101D0000CCC3040061
:1005500000CC0304CBAF00F81DCB2F01181DC79FA3
:10056000000B1C0000CCC304FB7501001C071D011F
:10057000001CCCB3FC031CCC3301021C0000CCC318
:1005800004A01C00001CA0EEC20304CBAFFC071C9F
:10059000CB2F09041CFB7501001C0000CCC304CC4C
:1005A000B3FC031CCC3301021C00002CC50400006A
:1005B000983405CCB3FC031CCC3315021C479D7446
:1005C000C4040000984400801D9C5404871DAD04A1
:1005D00000CE7601001CEF76BDC404A477AD2409DB
:1005E000E47601001CC47601001C0000B85404D756
:1005F00076015018F67601001C000000301800004B
:10060000000010CC3061C504EB2D01001CEA29016B
:10061000001CC05901001CF57749C504E030FC04FA
:1006200000004CD00400204C140500000008050018
:10063000CCB3FC031CCC3309021CEB2DD5C404CC79
:10064000B3FC031CCC3319021CEB2DD5C404CCB372
:10065000FC031CCC330D021CEB2DD5C404CCB3FC25
:10066000031CCC3311021CEB2DD5C404007B00808D
:100670001CAE77610500000004C004D38B00FC1F92
:10068000607A3C001C604CE00400C02F20051FE095
:1006900030D004008025D00400B55BD10404692665
:1006A00001001C6A2B01001C801D00001CA9256193
:1006B0000500EE3000001CAF77210500B45F01405B
:1006C00018079D645504B77601001C967601001C3E
:1006D000471D01001CA433016018A42F0160186499
:1006E000770160182477016018447701001C648842
:1006F00003001CA43F01001CA43B01001C537B0011
:10070000C01CD3CF1B001C534F02001CDACF00C00B
:100710001FD5570F001CD3D337001CD4530F001C18
:10072000E02900001CF5D5CC05000000B855047781
:100730005601001C565301001C0000001018000058
:1007400004C004F55501001C0000D0550477560183
:10075000001C565301001C0000001018000004C0CB
:1007600004CB2F011810CB2F011010CB2F01081034
:10077000CB2F010810CB2F012010CB2F010010CB65
:100780002F012810892571C20400000CC304000049
:1007900074C304000074C304000074C30400007038
:1007A000C20400000CC304000074C304000074C33E
:1007B00004000074C304401C6CC004401C9CC004B2
:1007C000A77775C3040000C4C004271DF1C004004E
:1007D0000074C304000074C304000074C304000068
:1007E00048C604000048C604000048C6040000488B
:1007F000C604000048C604000048C604000048C6FD
:1008000004000048C604000048C604000048C604AE
:10081000000048C604000048C604000048C60400A2
:100820000048C604000048C604000048C604000092
:1008300048C604000048C604000048C6040000483A
:10084000C604000048C604000048C604000048C6AC
:1008500004000048C604000048C604000048C6045E
:10086000000048C604000048C604000048C6040052
:100870000048C604000048C604000048C604000042
:1008800048C604000048C604000048C604000048EA
:10089000C604000048C604000048C604000048C65C
:1008A00004000048C604000048C604000048C6040E
:1008B000000048C604000048C604000048C6040002
:1008C0000048C604000048C604000048C6040000F2
:1008D00048C604000048C604000048C6040000489A
:1008E000C604000048C604000048C604000048C60C
:1008F00004000048C604000048C604000048C604BE
:10090000000048C604000048C604000048C60400B1
:100910000048C604000048C604000048C6040000A1
:1009200048C604000048C604000048C60400004849
:10093000C604000048C604000048C604000048C6BB
:1009400004000048C604000048C604000048C6046D
:10095000000048C604000048C604000048C6040061
:100960000048C604000048C604000048C604000051
:1009700048C604000048C604000048C604000048F9
:10098000C604000048C604000048C604000048C66B
:1009900004000048C604000048C604000048C6041D
:1009A000000048C604000048C604000048C6040011
:1009B0000048C604000048C604000048C604000001
:1009C00048C604000048C604000048C604000048A9
:1009D000C604000048C604000048C604000048C61B
:1009E00004000048C604000048C604000048C604CD
:1009F000000048C604000048C604000048C60400C1
:040A00000048C604E0
:00000001FF
This diff is collapsed.
This diff is collapsed.
:10000000000200004775010004A01301001CB75B4B
:10001000093000B65F01001C00000020183B783A50
:10002000001CA27701001C071D017018AD7BF1FFB9
:100030001CB37BA9AA1EB47B010C1CB57B0D061C4E
:1000400000003064080C315A70040C315A80040CE2
:10005000314E90040C314AA000092555C0040C31E2
:1000600052B000E92455C004CCB3001C1CEB2D0198
:10007000001C065632D408079D00001C7BB7020006
:1000800010A00F31540906565EC004A0305403007E
:10009000AC30550300CD033A001C7BB702001C6056
:1000A0008E3154092925550300808E3154098C3036
:1000B000910004471C01001CA00F3154090000648A
:1000C0000004471C65C004471C5503006C30010048
:1000D0001C4D3402001C7BB702001CA00F315409D8
:1000E000C88337001C800100001C0000640004A0CD
:1000F0000F305409000054C3047BFBF2001CCC33C6
:100100000D001CB47BFD031C800E305409E0FB0580
:10011000001C00008C0300B30F3154090000EC7088
:10012000040000EC800400008C930061768DC30411
:10013000C08D315409E07B00C01FA0FDC50100CC7B
:100140003305001CD403003C1CD4D31B001CC0D3BB
:1001500052001C00005C13048E8E3254095B805EDA
:100160001304000000001C0000940100A00F315493
:1001700009A00F315409C003FC7F1CA001A001009D
:100180000000A40100A00F315409C003FC031CF5BA
:100190007701001C267AE6051CA00F315409B30F25
:1001A000315409B50202001CA00F3154097A7E02B5
:1001B000001CB50202001C530F325409AF030100AA
:1001C0001C7A0E325409B50202001C000002001C09
:1001D000A03DAA11040000AC1104D4D352001CB5F8
:1001E0003EB2010020FBFDFF1F802C6C0300B93ADA
:1001F0009E0100753B02001CA71C010010DB83164A
:10020000001CC71D21C104B93B8DC1048B2C01000A
:100210001C6B2C35C1040000781100CB2C79C10473
:10022000A00F315409A00F31540954D002001C49C9
:1002300025B10100AB2C81C104A71D550300CC33AF
:1002400009001CEB2D01001CEA2901001CA00F3144
:100250005409AE0F315409A00F315409D407FC03DF
:100260001C993A02001CBB3802001C003800001C1C
:100270000000FC0104DB3B7E001CC71D01001C26A6
:100280007AFA051C271D01001CB30F3154097A0EA0
:10029000325409530F3254097A0E325409530F3233
:1002A00054097A0E325409530F325409A00F3154B5
:1002B000097A0602001C530F325409AF0301001CD7
:1002C0007A0E325409530F3254097A0E32540953BC
:1002D0000F3254097A0E325409530F3254097A0EF0
:1002E000325409003D02001C0000581200CB2C01C2
:1002F000001C753B02001CA71C010010CB2F050041
:100300001C602C00001CC71CC90200A00F3154093E
:10031000530702001C467ACA051C7A0E3254094063
:10032000FA19001C0000880204467ACA051CA00FB6
:10033000315409A00F315409A00F315409A00F31D5
:100340005409B37B01C01F740E305409C0039C00D4
:100350001C8000D802000000D802040000AC120586
:10036000071D01001CD4D32B001CD4D352001C80C9
:10037000767D13040000E00200A67B950310C79C65
:1003800000001C802C00001C00006C0204000054C3
:10039000C304AB2DD91205071DB5C2048B2D010076
:1003A0001C692501001CA67B950310CB2F09001C9E
:1003B000602C00001C0000480300530F3254094613
:1003C0007ACA051C7A0E32540940FA19001C000042
:1003D000100304467ACA051CB50F315409A00F3129
:1003E000540973EC2A0304602C00001C000028034D
:1003F00000C71C01001C0000281305071D01001C7C
:10040000C0D722001C75567E1304602C00001CE728
:100410001C450304E79C00001CA67B950310802C60
:1004200000001C0000F80204000054C304B97B0162
:10043000001C00008CC304CBAFFC071CCB2F0104B5
:100440001CC79F80031C00008CC304CBAFFC071C9F
:10045000CB2F0D041CC79F80031C00008CC304CB52
:10046000AF00F81DCB2F01001DA67B95031CC79C78
:100470008CC30400008C1305071D01001CC01DDC8B
:10048000D308279DE40300A0EE46D400FB750914B1
:1004900004207B06001CC01C1C04000000B0D30814
:1004A000000000F400C0EFF2001C20255C14046082
:1004B000B7D2030000000C1500CCB3FC031CCC33F6
:1004C00005021C00000CC50460B70E050400000CFA
:1004D000150400005CC404C01D98F304000068C447
:1004E00004079D00001C1B74FDF304A67BF1031C94
:1004F000A00F695409E07B00FC1F397F02001C0734
:100500001D9DC304A67BAD031C000068C404E01C51
:1005100000001C0000A40304CBAF00F81DCB2F018A
:10052000101D0000ACC3040000AC0304CBAF00F806
:100530001DCB2F01181DC79F000B1C0000ACC3046E
:10054000FB7501001C071D01001CCCB3FC031CCC77
:100550003301021C0000ACC304A01C00001CA0EE70
:10056000A20304CBAFFC071CCB2F09041CFB7501B5
:10057000001C0000ACC304CCB3FC031CCC33010250
:100580001C00000CC5040000783405CCB3FC031C2F
:10059000CC3315021C479D54C404000078440080ED
:1005A0001D7C5404871D8D0400CE7601001CEF765F
:1005B0009DC404A4778D2409E47601001CC476014F
:1005C000001C0000985404D776015018F6760100FC
:1005D0001C00000030180000000010CC3045C5049D
:1005E000EB2D01001CEA2901001CC05901001CF57B
:1005F0007729C504E030DC0400004CB00400204C36
:10060000F404000000E80400CCB3FC031CCC330964
:10061000021CEB2DB5C404CCB3FC031CCC33190273
:100620001CEB2DB5C404CCB3FC031CCC330D021C55
:10063000EB2DB5C404CCB3FC031CCC3311021CEB72
:100640002DB5C404007B00801CAE7745050000007A
:1006500004C004D38B00FC1F607A3C001C604CC0BB
:100660000400C02F20051FE030B004008025B00436
:1006700000B55BB10404692601001C6A2B01001C53
:10068000801D00001CA925450500EE3000001CAFB0
:10069000770105000000AC2404B45F014018079DF9
:1006A000485504B77601001C967601001C471D01D1
:1006B000001CA433016018A42F0160186477016046
:1006C000182477016018447701001C648803001C1B
:1006D000A43F01001CA43B01001C537B00C01CD3A1
:1006E000CF1B001C534F02001CDACF00C01FD55790
:1006F0000F001CD3D337001CD4530F001CE029007B
:10070000001CF5D5B0050000009C5504775601008B
:100710001C565301001C0000001018000004C00407
:10072000F55501001C0000B45504775601001C5615
:100730005301001C0000001018000004C004CB2F5F
:10074000011810CB2F011010CB2F010810CB2F0157
:100750000810CB2F012010CB2F012810CB2F010028
:1007600010892561C2040000ECC204000054C304D7
:10077000000054C304000054C304000060C204001D
:1007800000ECC204000054C304000054C304000081
:1007900054C304401C6CC004401C9CC004A7775583
:1007A000C3040000C4C004271DF1C004000054C3EA
:1007B00004000054C304000054C30400002CC60409
:1007C00000002CC60400002CC60400002CC6040047
:1007D000002CC60400002CC60400002CC604000037
:1007E0002CC60400002CC60400002CC60400002CFB
:1007F000C60400002CC60400002CC60400002CC651
:100800000400002CC60400002CC60400002CC60402
:1008100000002CC60400002CC60400002CC60400F6
:10082000002CC60400002CC60400002CC6040000E6
:100830002CC60400002CC60400002CC60400002CAA
:10084000C60400002CC60400002CC60400002CC600
:100850000400002CC60400002CC60400002CC604B2
:1008600000002CC60400002CC60400002CC60400A6
:10087000002CC60400002CC60400002CC604000096
:100880002CC60400002CC60400002CC60400002C5A
:10089000C60400002CC60400002CC60400002CC6B0
:1008A0000400002CC60400002CC60400002CC60462
:1008B00000002CC60400002CC60400002CC6040056
:1008C000002CC60400002CC60400002CC604000046
:1008D0002CC60400002CC60400002CC60400002C0A
:1008E000C60400002CC60400002CC60400002CC660
:1008F0000400002CC60400002CC60400002CC60412
:1009000000002CC60400002CC60400002CC6040005
:10091000002CC60400002CC60400002CC6040000F5
:100920002CC60400002CC60400002CC60400002CB9
:10093000C60400002CC60400002CC60400002CC60F
:100940000400002CC60400002CC60400002CC604C1
:1009500000002CC60400002CC60400002CC60400B5
:10096000002CC60400002CC60400002CC6040000A5
:100970002CC60400002CC60400002CC60400002C69
:10098000C60400002CC60400002CC60400002CC6BF
:100990000400002CC60400002CC60400002CC60471
:1009A00000002CC60400002CC60400002CC6040065
:1009B000002CC60400002CC60400002CC604000055
:1009C0002CC60400002CC60400002CC60400002C19
:1009D000C60400002CC60400002CC60400002CC66F
:1009E0000400002CC60400002CC60400002CC60421
:1009F00000002CC60400002CC60400002CC6040015
:040A0000002CC604FC
:00000001FF
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
# #
# Generated files # Generated files
# #
ihex2fw
conmakehash conmakehash
kallsyms kallsyms
pnmtologo pnmtologo
......
...@@ -2,12 +2,11 @@ ...@@ -2,12 +2,11 @@
# scripts contains sources for various helper programs used throughout # scripts contains sources for various helper programs used throughout
# the kernel for the build process. # the kernel for the build process.
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# ihex2fw: Parser/loader for IHEX formatted data
# kallsyms: Find all symbols in vmlinux # kallsyms: Find all symbols in vmlinux
# pnmttologo: Convert pnm files to logo files # pnmttologo: Convert pnm files to logo files
# conmakehash: Create chartable
# conmakehash: Create arrays for initializing the kernel console tables # conmakehash: Create arrays for initializing the kernel console tables
hostprogs-y := ihex2fw
hostprogs-$(CONFIG_KALLSYMS) += kallsyms hostprogs-$(CONFIG_KALLSYMS) += kallsyms
hostprogs-$(CONFIG_LOGO) += pnmtologo hostprogs-$(CONFIG_LOGO) += pnmtologo
hostprogs-$(CONFIG_VT) += conmakehash hostprogs-$(CONFIG_VT) += conmakehash
......
...@@ -395,16 +395,6 @@ config SND_WAVEFRONT ...@@ -395,16 +395,6 @@ config SND_WAVEFRONT
To compile this driver as a module, choose M here: the module To compile this driver as a module, choose M here: the module
will be called snd-wavefront. will be called snd-wavefront.
config SND_WAVEFRONT_FIRMWARE_IN_KERNEL
bool "In-kernel firmware for Wavefront"
depends on SND_WAVEFRONT
default y
help
Say Y here to include the static firmware for FX DSP built in
the kernel for the Wavefront driver. If you choose N here,
you need to install the firmware files from the
alsa-firmware package.
config SND_MSND_PINNACLE config SND_MSND_PINNACLE
tristate "Turtle Beach MultiSound Pinnacle/Fiji driver" tristate "Turtle Beach MultiSound Pinnacle/Fiji driver"
depends on X86 && EXPERIMENTAL depends on X86 && EXPERIMENTAL
......
...@@ -34,14 +34,6 @@ ...@@ -34,14 +34,6 @@
#define WAIT_IDLE 0xff #define WAIT_IDLE 0xff
#ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL
#include "yss225.c"
static const struct firmware yss225_registers_firmware = {
.data = (u8 *)yss225_registers,
.size = sizeof yss225_registers
};
#endif
static int static int
wavefront_fx_idle (snd_wavefront_t *dev) wavefront_fx_idle (snd_wavefront_t *dev)
...@@ -260,16 +252,12 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) ...@@ -260,16 +252,12 @@ snd_wavefront_fx_start (snd_wavefront_t *dev)
if (dev->fx_initialized) if (dev->fx_initialized)
return 0; return 0;
#ifdef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL
firmware = &yss225_registers_firmware;
#else
err = request_firmware(&firmware, "yamaha/yss225_registers.bin", err = request_firmware(&firmware, "yamaha/yss225_registers.bin",
dev->card->dev); dev->card->dev);
if (err < 0) { if (err < 0) {
err = -1; err = -1;
goto out; goto out;
} }
#endif
for (i = 0; i + 1 < firmware->size; i += 2) { for (i = 0; i + 1 < firmware->size; i += 2) {
if (firmware->data[i] >= 8 && firmware->data[i] < 16) { if (firmware->data[i] >= 8 && firmware->data[i] < 16) {
...@@ -292,12 +280,8 @@ snd_wavefront_fx_start (snd_wavefront_t *dev) ...@@ -292,12 +280,8 @@ snd_wavefront_fx_start (snd_wavefront_t *dev)
err = 0; err = 0;
out: out:
#ifndef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL
release_firmware(firmware); release_firmware(firmware);
#endif
return err; return err;
} }
#ifndef CONFIG_SND_WAVEFRONT_FIRMWARE_IN_KERNEL
MODULE_FIRMWARE("yamaha/yss225_registers.bin"); MODULE_FIRMWARE("yamaha/yss225_registers.bin");
#endif
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment