21 { .id =
DEVICE_SPECIFIC, .name =
"Device specific", .cpu_cs_register = 0 },
22 { .id =
CYPRESS_AN2135, .name =
"Cypress AN2135", .cpu_cs_register = 0x7f92 },
23 { .id =
CYPRESS_AN2235, .name =
"Cypress AN2235", .cpu_cs_register = 0x7f92 },
24 { .id =
CYPRESS_FX2, .name =
"Cypress FX2", .cpu_cs_register = 0xe600 },
44 if ((ret = usb_cypress_writemem(udev,cypress[type].cpu_cs_register,&reset,1)) != 1)
45 err(
"could not stop the USB controller CPU.");
48 deb_fw(
"writing to address 0x%04x (buffer: 0x%02x %02x)\n",hx.
addr,hx.
len,hx.
chk);
49 ret = usb_cypress_writemem(udev,hx.
addr,hx.
data,hx.
len);
52 err(
"error while transferring firmware "
53 "(transferred size: %d, block size: %d)",
60 err(
"firmware download failed at %d with %d",pos,ret);
67 if (ret || usb_cypress_writemem(udev,cypress[type].cpu_cs_register,&reset,1) != 1) {
68 err(
"could not restart the USB controller CPU.");
84 err(
"did not find the firmware file. (%s) "
85 "Please see linux/Documentation/dvb/ for more details on firmware-problems. (%d)",
90 info(
"downloading firmware from file '%s'",props->
firmware);
102 err(
"BUG: driver didn't specified a download_firmware-callback, although it claims to have a DEVICE_SPECIFIC one.");
127 if ((*pos + hx->
len + 4) >= fw->
size)
130 hx->
addr = b[1] | (b[2] << 8);
133 if (hx->
type == 0x04) {
135 hx->
addr |= (b[4] << 24) | (b[5] << 16);