linux/drivers/gpu/drm/msm/msm_ringbuffer.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <[email protected]>
 */

#ifndef __MSM_RINGBUFFER_H__
#define __MSM_RINGBUFFER_H__

#include "drm/gpu_scheduler.h"
#include "msm_drv.h"

#define rbmemptr(ring, member)

#define rbmemptr_stats(ring, index, member)

struct msm_gpu_submit_stats {};

#define MSM_GPU_SUBMIT_STATS_COUNT

struct msm_rbmemptrs {};

struct msm_cp_state {};

struct msm_ringbuffer {};

struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int id,
		void *memptrs, uint64_t memptrs_iova);
void msm_ringbuffer_destroy(struct msm_ringbuffer *ring);

/* ringbuffer helpers (the parts that are same for a3xx/a2xx/z180..) */

static inline void
OUT_RING(struct msm_ringbuffer *ring, uint32_t data)
{}

#endif /* __MSM_RINGBUFFER_H__ */