]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - drivers/gpu/drm/sun4i/sun8i_layer.h
PCI: PM: Skip devices in D0 for suspend-to-idle
[mirror_ubuntu-bionic-kernel.git] / drivers / gpu / drm / sun4i / sun8i_layer.h
CommitLineData
9d75b8c0
IZ
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_ */