/** * struct fw_upload_ops - device specific operations to support firmware upload * @prepare: Required: Prepare secure update * @write: Required: The write() op receives the remaining * size to be written and must return the actual * size written or a negative error code. The write() * op will be called repeatedly until all data is * written. * @poll_complete: Required: Check for the completion of the * HW authentication/programming process. * @cancel: Required: Request cancellation of update. This op * is called from the context of a different kernel * thread, so race conditions need to be considered. * @cleanup: Optional: Complements the prepare() * function and is called at the completion * of the update, on success or failure, if the * prepare function succeeded.
*/ struct fw_upload_ops { enum fw_upload_err (*prepare)(struct fw_upload *fw_upload, const u8 *data, u32 size); enum fw_upload_err (*write)(struct fw_upload *fw_upload, const u8 *data, u32 offset,
u32 size, u32 *written); enum fw_upload_err (*poll_complete)(struct fw_upload *fw_upload); void (*cancel)(struct fw_upload *fw_upload); void (*cleanup)(struct fw_upload *fw_upload);
};
struct module; struct device;
/* * Built-in firmware functionality is only available if FW_LOADER=y, but not * FW_LOADER=m
*/ #ifdef CONFIG_FW_LOADER bool firmware_request_builtin(struct firmware *fw, constchar *name); #else staticinlinebool firmware_request_builtin(struct firmware *fw, constchar *name)
{ returnfalse;
} #endif
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 ist noch experimentell.