xref: /openbmc/linux/drivers/gpu/drm/meson/meson_rdma.h (revision 234489ac)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2019 BayLibre, SAS
4  * Author: Neil Armstrong <narmstrong@baylibre.com>
5  */
6 
7 #ifndef __MESON_RDMA_H
8 #define __MESON_RDMA_H
9 
10 #include "meson_drv.h"
11 
12 int meson_rdma_init(struct meson_drm *priv);
13 void meson_rdma_free(struct meson_drm *priv);
14 void meson_rdma_setup(struct meson_drm *priv);
15 void meson_rdma_reset(struct meson_drm *priv);
16 void meson_rdma_stop(struct meson_drm *priv);
17 
18 void meson_rdma_writel_sync(struct meson_drm *priv, uint32_t val, uint32_t reg);
19 void meson_rdma_flush(struct meson_drm *priv);
20 
21 #endif /* __MESON_RDMA_H */
22