diff options
author | Dave Airlie <airlied@redhat.com> | 2010-10-05 20:11:56 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-10-05 20:11:56 -0400 |
commit | 9a170caed6fce89da77852575a7eee7dbadee332 (patch) | |
tree | 489082522869cb382a2dc464ccbd474846693a37 /include/drm | |
parent | 45ff46c54a31bf8924b61e3e3411654410a3b5c3 (diff) | |
parent | 7b4f3990a22fbe800945f12001bc30db374d0af5 (diff) |
Merge remote branch 'intel/drm-intel-next' of ../drm-next into drm-core-next
* 'intel/drm-intel-next' of ../drm-next: (266 commits)
drm/i915: Avoid circular locking from intel_fbdev_fini()
drm/i915: mark display port DPMS state as 'ON' when enabling output
drm/i915: Skip pread/pwrite if size to copy is 0.
drm/i915: avoid struct mutex output_poll mutex lock loop on unload
drm/i915: Rephrase pwrite bounds checking to avoid any potential overflow
drm/i915: Sanity check pread/pwrite
drm/i915: Use pipe state to tell when pipe is off
drm/i915: vblank status not valid while training display port
drivers/gpu/drm/i915/i915_gem.c: Add missing error handling code
drm/i915: Don't mask the return code whilst relocating.
drm/i915: If the GPU hangs twice within 5 seconds, declare it wedged.
drm/i915: Only print 'generating error event' if we actually are
drm/i915: Try to reset gen2 devices.
drm/i915: Clear fence registers on GPU reset
drm/i915: Force the domain to CPU on unbinding whilst wedged.
drm: Move the GTT accounting to i915
drm/i915: Fix refleak during eviction.
i915: Added function to initialize VBT settings
drm/i915: Remove redundant deletion of obj->gpu_write_list
drm/i915: Make get/put pages static
...
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drmP.h | 8 | ||||
-rw-r--r-- | include/drm/intel-gtt.h | 18 |
2 files changed, 18 insertions, 8 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index 30e827aeba02..bb5c41893c00 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h | |||
@@ -1041,13 +1041,6 @@ struct drm_device { | |||
1041 | /*@{ */ | 1041 | /*@{ */ |
1042 | spinlock_t object_name_lock; | 1042 | spinlock_t object_name_lock; |
1043 | struct idr object_name_idr; | 1043 | struct idr object_name_idr; |
1044 | atomic_t object_count; | ||
1045 | atomic_t object_memory; | ||
1046 | atomic_t pin_count; | ||
1047 | atomic_t pin_memory; | ||
1048 | atomic_t gtt_count; | ||
1049 | atomic_t gtt_memory; | ||
1050 | uint32_t gtt_total; | ||
1051 | uint32_t invalidate_domains; /* domains pending invalidation */ | 1044 | uint32_t invalidate_domains; /* domains pending invalidation */ |
1052 | uint32_t flush_domains; /* domains pending flush */ | 1045 | uint32_t flush_domains; /* domains pending flush */ |
1053 | /*@} */ | 1046 | /*@} */ |
@@ -1378,7 +1371,6 @@ extern int drm_bufs_info(struct seq_file *m, void *data); | |||
1378 | extern int drm_vblank_info(struct seq_file *m, void *data); | 1371 | extern int drm_vblank_info(struct seq_file *m, void *data); |
1379 | extern int drm_clients_info(struct seq_file *m, void* data); | 1372 | extern int drm_clients_info(struct seq_file *m, void* data); |
1380 | extern int drm_gem_name_info(struct seq_file *m, void *data); | 1373 | extern int drm_gem_name_info(struct seq_file *m, void *data); |
1381 | extern int drm_gem_object_info(struct seq_file *m, void* data); | ||
1382 | 1374 | ||
1383 | #if DRM_DEBUG_CODE | 1375 | #if DRM_DEBUG_CODE |
1384 | extern int drm_vma_info(struct seq_file *m, void *data); | 1376 | extern int drm_vma_info(struct seq_file *m, void *data); |
diff --git a/include/drm/intel-gtt.h b/include/drm/intel-gtt.h new file mode 100644 index 000000000000..d3c81946f613 --- /dev/null +++ b/include/drm/intel-gtt.h | |||
@@ -0,0 +1,18 @@ | |||
1 | /* Common header for intel-gtt.ko and i915.ko */ | ||
2 | |||
3 | #ifndef _DRM_INTEL_GTT_H | ||
4 | #define _DRM_INTEL_GTT_H | ||
5 | struct intel_gtt { | ||
6 | /* Number of stolen gtt entries at the beginning. */ | ||
7 | unsigned int gtt_stolen_entries; | ||
8 | /* Total number of gtt entries. */ | ||
9 | unsigned int gtt_total_entries; | ||
10 | /* Part of the gtt that is mappable by the cpu, for those chips where | ||
11 | * this is not the full gtt. */ | ||
12 | unsigned int gtt_mappable_entries; | ||
13 | }; | ||
14 | |||
15 | struct intel_gtt *intel_gtt_get(void); | ||
16 | |||
17 | #endif | ||
18 | |||