/* * Mike Isely <isely@pobox.com> - The FWSEND parameter controls the * size of the firmware chunks sent down the I2C bus to the chip. * Previously this had been set to 1024 but unfortunately some I2C * implementations can't transfer data in such big gulps. * Specifically, the pvrusb2 driver has a hard limit of around 60 * bytes, due to the encapsulation there of I2C traffic into USB * messages. So we have to significantly reduce this parameter.
*/ #define FWSEND 48
#define FWDEV(x) &((x)->dev)
staticchar *firmware = "";
module_param(firmware, charp, 0444);
MODULE_PARM_DESC(firmware, "Firmware image to load");
if (firmware[0]) return firmware; if (is_cx2388x(state)) return CX2388x_FIRMWARE; if (is_cx231xx(state)) return CX231xx_FIRMWARE; return CX25840_FIRMWARE;
}
staticint check_fw_load(struct i2c_client *client, int size)
{ /* DL_ADDR_HB DL_ADDR_LB */ int s = cx25840_read(client, 0x801) << 8;
s |= cx25840_read(client, 0x800);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.