Linux-libre 5.7.6-gnu
[librecmc/linux-libre.git] / drivers / staging / greybus / firmware.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Greybus Firmware Management Header
4  *
5  * Copyright 2016 Google Inc.
6  * Copyright 2016 Linaro Ltd.
7  */
8
9 #ifndef __FIRMWARE_H
10 #define __FIRMWARE_H
11
12 #include <linux/greybus.h>
13
14 #define FW_NAME_PREFIX  /*(DEBLOBBED)*/
15
16 /*
17  * Length of the string in format: /*(DEBLOBBED)*/
18 #define FW_NAME_SIZE            56
19
20 /* Firmware Management Protocol specific functions */
21 int fw_mgmt_init(void);
22 void fw_mgmt_exit(void);
23 struct gb_connection *to_fw_mgmt_connection(struct device *dev);
24 int gb_fw_mgmt_request_handler(struct gb_operation *op);
25 int gb_fw_mgmt_connection_init(struct gb_connection *connection);
26 void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
27
28 /* Firmware Download Protocol specific functions */
29 int gb_fw_download_request_handler(struct gb_operation *op);
30 int gb_fw_download_connection_init(struct gb_connection *connection);
31 void gb_fw_download_connection_exit(struct gb_connection *connection);
32
33 /* CAP Protocol specific functions */
34 int cap_init(void);
35 void cap_exit(void);
36 int gb_cap_connection_init(struct gb_connection *connection);
37 void gb_cap_connection_exit(struct gb_connection *connection);
38
39 #endif /* __FIRMWARE_H */