linux/drivers/gpu/drm/lima/lima_device.h

/* SPDX-License-Identifier: GPL-2.0 OR MIT */
/* Copyright 2018-2019 Qiang Yu <[email protected]> */

#ifndef __LIMA_DEVICE_H__
#define __LIMA_DEVICE_H__

#include <drm/drm_device.h>
#include <linux/delay.h>
#include <linux/list.h>
#include <linux/mutex.h>

#include "lima_sched.h"
#include "lima_dump.h"
#include "lima_devfreq.h"

enum lima_gpu_id {};

enum lima_ip_id {};

struct lima_device;

struct lima_ip {};

enum lima_pipe_id {};

struct lima_device {};

static inline struct lima_device *
to_lima_dev(struct drm_device *dev)
{}

int lima_device_init(struct lima_device *ldev);
void lima_device_fini(struct lima_device *ldev);

const char *lima_ip_name(struct lima_ip *ip);

lima_poll_func_t;

static inline int lima_poll_timeout(struct lima_ip *ip, lima_poll_func_t func,
				    int sleep_us, int timeout_us)
{}

int lima_device_suspend(struct device *dev);
int lima_device_resume(struct device *dev);

#endif