2 * Greybus Firmware Management Header
4 * Copyright 2016 Google Inc.
5 * Copyright 2016 Linaro Ltd.
7 * Released under the GPLv2 only.
15 #define FW_NAME_PREFIX "gmp_"
18 * Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf"
19 * (3 + 1 + 4 * (8 + 1) + 10 + 1 + 4 + 1)
21 #define FW_NAME_SIZE 56
23 /* Firmware Management Protocol specific functions */
24 int fw_mgmt_init(void);
25 void fw_mgmt_exit(void);
26 struct gb_connection
*to_fw_mgmt_connection(struct device
*dev
);
27 int gb_fw_mgmt_request_handler(struct gb_operation
*op
);
28 int gb_fw_mgmt_connection_init(struct gb_connection
*connection
);
29 void gb_fw_mgmt_connection_exit(struct gb_connection
*connection
);
31 /* Firmware Download Protocol specific functions */
32 int gb_fw_download_request_handler(struct gb_operation
*op
);
33 int gb_fw_download_connection_init(struct gb_connection
*connection
);
34 void gb_fw_download_connection_exit(struct gb_connection
*connection
);
36 /* CAP Protocol specific functions */
39 int gb_cap_connection_init(struct gb_connection
*connection
);
40 void gb_cap_connection_exit(struct gb_connection
*connection
);
42 #endif /* __FIRMWARE_H */