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