mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Snapshot of the Qualcomm Adreno GPU driver (KGSL) as of msm-4.9 commit e023d014d2039d59d0999e73984ccf0cc6e60bc7 (msm: pcie: fix PCIe L0s and L1 ASPM support). Fixed compile errors,checkpatch issues and API changes: * Rename function _copy_from_user() to kgsl_copy_from_user() * Fixup vm_fault API * Rename fence API to dma_fence API * Stop using scm_call() * Fixup header includes * Fix IDR API usage * Fix __mutex_owner usage Change-Id: Ib35ff402b3b0a14a94bc2568b34be6364ef2e882 Signed-off-by: Urvashi Agrawal <urvaagra@codeaurora.org>
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/* Copyright (c) 2002,2008-2011,2013,2015,2017 The Linux Foundation.
|
|
* All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#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_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_process_init_debugfs(struct kgsl_process_private *priv)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif
|