summaryrefslogtreecommitdiff
path: root/include/linux/psp-platform-access.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/psp-platform-access.h')
-rw-r--r--include/linux/psp-platform-access.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/psp-platform-access.h b/include/linux/psp-platform-access.h
index 977df5cfd494..89df4549fada 100644
--- a/include/linux/psp-platform-access.h
+++ b/include/linux/psp-platform-access.h
@@ -35,6 +35,21 @@ struct psp_request {
int psp_send_platform_access_msg(enum psp_platform_access_msg, struct psp_request *req);
/**
+ * psp_ring_platform_doorbell() - Ring platform doorbell
+ *
+ * This function is intended to be used by drivers outside of ccp to ring the
+ * platform doorbell with a message.
+ *
+ * Returns:
+ * 0: success
+ * -%EBUSY: mailbox in recovery or in use
+ * -%ENODEV: driver not bound with PSP device
+ * -%ETIMEDOUT: request timed out
+ * -%EIO: unknown error (see kernel log)
+ */
+int psp_ring_platform_doorbell(int msg);
+
+/**
* psp_check_platform_access_status() - Checks whether platform features is ready
*
* This function is intended to be used by drivers outside of ccp to determine