4 * Based on sun4i_layer.h, which is:
5 * Copyright (C) 2015 Free Electrons
6 * Copyright (C) 2015 NextThing Co
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of
13 * the License, or (at your option) any later version.
16 #ifndef _SUN8I_LAYER_H_
17 #define _SUN8I_LAYER_H_
22 struct drm_plane plane;
23 struct sun4i_drv *drv;
24 struct sun8i_mixer *mixer;
28 static inline struct sun8i_layer *
29 plane_to_sun8i_layer(struct drm_plane *plane)
31 return container_of(plane, struct sun8i_layer, plane);
34 struct drm_plane **sun8i_layers_init(struct drm_device *drm,
35 struct sunxi_engine *engine);
36 #endif /* _SUN8I_LAYER_H_ */