#include <linux/clk.h>
#include <linux/reset.h>
#include <linux/platform_device.h>
#include <linux/pm_domain.h>
#include <linux/pm_runtime.h>
#include <linux/regulator/consumer.h>
#include "panfrost_device.h"
#include "panfrost_devfreq.h"
#include "panfrost_features.h"
#include "panfrost_issues.h"
#include "panfrost_gpu.h"
#include "panfrost_job.h"
#include "panfrost_mmu.h"
#include "panfrost_perfcnt.h"
static int panfrost_reset_init(struct panfrost_device *pfdev)
{ … }
static void panfrost_reset_fini(struct panfrost_device *pfdev)
{ … }
static int panfrost_clk_init(struct panfrost_device *pfdev)
{ … }
static void panfrost_clk_fini(struct panfrost_device *pfdev)
{ … }
static int panfrost_regulator_init(struct panfrost_device *pfdev)
{ … }
static void panfrost_regulator_fini(struct panfrost_device *pfdev)
{ … }
static void panfrost_pm_domain_fini(struct panfrost_device *pfdev)
{ … }
static int panfrost_pm_domain_init(struct panfrost_device *pfdev)
{ … }
int panfrost_device_init(struct panfrost_device *pfdev)
{ … }
void panfrost_device_fini(struct panfrost_device *pfdev)
{ … }
#define PANFROST_EXCEPTION(id) …
struct panfrost_exception_info { … };
static const struct panfrost_exception_info panfrost_exception_infos[] = …;
const char *panfrost_exception_name(u32 exception_code)
{ … }
bool panfrost_exception_needs_reset(const struct panfrost_device *pfdev,
u32 exception_code)
{ … }
void panfrost_device_reset(struct panfrost_device *pfdev)
{ … }
static int panfrost_device_runtime_resume(struct device *dev)
{ … }
static int panfrost_device_runtime_suspend(struct device *dev)
{ … }
static int panfrost_device_resume(struct device *dev)
{ … }
static int panfrost_device_suspend(struct device *dev)
{ … }
EXPORT_GPL_DEV_PM_OPS(panfrost_pm_ops) = …;