]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - drivers/gpu/drm/msm/msm_gem.h
drm/msm: basic KMS driver for snapdragon
[mirror_ubuntu-jammy-kernel.git] / drivers / gpu / drm / msm / msm_gem.h
1 /*
2 * Copyright (C) 2013 Red Hat
3 * Author: Rob Clark <robdclark@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 as published by
7 * the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along with
15 * this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef __MSM_GEM_H__
19 #define __MSM_GEM_H__
20
21 #include "msm_drv.h"
22
23 struct msm_gem_object {
24 struct drm_gem_object base;
25
26 uint32_t flags;
27
28 struct list_head mm_list;
29
30 struct page **pages;
31 struct sg_table *sgt;
32 void *vaddr;
33
34 struct {
35 // XXX
36 uint32_t iova;
37 } domain[NUM_DOMAINS];
38 };
39 #define to_msm_bo(x) container_of(x, struct msm_gem_object, base)
40
41 #endif /* __MSM_GEM_H__ */