#include "i915_drv.h"
#include "i915_pci.h"
#include "i915_reg.h"
#include "intel_memory_region.h"
#include "intel_pci_config.h"
#include "intel_region_lmem.h"
#include "intel_region_ttm.h"
#include "gem/i915_gem_lmem.h"
#include "gem/i915_gem_region.h"
#include "gem/i915_gem_ttm.h"
#include "gt/intel_gt.h"
#include "gt/intel_gt_mcr.h"
#include "gt/intel_gt_regs.h"
#ifdef CONFIG_64BIT
static void _release_bars(struct pci_dev *pdev)
{ … }
static void
_resize_bar(struct drm_i915_private *i915, int resno, resource_size_t size)
{ … }
static void i915_resize_lmem_bar(struct drm_i915_private *i915, resource_size_t lmem_size)
{ … }
#else
static void i915_resize_lmem_bar(struct drm_i915_private *i915, resource_size_t lmem_size) {}
#endif
static int
region_lmem_release(struct intel_memory_region *mem)
{ … }
static int
region_lmem_init(struct intel_memory_region *mem)
{ … }
static const struct intel_memory_region_ops intel_region_lmem_ops = …;
static bool get_legacy_lowmem_region(struct intel_uncore *uncore,
u64 *start, u32 *size)
{ … }
static int reserve_lowmem_region(struct intel_uncore *uncore,
struct intel_memory_region *mem)
{ … }
static struct intel_memory_region *setup_lmem(struct intel_gt *gt)
{ … }
struct intel_memory_region *intel_gt_setup_lmem(struct intel_gt *gt)
{ … }