162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci * 362306a36Sopenharmony_ci * Header file for the CDX Controller 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifndef _CDX_CONTROLLER_H_ 962306a36Sopenharmony_ci#define _CDX_CONTROLLER_H_ 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include <linux/cdx/cdx_bus.h> 1262306a36Sopenharmony_ci#include "mcdi_functions.h" 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_civoid cdx_rpmsg_post_probe(struct cdx_controller *cdx); 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_civoid cdx_rpmsg_pre_remove(struct cdx_controller *cdx); 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ciint cdx_rpmsg_send(struct cdx_mcdi *cdx_mcdi, 1962306a36Sopenharmony_ci const struct cdx_dword *hdr, size_t hdr_len, 2062306a36Sopenharmony_ci const struct cdx_dword *sdu, size_t sdu_len); 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_civoid cdx_rpmsg_read_resp(struct cdx_mcdi *cdx_mcdi, 2362306a36Sopenharmony_ci struct cdx_dword *outbuf, size_t offset, 2462306a36Sopenharmony_ci size_t outlen); 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ciint cdx_setup_rpmsg(struct platform_device *pdev); 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_civoid cdx_destroy_rpmsg(struct platform_device *pdev); 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#endif /* _CDX_CONT_PRIV_H_ */ 31