From 43b24859ed52f98d9212f977b112914876784788 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Fri, 26 May 2017 12:54:29 +1000 Subject: 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 Signed-off-by: Stewart Smith --- include/opal-api.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/opal-api.h') 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; }; }; -- cgit v1.1