1/* 2 * SPDX-License-Identifier: MIT 3 * 4 * Copyright © 2016 Intel Corporation 5 */ 6 7#ifndef __HUGE_GEM_OBJECT_H 8#define __HUGE_GEM_OBJECT_H 9 10#include <linux/types.h> 11 12#include "gem/i915_gem_object_types.h" 13 14struct drm_i915_private; 15 16struct drm_i915_gem_object * 17huge_gem_object(struct drm_i915_private *i915, 18 phys_addr_t phys_size, 19 dma_addr_t dma_size); 20 21static inline phys_addr_t 22huge_gem_object_phys_size(struct drm_i915_gem_object *obj) 23{ 24 return obj->scratch; 25} 26 27static inline dma_addr_t 28huge_gem_object_dma_size(struct drm_i915_gem_object *obj) 29{ 30 return obj->base.size; 31} 32 33#endif /* !__HUGE_GEM_OBJECT_H */ 34