/* SPDX-License-Identifier: MIT */ /* * Copyright © 2022 Intel Corporation */ #ifndef _XE_GUC_CT_TYPES_H_ #define _XE_GUC_CT_TYPES_H_ #include <linux/interrupt.h> #include <linux/iosys-map.h> #include <linux/spinlock_types.h> #include <linux/wait.h> #include <linux/xarray.h> #include "abi/guc_communication_ctb_abi.h" struct xe_bo; /** * struct guc_ctb_info - GuC command transport buffer (CTB) info */ struct guc_ctb_info { … }; /** * struct guc_ctb - GuC command transport buffer (CTB) */ struct guc_ctb { … }; /** * struct guc_ctb_snapshot - GuC command transport buffer (CTB) snapshot */ struct guc_ctb_snapshot { … }; /** * struct xe_guc_ct_snapshot - GuC command transport (CT) snapshot */ struct xe_guc_ct_snapshot { … }; /** * enum xe_guc_ct_state - CT state * @XE_GUC_CT_STATE_NOT_INITIALIZED: CT not initialized, messages not expected in this state * @XE_GUC_CT_STATE_DISABLED: CT disabled, messages not expected in this state * @XE_GUC_CT_STATE_STOPPED: CT stopped, drop messages without errors * @XE_GUC_CT_STATE_ENABLED: CT enabled, messages sent / received in this state */ enum xe_guc_ct_state { … }; /** * struct xe_guc_ct - GuC command transport (CT) layer * * Includes a pair of CT buffers for bi-directional communication and tracking * for the H2G and G2H requests sent and received through the buffers. */ struct xe_guc_ct { … }; #endif