.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
---|
1 | 2 | /* |
---|
2 | 3 | * rcar_du_vsp.h -- R-Car Display Unit VSP-Based Compositor |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2015 Renesas Electronics Corporation |
---|
5 | 6 | * |
---|
6 | 7 | * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com) |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or modify |
---|
9 | | - * it under the terms of the GNU General Public License as published by |
---|
10 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
11 | | - * (at your option) any later version. |
---|
12 | 8 | */ |
---|
13 | 9 | |
---|
14 | 10 | #ifndef __RCAR_DU_VSP_H__ |
---|
15 | 11 | #define __RCAR_DU_VSP_H__ |
---|
16 | 12 | |
---|
17 | | -#include <drm/drmP.h> |
---|
18 | | -#include <drm/drm_crtc.h> |
---|
| 13 | +#include <drm/drm_plane.h> |
---|
19 | 14 | |
---|
| 15 | +struct drm_framebuffer; |
---|
20 | 16 | struct rcar_du_format_info; |
---|
21 | 17 | struct rcar_du_vsp; |
---|
| 18 | +struct sg_table; |
---|
22 | 19 | |
---|
23 | 20 | struct rcar_du_vsp_plane { |
---|
24 | 21 | struct drm_plane plane; |
---|
.. | .. |
---|
65 | 62 | void rcar_du_vsp_disable(struct rcar_du_crtc *crtc); |
---|
66 | 63 | void rcar_du_vsp_atomic_begin(struct rcar_du_crtc *crtc); |
---|
67 | 64 | void rcar_du_vsp_atomic_flush(struct rcar_du_crtc *crtc); |
---|
| 65 | +int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, |
---|
| 66 | + struct sg_table sg_tables[3]); |
---|
| 67 | +void rcar_du_vsp_unmap_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, |
---|
| 68 | + struct sg_table sg_tables[3]); |
---|
68 | 69 | #else |
---|
69 | 70 | static inline int rcar_du_vsp_init(struct rcar_du_vsp *vsp, |
---|
70 | 71 | struct device_node *np, |
---|
.. | .. |
---|
76 | 77 | static inline void rcar_du_vsp_disable(struct rcar_du_crtc *crtc) { }; |
---|
77 | 78 | static inline void rcar_du_vsp_atomic_begin(struct rcar_du_crtc *crtc) { }; |
---|
78 | 79 | static inline void rcar_du_vsp_atomic_flush(struct rcar_du_crtc *crtc) { }; |
---|
| 80 | +static inline int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, |
---|
| 81 | + struct drm_framebuffer *fb, |
---|
| 82 | + struct sg_table sg_tables[3]) |
---|
| 83 | +{ |
---|
| 84 | + return -ENXIO; |
---|
| 85 | +} |
---|
| 86 | +static inline void rcar_du_vsp_unmap_fb(struct rcar_du_vsp *vsp, |
---|
| 87 | + struct drm_framebuffer *fb, |
---|
| 88 | + struct sg_table sg_tables[3]) |
---|
| 89 | +{ |
---|
| 90 | +} |
---|
79 | 91 | #endif |
---|
80 | 92 | |
---|
81 | 93 | #endif /* __RCAR_DU_VSP_H__ */ |
---|