root/drivers/gpu/drm/xe/xe_reg_sr_types.h
/* SPDX-License-Identifier: MIT */
/*
 * Copyright © 2022 Intel Corporation
 */

#ifndef _XE_REG_SR_TYPES_H_
#define _XE_REG_SR_TYPES_H_

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

#include "regs/xe_reg_defs.h"

struct xe_reg_sr_entry {
        struct xe_reg   reg;
        u32             clr_bits;
        u32             set_bits;
        /* Mask for bits to consider when reading value back */
        u32             read_mask;
};

struct xe_reg_sr {
        struct xarray xa;
        const char *name;

#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
        unsigned int errors;
#endif
};

#endif