Daniel Vetter | 0ade638 | 2010-08-24 22:18:41 +0200 | [diff] [blame] | 1 | /* Common header for intel-gtt.ko and i915.ko */ |
| 2 | |
| 3 | #ifndef _DRM_INTEL_GTT_H |
| 4 | #define _DRM_INTEL_GTT_H |
Daniel Vetter | 0ade638 | 2010-08-24 22:18:41 +0200 | [diff] [blame] | 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 | |
Daniel Vetter | 1996675 | 2010-09-06 20:08:44 +0200 | [diff] [blame] | 15 | struct intel_gtt *intel_gtt_get(void); |
| 16 | |
Daniel Vetter | 0ade638 | 2010-08-24 22:18:41 +0200 | [diff] [blame] | 17 | #endif |
| 18 | |