ti-msgmgr.h 890 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Texas Instruments' Message Manager
  4. *
  5. * Copyright (C) 2015-2022 Texas Instruments Incorporated - https://www.ti.com/
  6. * Nishanth Menon
  7. */
  8. #ifndef TI_MSGMGR_H
  9. #define TI_MSGMGR_H
  10. struct mbox_chan;
  11. /**
  12. * struct ti_msgmgr_message - Message Manager structure
  13. * @len: Length of data in the Buffer
  14. * @buf: Buffer pointer
  15. * @chan_rx: Expected channel for response, must be provided to use polled rx
  16. * @timeout_rx_ms: Timeout value to use if polling for response
  17. *
  18. * This is the structure for data used in mbox_send_message
  19. * the length of data buffer used depends on the SoC integration
  20. * parameters - each message may be 64, 128 bytes long depending
  21. * on SoC. Client is supposed to be aware of this.
  22. */
  23. struct ti_msgmgr_message {
  24. size_t len;
  25. u8 *buf;
  26. struct mbox_chan *chan_rx;
  27. int timeout_rx_ms;
  28. };
  29. #endif /* TI_MSGMGR_H */