#include <drm/ttm/ttm_placement.h>
#include <linux/scatterlist.h>
#include "gem/i915_gem_region.h"
#include "intel_memory_region.h"
#include "intel_region_ttm.h"
#include "mock_region.h"
static void mock_region_put_pages(struct drm_i915_gem_object *obj,
struct sg_table *pages)
{ … }
static int mock_region_get_pages(struct drm_i915_gem_object *obj)
{ … }
static const struct drm_i915_gem_object_ops mock_region_obj_ops = …;
static int mock_object_init(struct intel_memory_region *mem,
struct drm_i915_gem_object *obj,
resource_size_t offset,
resource_size_t size,
resource_size_t page_size,
unsigned int flags)
{ … }
static int mock_region_fini(struct intel_memory_region *mem)
{ … }
static const struct intel_memory_region_ops mock_region_ops = …;
struct intel_memory_region *
mock_region_create(struct drm_i915_private *i915,
resource_size_t start,
resource_size_t size,
resource_size_t min_page_size,
resource_size_t io_start,
resource_size_t io_size)
{ … }