1 /* SPDX-License-Identifier: GPL-2.0-only */ << 2 /* 1 /* 3 * Texas Instruments' Message Manager 2 * Texas Instruments' Message Manager 4 * 3 * 5 * Copyright (C) 2015-2022 Texas Instruments I 4 * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/ 6 * Nishanth Menon 5 * Nishanth Menon >> 6 * >> 7 * This program is free software; you can redistribute it and/or modify >> 8 * it under the terms of the GNU General Public License version 2 as >> 9 * published by the Free Software Foundation. >> 10 * >> 11 * This program is distributed "as is" WITHOUT ANY WARRANTY of any >> 12 * kind, whether express or implied; without even the implied warranty >> 13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 14 * GNU General Public License for more details. 7 */ 15 */ 8 16 9 #ifndef TI_MSGMGR_H 17 #ifndef TI_MSGMGR_H 10 #define TI_MSGMGR_H 18 #define TI_MSGMGR_H 11 19 12 struct mbox_chan; 20 struct mbox_chan; 13 21 14 /** 22 /** 15 * struct ti_msgmgr_message - Message Manager 23 * struct ti_msgmgr_message - Message Manager structure 16 * @len: Length of data in the Buffer 24 * @len: Length of data in the Buffer 17 * @buf: Buffer pointer 25 * @buf: Buffer pointer 18 * @chan_rx: Expected channel for response, mu 26 * @chan_rx: Expected channel for response, must be provided to use polled rx 19 * @timeout_rx_ms: Timeout value to use if pol 27 * @timeout_rx_ms: Timeout value to use if polling for response 20 * 28 * 21 * This is the structure for data used in mbox 29 * This is the structure for data used in mbox_send_message 22 * the length of data buffer used depends on t 30 * the length of data buffer used depends on the SoC integration 23 * parameters - each message may be 64, 128 by 31 * parameters - each message may be 64, 128 bytes long depending 24 * on SoC. Client is supposed to be aware of t 32 * on SoC. Client is supposed to be aware of this. 25 */ 33 */ 26 struct ti_msgmgr_message { 34 struct ti_msgmgr_message { 27 size_t len; 35 size_t len; 28 u8 *buf; 36 u8 *buf; 29 struct mbox_chan *chan_rx; 37 struct mbox_chan *chan_rx; 30 int timeout_rx_ms; 38 int timeout_rx_ms; 31 }; 39 }; 32 40 33 #endif /* TI_MSGMGR_H */ 41 #endif /* TI_MSGMGR_H */ 34 42
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.