File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,11 @@ struct intel_gt *pxp_to_gt(const struct intel_pxp *pxp)
44
44
return container_of (pxp , struct intel_gt , pxp );
45
45
}
46
46
47
+ bool intel_pxp_is_enabled (const struct intel_pxp * pxp )
48
+ {
49
+ return pxp -> ce ;
50
+ }
51
+
47
52
bool intel_pxp_is_active (const struct intel_pxp * pxp )
48
53
{
49
54
return pxp -> arb_is_valid ;
Original file line number Diff line number Diff line change 6
6
#ifndef __INTEL_PXP_H__
7
7
#define __INTEL_PXP_H__
8
8
9
- #include "intel_pxp_types.h"
9
+ #include <linux/errno.h>
10
+ #include <linux/types.h>
10
11
12
+ struct intel_pxp ;
11
13
struct drm_i915_gem_object ;
12
14
13
- static inline bool intel_pxp_is_enabled (const struct intel_pxp * pxp )
14
- {
15
- return pxp -> ce ;
16
- }
17
-
18
15
#ifdef CONFIG_DRM_I915_PXP
19
16
struct intel_gt * pxp_to_gt (const struct intel_pxp * pxp );
17
+ bool intel_pxp_is_enabled (const struct intel_pxp * pxp );
20
18
bool intel_pxp_is_active (const struct intel_pxp * pxp );
21
19
22
20
void intel_pxp_init (struct intel_pxp * pxp );
@@ -48,6 +46,11 @@ static inline int intel_pxp_start(struct intel_pxp *pxp)
48
46
return - ENODEV ;
49
47
}
50
48
49
+ static inline bool intel_pxp_is_enabled (const struct intel_pxp * pxp )
50
+ {
51
+ return false;
52
+ }
53
+
51
54
static inline bool intel_pxp_is_active (const struct intel_pxp * pxp )
52
55
{
53
56
return false;
You can’t perform that action at this time.
0 commit comments