summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/meson/meson_rdma.h
blob: 3870bff7b47fad9d4adbc70db8f2bfa955532d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Copyright (C) 2019 BayLibre, SAS
 * Author: Neil Armstrong <narmstrong@baylibre.com>
 */

#ifndef __MESON_RDMA_H
#define __MESON_RDMA_H

#include "meson_drv.h"

int meson_rdma_init(struct meson_drm *priv);
void meson_rdma_free(struct meson_drm *priv);
void meson_rdma_setup(struct meson_drm *priv);
void meson_rdma_reset(struct meson_drm *priv);
void meson_rdma_stop(struct meson_drm *priv);

void meson_rdma_writel_sync(struct meson_drm *priv, uint32_t val, uint32_t reg);
void meson_rdma_flush(struct meson_drm *priv);

#endif /* __MESON_RDMA_H */