linux/drivers/gpu/drm/xe/xe_guc_hxg_helpers.h

/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2023 Intel Corporation
 */

#ifndef _XE_GUC_HXG_HELPERS_H_
#define _XE_GUC_HXG_HELPERS_H_

#include <linux/bitfield.h>
#include <linux/types.h>

#include "abi/guc_messages_abi.h"

/**
 * hxg_sizeof - Queries size of the object or type (in HXG units).
 * @T: the object or type
 *
 * Force a compilation error if actual size is not aligned to HXG unit (u32).
 *
 * Return: size in dwords (u32).
 */
#define hxg_sizeof(T)

static inline const char *guc_hxg_type_to_string(unsigned int type)
{}

static inline bool guc_hxg_type_is_action(unsigned int type)
{}

static inline bool guc_hxg_type_is_reply(unsigned int type)
{}

static inline u32 guc_hxg_msg_encode_success(u32 *msg, u32 data0)
{}

static inline u32 guc_hxg_msg_encode_failure(u32 *msg, u32 error, u32 hint)
{}

static inline u32 guc_hxg_msg_encode_busy(u32 *msg, u32 counter)
{}

static inline u32 guc_hxg_msg_encode_retry(u32 *msg, u32 reason)
{}

#endif