1*f3ba9122SRob Herring /* SPDX-License-Identifier: GPL-2.0 */ 2*f3ba9122SRob Herring /* Copyright 2018 Marty E. Plummer <hanetzer@startmail.com> */ 3*f3ba9122SRob Herring /* Copyright 2019 Collabora ltd. */ 4*f3ba9122SRob Herring 5*f3ba9122SRob Herring #ifndef __PANFROST_GPU_H__ 6*f3ba9122SRob Herring #define __PANFROST_GPU_H__ 7*f3ba9122SRob Herring 8*f3ba9122SRob Herring struct panfrost_device; 9*f3ba9122SRob Herring 10*f3ba9122SRob Herring int panfrost_gpu_init(struct panfrost_device *pfdev); 11*f3ba9122SRob Herring void panfrost_gpu_fini(struct panfrost_device *pfdev); 12*f3ba9122SRob Herring 13*f3ba9122SRob Herring u32 panfrost_gpu_get_latest_flush_id(struct panfrost_device *pfdev); 14*f3ba9122SRob Herring 15*f3ba9122SRob Herring int panfrost_gpu_soft_reset(struct panfrost_device *pfdev); 16*f3ba9122SRob Herring void panfrost_gpu_power_on(struct panfrost_device *pfdev); 17*f3ba9122SRob Herring void panfrost_gpu_power_off(struct panfrost_device *pfdev); 18*f3ba9122SRob Herring 19*f3ba9122SRob Herring #endif 20