aboutsummaryrefslogtreecommitdiff
path: root/include/opal-api.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2017-05-26 12:54:29 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-06 17:59:45 +1000
commit43b24859ed52f98d9212f977b112914876784788 (patch)
treee462120040d4aad48d39b908f412c134426416fd /include/opal-api.h
parentbf06664368408d26c0af1dec7de80a5fdbf5bf98 (diff)
downloadskiboot-43b24859ed52f98d9212f977b112914876784788.zip
skiboot-43b24859ed52f98d9212f977b112914876784788.tar.gz
skiboot-43b24859ed52f98d9212f977b112914876784788.tar.bz2
opal-prd: Add firmware_request & firmware_notify implementations
This change adds the implementation of firmware_request() and firmware_notify(). To do this, we need to add a message queue, so that we can properly handle out-of-order messages coming from firmware. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/opal-api.h')
-rw-r--r--include/opal-api.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/opal-api.h b/include/opal-api.h
index 80033c6..4d5b1eb 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -1029,6 +1029,9 @@ enum opal_prd_msg_type {
OPAL_PRD_MSG_TYPE_OCC_ERROR, /* HBRT <-- OPAL */
OPAL_PRD_MSG_TYPE_OCC_RESET, /* HBRT <-- OPAL */
OPAL_PRD_MSG_TYPE_OCC_RESET_NOTIFY, /* HBRT --> OPAL */
+ OPAL_PRD_MSG_TYPE_FIRMWARE_REQUEST, /* HBRT --> OPAL */
+ OPAL_PRD_MSG_TYPE_FIRMWARE_RESPONSE, /* HBRT <-- OPAL */
+ OPAL_PRD_MSG_TYPE_FIRMWARE_NOTIFY, /* HBRT <-- OPAL */
};
struct opal_prd_msg_header {
@@ -1060,6 +1063,19 @@ struct opal_prd_msg {
struct {
__be64 chip;
} occ_reset;
+ struct {
+ __be64 req_len;
+ __be64 resp_len;
+ char data[];
+ } fw_req;
+ struct {
+ __be64 len;
+ char data[];
+ } fw_resp;
+ struct {
+ __be64 len;
+ char data[];
+ } fw_notify;
};
};