Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Texas Instruments' Message Manager
0004  *
0005  * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/
0006  *  Nishanth Menon
0007  */
0008 
0009 #ifndef TI_MSGMGR_H
0010 #define TI_MSGMGR_H
0011 
0012 struct mbox_chan;
0013 
0014 /**
0015  * struct ti_msgmgr_message - Message Manager structure
0016  * @len: Length of data in the Buffer
0017  * @buf: Buffer pointer
0018  * @chan_rx: Expected channel for response, must be provided to use polled rx
0019  * @timeout_rx_ms: Timeout value to use if polling for response
0020  *
0021  * This is the structure for data used in mbox_send_message
0022  * the length of data buffer used depends on the SoC integration
0023  * parameters - each message may be 64, 128 bytes long depending
0024  * on SoC. Client is supposed to be aware of this.
0025  */
0026 struct ti_msgmgr_message {
0027     size_t len;
0028     u8 *buf;
0029     struct mbox_chan *chan_rx;
0030     int timeout_rx_ms;
0031 };
0032 
0033 #endif /* TI_MSGMGR_H */