i915_mmio_range.c 331 B

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