27 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/* Copyright 2018 Marty E. Plummer <hanetzer@startmail.com> */3/* Copyright 2019 Collabora ltd. */4 5#ifndef __PANFROST_GPU_H__6#define __PANFROST_GPU_H__7 8struct panfrost_device;9 10int panfrost_gpu_init(struct panfrost_device *pfdev);11void panfrost_gpu_fini(struct panfrost_device *pfdev);12 13u32 panfrost_gpu_get_latest_flush_id(struct panfrost_device *pfdev);14 15int panfrost_gpu_soft_reset(struct panfrost_device *pfdev);16void panfrost_gpu_power_on(struct panfrost_device *pfdev);17void panfrost_gpu_power_off(struct panfrost_device *pfdev);18void panfrost_gpu_suspend_irq(struct panfrost_device *pfdev);19 20void panfrost_cycle_counter_get(struct panfrost_device *pfdev);21void panfrost_cycle_counter_put(struct panfrost_device *pfdev);22unsigned long long panfrost_cycle_counter_read(struct panfrost_device *pfdev);23 24void panfrost_gpu_amlogic_quirk(struct panfrost_device *pfdev);25 26#endif27