cdx_controller.h 773 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Header file for the CDX Controller
  4. *
  5. * Copyright (C) 2022-2023, Advanced Micro Devices, Inc.
  6. */
  7. #ifndef _CDX_CONTROLLER_H_
  8. #define _CDX_CONTROLLER_H_
  9. #include <linux/cdx/cdx_bus.h>
  10. #include "mcdi_functions.h"
  11. void cdx_rpmsg_post_probe(struct cdx_controller *cdx);
  12. void cdx_rpmsg_pre_remove(struct cdx_controller *cdx);
  13. int cdx_rpmsg_send(struct cdx_mcdi *cdx_mcdi,
  14. const struct cdx_dword *hdr, size_t hdr_len,
  15. const struct cdx_dword *sdu, size_t sdu_len);
  16. void cdx_rpmsg_read_resp(struct cdx_mcdi *cdx_mcdi,
  17. struct cdx_dword *outbuf, size_t offset,
  18. size_t outlen);
  19. int cdx_setup_rpmsg(struct platform_device *pdev);
  20. void cdx_destroy_rpmsg(struct platform_device *pdev);
  21. #endif /* _CDX_CONT_PRIV_H_ */