mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 22:25:03 +00:00
ec0ad86817
With the goal of moving the core of the greybus code out of staging, the include files need to be moved to include/linux/greybus.h and include/linux/greybus/ Cc: Vaibhav Hiremath <hvaibhav.linux@gmail.com> Cc: Johan Hovold <johan@kernel.org> Cc: Vaibhav Agarwal <vaibhav.sr@gmail.com> Cc: Rui Miguel Silva <rmfrfs@gmail.com> Cc: David Lin <dtwlin@gmail.com> Cc: "Bryan O'Donoghue" <pure.logic@nexus-software.ie> Cc: greybus-dev@lists.linaro.org Cc: devel@driverdev.osuosl.org Acked-by: Mark Greer <mgreer@animalcreek.com> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Alex Elder <elder@kernel.org> Link: https://lore.kernel.org/r/20190825055429.18547-8-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Greybus Firmware Management Header
|
|
*
|
|
* Copyright 2016 Google Inc.
|
|
* Copyright 2016 Linaro Ltd.
|
|
*/
|
|
|
|
#ifndef __FIRMWARE_H
|
|
#define __FIRMWARE_H
|
|
|
|
#include <linux/greybus.h>
|
|
|
|
#define FW_NAME_PREFIX "gmp_"
|
|
|
|
/*
|
|
* Length of the string in format: "FW_NAME_PREFIX""%08x_%08x_%08x_%08x_%s.tftf"
|
|
* (3 + 1 + 4 * (8 + 1) + 10 + 1 + 4 + 1)
|
|
*/
|
|
#define FW_NAME_SIZE 56
|
|
|
|
/* Firmware Management Protocol specific functions */
|
|
int fw_mgmt_init(void);
|
|
void fw_mgmt_exit(void);
|
|
struct gb_connection *to_fw_mgmt_connection(struct device *dev);
|
|
int gb_fw_mgmt_request_handler(struct gb_operation *op);
|
|
int gb_fw_mgmt_connection_init(struct gb_connection *connection);
|
|
void gb_fw_mgmt_connection_exit(struct gb_connection *connection);
|
|
|
|
/* Firmware Download Protocol specific functions */
|
|
int gb_fw_download_request_handler(struct gb_operation *op);
|
|
int gb_fw_download_connection_init(struct gb_connection *connection);
|
|
void gb_fw_download_connection_exit(struct gb_connection *connection);
|
|
|
|
/* CAP Protocol specific functions */
|
|
int cap_init(void);
|
|
void cap_exit(void);
|
|
int gb_cap_connection_init(struct gb_connection *connection);
|
|
void gb_cap_connection_exit(struct gb_connection *connection);
|
|
|
|
#endif /* __FIRMWARE_H */
|