diff options
Diffstat (limited to 'mali_kbase/device/mali_kbase_device.h')
-rw-r--r-- | mali_kbase/device/mali_kbase_device.h | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/mali_kbase/device/mali_kbase_device.h b/mali_kbase/device/mali_kbase_device.h index e9cb5c2..9cca6af 100644 --- a/mali_kbase/device/mali_kbase_device.h +++ b/mali_kbase/device/mali_kbase_device.h @@ -19,7 +19,11 @@ * */ +#ifndef _MALI_KBASE_DEVICE_H_ +#define _MALI_KBASE_DEVICE_H_ + #include <mali_kbase.h> +#include <hw_access/mali_kbase_hw_access.h> /** * kbase_device_get_list - get device list. @@ -81,27 +85,6 @@ int kbase_device_init(struct kbase_device *kbdev); void kbase_device_term(struct kbase_device *kbdev); /** - * kbase_reg_write - write to GPU register - * @kbdev: Kbase device pointer - * @offset: Offset of register - * @value: Value to write - * - * Caller must ensure the GPU is powered (@kbdev->pm.gpu_powered != false). - */ -void kbase_reg_write(struct kbase_device *kbdev, u32 offset, u32 value); - -/** - * kbase_reg_read - read from GPU register - * @kbdev: Kbase device pointer - * @offset: Offset of register - * - * Caller must ensure the GPU is powered (@kbdev->pm.gpu_powered != false). - * - * Return: Value in desired register - */ -u32 kbase_reg_read(struct kbase_device *kbdev, u32 offset); - -/** * kbase_is_gpu_removed() - Has the GPU been removed. * @kbdev: Kbase device pointer * @@ -149,8 +132,7 @@ int kbase_gpu_cache_flush_pa_range_and_busy_wait(struct kbase_device *kbdev, phy * * Return: 0 if successful or a negative error code on failure. */ -int kbase_gpu_cache_flush_and_busy_wait(struct kbase_device *kbdev, - u32 flush_op); +int kbase_gpu_cache_flush_and_busy_wait(struct kbase_device *kbdev, u32 flush_op); /** * kbase_gpu_start_cache_clean - Start a cache clean @@ -170,8 +152,7 @@ void kbase_gpu_start_cache_clean(struct kbase_device *kbdev, u32 flush_op); * Issue a given cache flush command to hardware. * hwaccess_lock must be held by the caller. */ -void kbase_gpu_start_cache_clean_nolock(struct kbase_device *kbdev, - u32 flush_op); +void kbase_gpu_start_cache_clean_nolock(struct kbase_device *kbdev, u32 flush_op); /** * kbase_gpu_wait_cache_clean - Wait for cache cleaning to finish @@ -195,8 +176,7 @@ void kbase_gpu_wait_cache_clean(struct kbase_device *kbdev); * * Return: 0 if successful or a negative error code on failure. */ -int kbase_gpu_wait_cache_clean_timeout(struct kbase_device *kbdev, - unsigned int wait_timeout_ms); +int kbase_gpu_wait_cache_clean_timeout(struct kbase_device *kbdev, unsigned int wait_timeout_ms); /** * kbase_gpu_cache_clean_wait_complete - Called after the cache cleaning is @@ -226,3 +206,5 @@ void kbase_clean_caches_done(struct kbase_device *kbdev); * handled. */ void kbase_gpu_interrupt(struct kbase_device *kbdev, u32 val); + +#endif /* _MALI_KBASE_DEVICE_H_ */ |