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