Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23ed992a authored by Daniel Vetter's avatar Daniel Vetter Committed by Chris Wilson
Browse files

drm/i915|intel-gtt: consolidate intel-gtt.h headers



... and a few other defines.

Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent ff26860f
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -24,7 +24,6 @@
#include <asm/smp.h>
#include <asm/smp.h>
#include "agp.h"
#include "agp.h"
#include "intel-agp.h"
#include "intel-agp.h"
#include <linux/intel-gtt.h>
#include <drm/intel-gtt.h>
#include <drm/intel-gtt.h>


/*
/*
@@ -39,10 +38,6 @@
#define USE_PCI_DMA_API 0
#define USE_PCI_DMA_API 0
#endif
#endif


#define AGP_DCACHE_MEMORY	1
#define AGP_PHYS_MEMORY		2
#define INTEL_AGP_CACHED_MEMORY 3

struct intel_gtt_driver {
struct intel_gtt_driver {
	unsigned int gen : 8;
	unsigned int gen : 8;
	unsigned int is_g33 : 1;
	unsigned int is_g33 : 1;
+0 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,6 @@
#include <linux/slab.h>
#include <linux/slab.h>
#include <linux/swap.h>
#include <linux/swap.h>
#include <linux/pci.h>
#include <linux/pci.h>
#include <linux/intel-gtt.h>


struct change_domains {
struct change_domains {
	uint32_t invalidate_domains;
	uint32_t invalidate_domains;
+12 −0
Original line number Original line Diff line number Diff line
@@ -13,5 +13,17 @@ const struct intel_gtt {
	unsigned int gtt_mappable_entries;
	unsigned int gtt_mappable_entries;
} *intel_gtt_get(void);
} *intel_gtt_get(void);



/* Special gtt memory types */
#define AGP_DCACHE_MEMORY	1
#define AGP_PHYS_MEMORY		2

/* New caching attributes for gen6/sandybridge */
#define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2)
#define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4)

/* flag for GFDT type */
#define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)

#endif
#endif

include/linux/intel-gtt.h

deleted100644 → 0
+0 −20
Original line number Original line Diff line number Diff line
/*
 * Common Intel AGPGART and GTT definitions.
 */
#ifndef _INTEL_GTT_H
#define _INTEL_GTT_H

#include <linux/agp_backend.h>

/* This is for Intel only GTT controls.
 *
 * Sandybridge: AGP_USER_CACHED_MEMORY default to LLC only
 */

#define AGP_USER_CACHED_MEMORY_LLC_MLC (AGP_USER_TYPES + 2)
#define AGP_USER_UNCACHED_MEMORY (AGP_USER_TYPES + 4)

/* flag for GFDT type */
#define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)

#endif