Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v4.13 36 lines 940 B view raw
1/* 2 * Copyright (C) Icenowy Zheng <icenowy@aosc.io> 3 * 4 * Based on sun4i_layer.h, which is: 5 * Copyright (C) 2015 Free Electrons 6 * Copyright (C) 2015 NextThing Co 7 * 8 * Maxime Ripard <maxime.ripard@free-electrons.com> 9 * 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. 14 */ 15 16#ifndef _SUN8I_LAYER_H_ 17#define _SUN8I_LAYER_H_ 18 19struct sunxi_engine; 20 21struct sun8i_layer { 22 struct drm_plane plane; 23 struct sun4i_drv *drv; 24 struct sun8i_mixer *mixer; 25 int id; 26}; 27 28static inline struct sun8i_layer * 29plane_to_sun8i_layer(struct drm_plane *plane) 30{ 31 return container_of(plane, struct sun8i_layer, plane); 32} 33 34struct drm_plane **sun8i_layers_init(struct drm_device *drm, 35 struct sunxi_engine *engine); 36#endif /* _SUN8I_LAYER_H_ */