summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Polyudov <apolyudov@google.com>2016-07-10 14:26:18 -0700
committerAlexey Polyudov <apolyudov@google.com>2016-07-11 09:34:55 -0700
commit966a9f3f7834bae2de0b5733922aaccffa50e965 (patch)
tree7d991e4337089e56ff72396b8098fecff2f7922b
parent4a2683f893e938944fc39f66a0f87d429fcc70bf (diff)
downloadlibhardware-966a9f3f7834bae2de0b5733922aaccffa50e965.tar.gz
context hub: add reboot command/response and reboot notification
Change-Id: I20447c0b20eb2d6c4019f8038cb19749fee0126b
-rw-r--r--include/hardware/context_hub.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/hardware/context_hub.h b/include/hardware/context_hub.h
index 99756cb2..828f2dde 100644
--- a/include/hardware/context_hub.h
+++ b/include/hardware/context_hub.h
@@ -358,6 +358,27 @@ struct query_apps_request_t {
*/
/**
+ * CONTEXT_HUB_OS_REBOOT
+ * Reboots context hub OS, restarts all the nanoApps.
+ * No reboot notification is sent to nanoApps; reboot happens immediately and
+ * unconditionally; all volatile FW state and any data is lost as a result
+ *
+ * Payload : none
+ *
+ * Response : status_response_t
+ * On receipt of a successful response, it is
+ * expected that
+ *
+ * i) system reboot has completed;
+ * status contains reboot reason code (platform-specific)
+ *
+ * Unsolicited response:
+ * System may send unsolicited response at any time;
+ * this should be interpreted as FW reboot, and necessary setup
+ * has to be done (same or similar to the setup done on system boot)
+ */
+
+/**
* All communication between the context hubs and the Context Hub Service is in
* the form of messages. Some message types are distinguished and their
* Semantics shall be well defined.
@@ -372,6 +393,7 @@ typedef enum {
CONTEXT_HUB_UNLOAD_APP = 4, // Unload a specified app
CONTEXT_HUB_QUERY_APPS = 5, // Query for app(s) info on hub
CONTEXT_HUB_QUERY_MEMORY = 6, // Query for memory info
+ CONTEXT_HUB_OS_REBOOT = 7, // Request to reboot context HUB OS
} hub_messages_e;
#define CONTEXT_HUB_TYPE_PRIVATE_MSG_BASE 0x00400