summaryrefslogtreecommitdiff
path: root/include/linux/mailbox/mtk-cmdq-mailbox.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mailbox/mtk-cmdq-mailbox.h')
-rw-r--r--include/linux/mailbox/mtk-cmdq-mailbox.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/mailbox/mtk-cmdq-mailbox.h b/include/linux/mailbox/mtk-cmdq-mailbox.h
index a8f0070c7aa9..9914dcd33e2d 100644
--- a/include/linux/mailbox/mtk-cmdq-mailbox.h
+++ b/include/linux/mailbox/mtk-cmdq-mailbox.h
@@ -78,6 +78,16 @@ struct cmdq_pkt {
void *cl;
};
+/**
+ * cmdq_get_shift_pa() - get the shift bits of physical address
+ * @chan: mailbox channel
+ *
+ * GCE can only fetch the command buffer address from a 32-bit register.
+ * Some SOCs support more than 32-bit command buffer address for GCE, which
+ * requires some shift bits to make the address fit into the 32-bit register.
+ *
+ * Return: the shift bits of physical address
+ */
u8 cmdq_get_shift_pa(struct mbox_chan *chan);
#endif /* __MTK_CMDQ_MAILBOX_H__ */