From 1d8f3320cbc06fa73ad1487453a63993f17b9d57 Mon Sep 17 00:00:00 2001 From: Antonio Argenziano Date: Tue, 26 Feb 2019 09:30:44 -0800 Subject: lib/i915: Move mmap IOCTLs wrappers into separate file Move all mmap flavours and support function to separate file in i915 folder. This helps with moving i915 specific functions away from common libraries. v2: - Autotools still exists. (Petri) - Include gem_mman.h directly. (Chris) v3: - Keep includes explicit. (Chris) Signed-off-by: Antonio Argenziano Cc: Chris Wilson Cc: Petri Latvala Reviewed-by: Chris Wilson --- benchmarks/gem_busy.c | 1 + benchmarks/gem_exec_reloc.c | 1 + benchmarks/gem_mmap.c | 1 + benchmarks/gem_wsim.c | 1 + 4 files changed, 4 insertions(+) (limited to 'benchmarks') diff --git a/benchmarks/gem_busy.c b/benchmarks/gem_busy.c index ca517a16..2fb1edf9 100644 --- a/benchmarks/gem_busy.c +++ b/benchmarks/gem_busy.c @@ -45,6 +45,7 @@ #include "intel_chipset.h" #include "intel_reg.h" #include "igt_stats.h" +#include "i915/gem_mman.h" #define LOCAL_I915_EXEC_NO_RELOC (1<<11) #define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) diff --git a/benchmarks/gem_exec_reloc.c b/benchmarks/gem_exec_reloc.c index f9487d95..c734643c 100644 --- a/benchmarks/gem_exec_reloc.c +++ b/benchmarks/gem_exec_reloc.c @@ -40,6 +40,7 @@ #include "ioctl_wrappers.h" #include "igt_debugfs.h" #include "drmtest.h" +#include "i915/gem_mman.h" #define LOCAL_I915_EXEC_NO_RELOC (1<<11) #define LOCAL_I915_EXEC_HANDLE_LUT (1<<12) diff --git a/benchmarks/gem_mmap.c b/benchmarks/gem_mmap.c index c809e087..d3d4ad31 100644 --- a/benchmarks/gem_mmap.c +++ b/benchmarks/gem_mmap.c @@ -43,6 +43,7 @@ #include "drmtest.h" #include "igt_aux.h" #include "igt_stats.h" +#include "i915/gem_mman.h" #define OBJECT_SIZE (1<<23) diff --git a/benchmarks/gem_wsim.c b/benchmarks/gem_wsim.c index 5a4753d9..0a5abc08 100644 --- a/benchmarks/gem_wsim.c +++ b/benchmarks/gem_wsim.c @@ -53,6 +53,7 @@ #include "igt_rand.h" #include "igt_perf.h" #include "sw_sync.h" +#include "i915/gem_mman.h" #include "ewma.h" -- cgit v1.2.3