| 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 |
