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