| 1 | /* SPDX-License-Identifier: MIT */ |
| 2 | /* |
| 3 | * Copyright © 2022 Intel Corporation |
| 4 | */ |
| 5 | |
| 6 | #ifndef _XE_REG_SR_TYPES_ |
| 7 | #define _XE_REG_SR_TYPES_ |
| 8 | |
| 9 | #include <linux/types.h> |
| 10 | #include <linux/xarray.h> |
| 11 | |
| 12 | #include "regs/xe_reg_defs.h" |
| 13 | |
| 14 | struct xe_reg_sr_entry { |
| 15 | struct xe_reg reg; |
| 16 | u32 clr_bits; |
| 17 | u32 set_bits; |
| 18 | /* Mask for bits to consider when reading value back */ |
| 19 | u32 read_mask; |
| 20 | }; |
| 21 | |
| 22 | struct xe_reg_sr { |
| 23 | struct xarray xa; |
| 24 | const char *name; |
| 25 | |
| 26 | #if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST) |
| 27 | unsigned int errors; |
| 28 | #endif |
| 29 | }; |
| 30 | |
| 31 | #endif |
| 32 | |