From 8e4bff4cab0ddac6060645b0715210484d02ff40 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 30 Aug 2017 08:25:59 +0000 Subject: Initial file dump from open source release --- drivers/gpu/ion/sprd/Makefile | 5 + drivers/gpu/ion/sprd/compat_sprd_ion.c | 336 +++++++++ drivers/gpu/ion/sprd/compat_sprd_ion.h | 30 + drivers/gpu/ion/sprd/sprd_fence.c | 469 +++++++++++++ drivers/gpu/ion/sprd/sprd_fence.h | 52 ++ drivers/gpu/ion/sprd/sprd_ion.c | 1093 ++++++++++++++++++++++++++++++ drivers/gpu/ion/sprd/sprd_ion_cma_heap.c | 279 ++++++++ 7 files changed, 2264 insertions(+) create mode 100644 drivers/gpu/ion/sprd/Makefile create mode 100644 drivers/gpu/ion/sprd/compat_sprd_ion.c create mode 100644 drivers/gpu/ion/sprd/compat_sprd_ion.h create mode 100644 drivers/gpu/ion/sprd/sprd_fence.c create mode 100644 drivers/gpu/ion/sprd/sprd_fence.h create mode 100644 drivers/gpu/ion/sprd/sprd_ion.c create mode 100644 drivers/gpu/ion/sprd/sprd_ion_cma_heap.c (limited to 'drivers/gpu/ion/sprd') diff --git a/drivers/gpu/ion/sprd/Makefile b/drivers/gpu/ion/sprd/Makefile new file mode 100644 index 00000000..8de25d86 --- /dev/null +++ b/drivers/gpu/ion/sprd/Makefile @@ -0,0 +1,5 @@ +obj-y += sprd_ion.o sprd_ion_cma_heap.o sprd_fence.o + +ifdef CONFIG_COMPAT +obj-$(CONFIG_ION) += compat_sprd_ion.o +endif diff --git a/drivers/gpu/ion/sprd/compat_sprd_ion.c b/drivers/gpu/ion/sprd/compat_sprd_ion.c new file mode 100644 index 00000000..37141596 --- /dev/null +++ b/drivers/gpu/ion/sprd/compat_sprd_ion.c @@ -0,0 +1,336 @@ +/* + * drivers/gpu/ion/compat_ion.c + * + * Copyright (C) 2013 Google, Inc. + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#include +#include +#include + +#include +#include