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-2016 Texas Instruments Incorporated - http://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; << 13 << 14 /** 20 /** 15 * struct ti_msgmgr_message - Message Manager 21 * struct ti_msgmgr_message - Message Manager structure 16 * @len: Length of data in the Buffer 22 * @len: Length of data in the Buffer 17 * @buf: Buffer pointer 23 * @buf: Buffer pointer 18 * @chan_rx: Expected channel for response, mu << 19 * @timeout_rx_ms: Timeout value to use if pol << 20 * 24 * 21 * This is the structure for data used in mbox 25 * This is the structure for data used in mbox_send_message 22 * the length of data buffer used depends on t 26 * the length of data buffer used depends on the SoC integration 23 * parameters - each message may be 64, 128 by 27 * parameters - each message may be 64, 128 bytes long depending 24 * on SoC. Client is supposed to be aware of t 28 * on SoC. Client is supposed to be aware of this. 25 */ 29 */ 26 struct ti_msgmgr_message { 30 struct ti_msgmgr_message { 27 size_t len; 31 size_t len; 28 u8 *buf; 32 u8 *buf; 29 struct mbox_chan *chan_rx; << 30 int timeout_rx_ms; << 31 }; 33 }; 32 34 33 #endif /* TI_MSGMGR_H */ 35 #endif /* TI_MSGMGR_H */ 34 36
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.