blob: 724041e81aa75a7d7be9bbb4e60b2553c363340b [file] [log] [blame] [edit]
// 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;
}