1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (C) 2016 Broadcom
5 * Common header for Broadcom mailbox messages which is shared across
6 * Broadcom SoCs and Broadcom mailbox client drivers.
9 #ifndef _LINUX_BRCM_MESSAGE_H_
10 #define _LINUX_BRCM_MESSAGE_H_
12 #include <linux/scatterlist.h>
14 enum brcm_message_type
{
15 BRCM_MESSAGE_UNKNOWN
= 0,
22 struct brcm_sba_command
{
25 dma_addr_t cmd_dma_addr
;
26 #define BRCM_SBA_CMD_TYPE_A BIT(0)
27 #define BRCM_SBA_CMD_TYPE_B BIT(1)
28 #define BRCM_SBA_CMD_TYPE_C BIT(2)
29 #define BRCM_SBA_CMD_HAS_RESP BIT(3)
30 #define BRCM_SBA_CMD_HAS_OUTPUT BIT(4)
39 enum brcm_message_type type
;
42 struct brcm_message
*msgs
;
43 unsigned int msgs_queued
;
44 unsigned int msgs_count
;
47 struct scatterlist
*src
;
48 struct scatterlist
*dst
;
51 struct brcm_sba_command
*cmds
;
52 unsigned int cmds_count
;
59 #endif /* _LINUX_BRCM_MESSAGE_H_ */