xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/i915_debugfs.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: i915_debugfs.h,v 1.2 2021/12/18 23:45:28 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 /*
5  * Copyright © 2019 Intel Corporation
6  */
7 
8 #ifndef __I915_DEBUGFS_H__
9 #define __I915_DEBUGFS_H__
10 
11 struct drm_i915_private;
12 struct drm_connector;
13 
14 #ifdef CONFIG_DEBUG_FS
15 int i915_debugfs_register(struct drm_i915_private *dev_priv);
16 int i915_debugfs_connector_add(struct drm_connector *connector);
17 #else
i915_debugfs_register(struct drm_i915_private * dev_priv)18 static inline int i915_debugfs_register(struct drm_i915_private *dev_priv) { return 0; }
i915_debugfs_connector_add(struct drm_connector * connector)19 static inline int i915_debugfs_connector_add(struct drm_connector *connector) { return 0; }
20 #endif
21 
22 #endif /* __I915_DEBUGFS_H__ */
23