xref: /openbsd-src/sys/dev/pci/drm/i915/i915_config.h (revision f005ef32267c16bdb134f0e9fa4477dbe07c263a)
1 /* SPDX-License-Identifier: MIT */
2 /*
3  * Copyright © 2023 Intel Corporation
4  */
5 
6 #ifndef __I915_CONFIG_H__
7 #define __I915_CONFIG_H__
8 
9 #include <linux/types.h>
10 #include <linux/limits.h>
11 
12 #define drm_i915_private inteldrm_softc
13 struct drm_i915_private;
14 
15 unsigned long i915_fence_context_timeout(const struct drm_i915_private *i915,
16 					 u64 context);
17 
18 static inline unsigned long
i915_fence_timeout(const struct drm_i915_private * i915)19 i915_fence_timeout(const struct drm_i915_private *i915)
20 {
21 	return i915_fence_context_timeout(i915, U64_MAX);
22 }
23 
24 #endif /* __I915_CONFIG_H__ */
25