Linux 3.16-rc2
[linux/fpc-iii.git] / include / drm / intel-gtt.h
blobb08bdade60025679eeecff76746d98cd51f2e7df
1 /* Common header for intel-gtt.ko and i915.ko */
3 #ifndef _DRM_INTEL_GTT_H
4 #define _DRM_INTEL_GTT_H
6 void intel_gtt_get(size_t *gtt_total, size_t *stolen_size,
7 phys_addr_t *mappable_base, unsigned long *mappable_end);
9 int intel_gmch_probe(struct pci_dev *bridge_pdev, struct pci_dev *gpu_pdev,
10 struct agp_bridge_data *bridge);
11 void intel_gmch_remove(void);
13 bool intel_enable_gtt(void);
15 void intel_gtt_chipset_flush(void);
16 void intel_gtt_insert_sg_entries(struct sg_table *st,
17 unsigned int pg_start,
18 unsigned int flags);
19 void intel_gtt_clear_range(unsigned int first_entry, unsigned int num_entries);
21 /* Special gtt memory types */
22 #define AGP_DCACHE_MEMORY 1
23 #define AGP_PHYS_MEMORY 2
25 /* flag for GFDT type */
26 #define AGP_USER_CACHED_MEMORY_GFDT (1 << 3)
28 #ifdef CONFIG_INTEL_IOMMU
29 extern int intel_iommu_gfx_mapped;
30 #endif
32 #endif