drm/i915/lmem: add the fake lmem region
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / intel_memory_region.h
index 19920c2..2387220 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/ioport.h>
 #include <linux/mutex.h>
 #include <linux/io-mapping.h>
+#include <drm/drm_mm.h>
 
 #include "i915_buddy.h"
 
@@ -71,6 +72,9 @@ struct intel_memory_region {
        struct io_mapping iomap;
        struct resource region;
 
+       /* For fake LMEM */
+       struct drm_mm_node fake_mappable;
+
        struct i915_buddy_mm mm;
        struct mutex mm_lock;
 
@@ -83,6 +87,8 @@ struct intel_memory_region {
        unsigned int instance;
        unsigned int id;
 
+       dma_addr_t remap_addr;
+
        struct {
                struct mutex lock; /* Protects access to objects */
                struct list_head list;