xref: /linux/drivers/gpu/drm/i915/i915_mmio_range.c (revision 815e260a18a3af4dab59025ee99a7156c0e8b5e0)
1 // SPDX-License-Identifier: MIT
2 /*
3  * Copyright © 2025 Intel Corporation
4  */
5 
6 #include "i915_mmio_range.h"
7 
8 bool i915_mmio_range_table_contains(u32 addr, const struct i915_mmio_range *table)
9 {
10 	while (table->start || table->end) {
11 		if (addr >= table->start && addr <= table->end)
12 			return true;
13 
14 		table++;
15 	}
16 
17 	return false;
18 }
19