xref: /linux/drivers/gpu/drm/lima/lima_dlbu.h (revision 3446d7e9883d70882568b0f7b6549835d51a8bc7)
1a1d2a633SQiang Yu /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2a1d2a633SQiang Yu /* Copyright 2018-2019 Qiang Yu <yuq825@gmail.com> */
3a1d2a633SQiang Yu 
4a1d2a633SQiang Yu #ifndef __LIMA_DLBU_H__
5a1d2a633SQiang Yu #define __LIMA_DLBU_H__
6a1d2a633SQiang Yu 
7a1d2a633SQiang Yu struct lima_ip;
8a1d2a633SQiang Yu struct lima_device;
9a1d2a633SQiang Yu 
10a1d2a633SQiang Yu void lima_dlbu_enable(struct lima_device *dev, int num_pp);
11a1d2a633SQiang Yu void lima_dlbu_disable(struct lima_device *dev);
12a1d2a633SQiang Yu 
13a1d2a633SQiang Yu void lima_dlbu_set_reg(struct lima_ip *ip, u32 *reg);
14a1d2a633SQiang Yu 
15*3446d7e9SQiang Yu int lima_dlbu_resume(struct lima_ip *ip);
16*3446d7e9SQiang Yu void lima_dlbu_suspend(struct lima_ip *ip);
17a1d2a633SQiang Yu int lima_dlbu_init(struct lima_ip *ip);
18a1d2a633SQiang Yu void lima_dlbu_fini(struct lima_ip *ip);
19a1d2a633SQiang Yu 
20a1d2a633SQiang Yu #endif
21