summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/firmware.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2016-04-28 10:06:38 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-04-29 14:34:32 -0700
commitcca22207673896262443c72f19b049552d65f88e (patch)
tree210b5f5de80bdd89340301f5cf95574ef42ac5cd /drivers/staging/greybus/firmware.h
parent7adb32b429ce38bae39e277ae2cc37c93770104f (diff)
downloadlinux-cca22207673896262443c72f19b049552d65f88e.tar.gz
linux-cca22207673896262443c72f19b049552d65f88e.tar.bz2
linux-cca22207673896262443c72f19b049552d65f88e.zip
greybus: firmware: Add firmware-download protocol driver
This patch adds Firmware Download Protocol support to firmware core, which allows an Interface to download a firmware package over Unipro. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Jun Li <li_jun@projectara.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/firmware.h')
-rw-r--r--drivers/staging/greybus/firmware.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/staging/greybus/firmware.h b/drivers/staging/greybus/firmware.h
new file mode 100644
index 000000000000..c5736d5f96a2
--- /dev/null
+++ b/drivers/staging/greybus/firmware.h
@@ -0,0 +1,20 @@
+/*
+ * Greybus Firmware Management Header
+ *
+ * Copyright 2016 Google Inc.
+ * Copyright 2016 Linaro Ltd.
+ *
+ * Released under the GPLv2 only.
+ */
+
+#ifndef __FIRMWARE_H
+#define __FIRMWARE_H
+
+#include "greybus.h"
+
+/* 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);
+
+#endif /* __FIRMWARE_H */