xref: /linux/drivers/gpu/drm/i915/gem/i915_gem_clflush.h (revision ab93e0dd72c37d378dd936f031ffb83ff2bd87ce)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2016 Intel Corporation
4  */
5 
6 #ifndef __I915_GEM_CLFLUSH_H__
7 #define __I915_GEM_CLFLUSH_H__
8 
9 #include <linux/types.h>
10 
11 struct drm_i915_private;
12 struct drm_i915_gem_object;
13 
14 bool i915_gem_clflush_object(struct drm_i915_gem_object *obj,
15 			     unsigned int flags);
16 #define I915_CLFLUSH_FORCE BIT(0)
17 #define I915_CLFLUSH_SYNC BIT(1)
18 
19 #endif /* __I915_GEM_CLFLUSH_H__ */
20