/* Transfer flag used for sending components to the firmware */ #define PLDM_TRANSFER_FLAG_START BIT(0) #define PLDM_TRANSFER_FLAG_MIDDLE BIT(1) #define PLDM_TRANSFER_FLAG_END BIT(2)
struct pldmfw_ops;
/* Main entry point to the PLDM firmware update engine. Device drivers * should embed this in a private structure and use container_of to obtain * a pointer to their own data, used to implement the device specific * operations.
*/
/* Operations invoked by the generic PLDM firmware update engine. Used to * implement device specific logic. * * @match_record: check if the device matches the given record. For * convenience, a standard implementation is provided for PCI devices. * * @send_package_data: send the package data associated with the matching * record to firmware. * * @send_component_table: send the component data associated with a given * component to firmware. Called once for each applicable component. * * @flash_component: Flash the data for a given component to the device. * Called once for each applicable component, after all component tables have * been sent. * * @finalize_update: (optional) Finish the update. Called after all components * have been flashed.
*/ struct pldmfw_ops { bool (*match_record)(struct pldmfw *context, struct pldmfw_record *record); int (*send_package_data)(struct pldmfw *context, const u8 *data, u16 length); int (*send_component_table)(struct pldmfw *context, struct pldmfw_component *component,
u8 transfer_flag); int (*flash_component)(struct pldmfw *context, struct pldmfw_component *component); int (*finalize_update)(struct pldmfw *context);
};
int pldmfw_flash_image(struct pldmfw *context, conststruct firmware *fw);
#endif
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
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.