Add 'qcom/opensource/graphics-kernel/' from commit 'b4fdc4c04295ac59109ae19d64747522740c3f14'
git-subtree-dir: qcom/opensource/graphics-kernel git-subtree-mainline:992813d9c1
git-subtree-split:b4fdc4c042
Change-Id: repo: https://git.codelinaro.org/clo/la/platform/vendor/qcom/opensource/graphics-kernel tag: GRAPHICS.LA.14.0.r1-07700-lanai.0
This commit is contained in:
41
qcom/opensource/graphics-kernel/kgsl_debugfs.h
Normal file
41
qcom/opensource/graphics-kernel/kgsl_debugfs.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2002,2008-2011,2013,2015,2017,2019, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#ifndef _KGSL_DEBUGFS_H
|
||||
#define _KGSL_DEBUGFS_H
|
||||
|
||||
struct kgsl_device;
|
||||
struct kgsl_process_private;
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
void kgsl_core_debugfs_init(void);
|
||||
void kgsl_core_debugfs_close(void);
|
||||
|
||||
void kgsl_device_debugfs_init(struct kgsl_device *device);
|
||||
void kgsl_device_debugfs_close(struct kgsl_device *device);
|
||||
|
||||
extern struct dentry *kgsl_debugfs_dir;
|
||||
static inline struct dentry *kgsl_get_debugfs_dir(void)
|
||||
{
|
||||
return kgsl_debugfs_dir;
|
||||
}
|
||||
|
||||
void kgsl_pool_init_debugfs(struct dentry *pool_debugfs,
|
||||
char *name, void *pool);
|
||||
void kgsl_process_init_debugfs(struct kgsl_process_private *priv);
|
||||
#else
|
||||
static inline void kgsl_core_debugfs_init(void) { }
|
||||
static inline void kgsl_device_debugfs_init(struct kgsl_device *device) { }
|
||||
static inline void kgsl_device_debugfs_close(struct kgsl_device *device) { }
|
||||
static inline void kgsl_core_debugfs_close(void) { }
|
||||
static inline struct dentry *kgsl_get_debugfs_dir(void) { return NULL; }
|
||||
static inline void kgsl_pool_init_debugfs(struct dentry *pool_debugfs,
|
||||
char *name, void *pool) { }
|
||||
static inline void kgsl_process_init_debugfs(struct kgsl_process_private *priv)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user