diff options
author | Jon Medhurst <tixy@linaro.org> | 2015-08-04 16:13:55 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-08-04 16:13:55 +0100 |
commit | 611ee64d3560a082b41f74fc3921cbe42be951ba (patch) | |
tree | 8e27b7619064cf5cbeb2db3ce6983ab7bdb2fcfe /drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h | |
parent | b08ba4cdea50ace8a6752f4618b4c1270cc5f73e (diff) | |
parent | ff9c905471b0e3bf0755f7673dcad62e3c678a9f (diff) |
Merge branch 'lsk-3.10-armlt-mali' into integration-lsk-3.10-juno-android
Conflicts:
linaro/configs/vexpress64.conf
Diffstat (limited to 'drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h')
-rwxr-xr-x | drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h b/drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h new file mode 100755 index 000000000000..c045736139b6 --- /dev/null +++ b/drivers/gpu/arm/midgard/mali_kbase_jd_debugfs.h @@ -0,0 +1,66 @@ +/* + * + * (C) COPYRIGHT ARM Limited. All rights reserved. + * + * This program is free software and is provided to you under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation, and any use by you of this program is subject to the terms + * of such GNU licence. + * + * A copy of the licence is included with the program, and can also be obtained + * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + + + +/** + * @file mali_kbase_jd_debugfs.h + * Header file for job dispatcher-related entries in debugfs + */ + +#ifndef _KBASE_JD_DEBUGFS_H +#define _KBASE_JD_DEBUGFS_H + +#include <linux/debugfs.h> + +#include <mali_kbase.h> + +/** + * @brief Initialize JD debugfs entries + * + * This should be called during device probing after the main mali debugfs + * directory has been created. + * + * @param[in] kbdev Pointer to kbase_device + */ +int kbasep_jd_debugfs_init(struct kbase_device *kbdev); + +/** + * @brief Clean up all JD debugfs entries and related data + * + * This should be called during device removal before the main mali debugfs + * directory will be removed. + * + * @param[in] kbdev Pointer to kbase_device + */ +void kbasep_jd_debugfs_term(struct kbase_device *kbdev); + +/** + * @brief Add new entry to JD debugfs + * + * @param[in] kctx Pointer to kbase_context + * + * @return 0 on success, failure otherwise + */ +int kbasep_jd_debugfs_ctx_add(struct kbase_context *kctx); + +/** + * @brief Remove entry from JD debugfs + * + * param[in] kctx Pointer to kbase_context + */ +void kbasep_jd_debugfs_ctx_remove(struct kbase_context *kctx); + +#endif /*_KBASE_JD_DEBUGFS_H*/ |