Files
linux/drivers/gpu/drm/i915/i915_mmio_range.h
Matt Atwood 27e2151691 drm/i915: move and rename reg_in_range_table
reg_in_range_table is a useful function that is used in multiple places,
and will be needed for WA_BB implementation later.

Let's move this function and i915_range struct to its own file, as we are
trying to move away from i915_utils files.

v2: move functions to their own file
v3: use correct naming convention

Suggested-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Link:
https://lore.kernel.org/r/20251009215210.41000-1-matthew.s.atwood@intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2025-10-16 15:20:56 -04:00

20 lines
408 B
C

/* SPDX-License-Identifier: MIT */
/*
* Copyright © 2025 Intel Corporation
*/
#ifndef __I915_MMIO_RANGE_H__
#define __I915_MMIO_RANGE_H__
#include <linux/types.h>
/* Other register ranges (e.g., shadow tables, MCR tables, etc.) */
struct i915_mmio_range {
u32 start;
u32 end;
};
bool i915_mmio_range_table_contains(u32 addr, const struct i915_mmio_range *table);
#endif /* __I915_MMIO_RANGE_H__ */