aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mailbox/zynqmp-ipi-message.h
blob: d9f0a7471b5147dc3bb4f7e8113120adbe1d88a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0 */

#ifndef _LINUX_ZYNQMP_IPI_MESSAGE_H_
#define _LINUX_ZYNQMP_IPI_MESSAGE_H_

/* IPI buffer MAX length */
#define IPI_BUF_LEN_MAX 32U

/**
 * struct zynqmp_ipi_message - ZynqMP IPI message structure
 * @len:  Length of message
 * @data: message payload
 *
 * This is the structure for data used in mbox_send_message
 * the maximum length of data buffer is fixed to 12 bytes.
 * Client is supposed to be aware of this.
 */
struct zynqmp_ipi_message {
	size_t len;
	u8 data[0];
};

#endif /* _LINUX_ZYNQMP_IPI_MESSAGE_H_ */