25 #define SOURCEFILE_NAME "hpidspcd.c"
47 sprintf(fw_name,
"asihpi/dsp%04x.bin", adapter);
51 if (err || !firmware) {
53 "%d, request_firmware failed for %s\n", err,
57 if (firmware->
size <
sizeof(header)) {
58 dev_printk(
KERN_ERR, &dev->
dev,
"Header size too small %s\n",
62 memcpy(&header, firmware->
data,
sizeof(header));
64 if ((header.
type != 0x45444F43) ||
66 || (header.
size != firmware->
size)) {
68 "Invalid firmware header size %d != file %zd\n",
76 "Incompatible firmware version "
77 "DSP image %X != Driver %X\n", header.
version,
84 "Firmware: release version mismatch DSP image %X != Driver %X\n",
96 dsp_code->
pvt->firmware = firmware;
130 *pword = ((
u32 *)(dsp_code->
pvt->firmware->data))[dsp_code->
144 ((
u32 *)(dsp_code->
pvt->firmware->data)) +