1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2023 Intel Corporation
6 #ifndef _XE_GUC_RELAY_H_
7 #define _XE_GUC_RELAY_H_
9 #include <linux/types.h>
10 #include <linux/errno.h>
14 int xe_guc_relay_init(struct xe_guc_relay *relay);
16 int xe_guc_relay_send_to_pf(struct xe_guc_relay *relay,
17 const u32 *msg, u32 len, u32 *buf, u32 buf_size);
19 int xe_guc_relay_process_guc2vf(struct xe_guc_relay *relay, const u32 *msg, u32 len);
22 int xe_guc_relay_send_to_vf(struct xe_guc_relay *relay, u32 target,
23 const u32 *msg, u32 len, u32 *buf, u32 buf_size);
24 int xe_guc_relay_process_guc2pf(struct xe_guc_relay *relay, const u32 *msg, u32 len);
26 static inline int xe_guc_relay_send_to_vf(struct xe_guc_relay *relay, u32 target,
27 const u32 *msg, u32 len, u32 *buf, u32 buf_size)
31 static inline int xe_guc_relay_process_guc2pf(struct xe_guc_relay *relay, const u32 *msg, u32 len)