xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/gt/intel_rc6_types.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: intel_rc6_types.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $	*/
2 
3 /*
4  * SPDX-License-Identifier: MIT
5  *
6  * Copyright © 2019 Intel Corporation
7  */
8 
9 #ifndef INTEL_RC6_TYPES_H
10 #define INTEL_RC6_TYPES_H
11 
12 #include <linux/spinlock.h>
13 #include <linux/types.h>
14 
15 #include "intel_engine_types.h"
16 
17 struct drm_i915_gem_object;
18 
19 struct intel_rc6 {
20 	u64 prev_hw_residency[4];
21 	u64 cur_residency[4];
22 
23 	u32 ctl_enable;
24 
25 	struct drm_i915_gem_object *pctx;
26 
27 	bool supported : 1;
28 	bool enabled : 1;
29 	bool manual : 1;
30 	bool wakeref : 1;
31 };
32 
33 #endif /* INTEL_RC6_TYPES_H */
34