22 { .id =
CYPRESS_AN2135, .name =
"Cypress AN2135", .cs_reg = 0x7f92 },
23 { .id =
CYPRESS_AN2235, .name =
"Cypress AN2235", .cs_reg = 0x7f92 },
24 { .id =
CYPRESS_FX2, .name =
"Cypress FX2", .cs_reg = 0xe600 },
48 dev_err(&udev->dev,
"%s: kmalloc() failed\n", KBUILD_MODNAME);
54 ret = usb_cypress_writemem(udev, cypress[type].cs_reg, hx->
data, 1);
56 dev_err(&udev->dev,
"%s: CPU stop failed=%d\n",
70 ret = usb_cypress_writemem(udev, hx->
addr, hx->
data, hx->
len);
73 }
else if (ret != hx->
len) {
74 dev_err(&udev->dev,
"%s: error while transferring " \
75 "firmware (transferred size=%d, " \
77 KBUILD_MODNAME, ret, hx->
len);
85 ret = usb_cypress_writemem(udev, cypress[type].cs_reg, hx->
data, 1);
87 dev_err(&udev->dev,
"%s: CPU start failed=%d\n",
112 if ((*pos + hx->
len + 4) >= fw->
size)
115 hx->
addr = b[1] | (b[2] << 8);
118 if (hx->
type == 0x04) {
121 hx->
addr |= (b[4] << 24) | (b[5] << 16);