Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / gem / selftests / huge_gem_object.h
blobb8cf31b7bf146a2e329073b6b8712e42bd037b7d
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2016 Intel Corporation
5 */
7 #ifndef __HUGE_GEM_OBJECT_H
8 #define __HUGE_GEM_OBJECT_H
10 #include <linux/types.h>
12 #include "gem/i915_gem_object_types.h"
14 struct drm_i915_private;
16 struct drm_i915_gem_object *
17 huge_gem_object(struct drm_i915_private *i915,
18 phys_addr_t phys_size,
19 dma_addr_t dma_size);
21 static inline phys_addr_t
22 huge_gem_object_phys_size(struct drm_i915_gem_object *obj)
24 return obj->scratch;
27 static inline dma_addr_t
28 huge_gem_object_dma_size(struct drm_i915_gem_object *obj)
30 return obj->base.size;
33 #endif /* !__HUGE_GEM_OBJECT_H */