Rev 2330 | Rev 2336 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2330 | Rev 2332 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | #include "i915_reg.h" |
33 | #include "i915_reg.h" |
34 | #include "intel_bios.h" |
34 | #include "intel_bios.h" |
35 | #include "intel_ringbuffer.h" |
35 | #include "intel_ringbuffer.h" |
36 | //#include |
36 | //#include |
37 | #include |
37 | #include |
38 | //#include |
38 | #include |
39 | //#include |
39 | //#include |
Line 40... | Line 40... | ||
40 | 40 | ||
Line 41... | Line 41... | ||
41 | #include |
41 | #include |
Line 291... | Line 291... | ||
291 | uint32_t next_seqno; |
291 | uint32_t next_seqno; |
Line 292... | Line 292... | ||
292 | 292 | ||
293 | drm_dma_handle_t *status_page_dmah; |
293 | drm_dma_handle_t *status_page_dmah; |
294 | // uint32_t counter; |
294 | // uint32_t counter; |
295 | // drm_local_map_t hws_map; |
295 | // drm_local_map_t hws_map; |
296 | // struct drm_i915_gem_object *pwrctx; |
296 | struct drm_i915_gem_object *pwrctx; |
Line 297... | Line 297... | ||
297 | // struct drm_i915_gem_object *renderctx; |
297 | struct drm_i915_gem_object *renderctx; |
Line 298... | Line 298... | ||
298 | 298 | ||
299 | // struct resource mch_res; |
299 | // struct resource mch_res; |
Line 550... | Line 550... | ||
550 | /** Bridge to intel-gtt-ko */ |
550 | /** Bridge to intel-gtt-ko */ |
551 | const struct intel_gtt *gtt; |
551 | const struct intel_gtt *gtt; |
552 | /** Memory allocator for GTT stolen memory */ |
552 | /** Memory allocator for GTT stolen memory */ |
553 | struct drm_mm stolen; |
553 | struct drm_mm stolen; |
554 | /** Memory allocator for GTT */ |
554 | /** Memory allocator for GTT */ |
555 | // struct drm_mm gtt_space; |
555 | struct drm_mm gtt_space; |
556 | /** List of all objects in gtt_space. Used to restore gtt |
556 | /** List of all objects in gtt_space. Used to restore gtt |
557 | * mappings on resume */ |
557 | * mappings on resume */ |
558 | struct list_head gtt_list; |
558 | struct list_head gtt_list; |
Line 559... | Line 559... | ||
559 | 559 | ||
Line 720... | Line 720... | ||
720 | // struct drm_mm_node *compressed_llb; |
720 | // struct drm_mm_node *compressed_llb; |
Line 721... | Line 721... | ||
721 | 721 | ||
Line 722... | Line 722... | ||
722 | unsigned long last_gpu_reset; |
722 | unsigned long last_gpu_reset; |
723 | 723 | ||
Line 724... | Line 724... | ||
724 | /* list of fbdev register on this device */ |
724 | /* list of fbdev register on this device */ |
Line 725... | Line 725... | ||
725 | // struct intel_fbdev *fbdev; |
725 | struct intel_fbdev *fbdev; |
726 | 726 | ||
Line 1152... | Line 1152... | ||
1152 | //i915_seqno_passed(uint32_t seq1, uint32_t seq2) |
1152 | //i915_seqno_passed(uint32_t seq1, uint32_t seq2) |
1153 | //{ |
1153 | //{ |
1154 | // return (int32_t)(seq1 - seq2) >= 0; |
1154 | // return (int32_t)(seq1 - seq2) >= 0; |
1155 | //} |
1155 | //} |
Line 1156... | Line 1156... | ||
1156 | 1156 | ||
1157 | //static inline u32 |
1157 | static inline u32 |
1158 | //i915_gem_next_request_seqno(struct intel_ring_buffer *ring) |
1158 | i915_gem_next_request_seqno(struct intel_ring_buffer *ring) |
1159 | //{ |
1159 | { |
1160 | // drm_i915_private_t *dev_priv = ring->dev->dev_private; |
1160 | drm_i915_private_t *dev_priv = ring->dev->dev_private; |
1161 | // return ring->outstanding_lazy_request = dev_priv->next_seqno; |
1161 | return ring->outstanding_lazy_request = dev_priv->next_seqno; |
- | 1162 | } |
|
Line 1162... | Line -... | ||
1162 | //} |
- | |
1163 | 1163 | ||
1164 | /* |
1164 | |
1165 | void i915_gem_retire_requests(struct drm_device *dev); |
1165 | void i915_gem_retire_requests(struct drm_device *dev); |
1166 | void i915_gem_reset(struct drm_device *dev); |
1166 | void i915_gem_reset(struct drm_device *dev); |
1167 | void i915_gem_clflush_object(struct drm_i915_gem_object *obj); |
1167 | void i915_gem_clflush_object(struct drm_i915_gem_object *obj); |
Line 1204... | Line 1204... | ||
1204 | uint32_t size, |
1204 | uint32_t size, |
1205 | int tiling_mode); |
1205 | int tiling_mode); |
Line 1206... | Line 1206... | ||
1206 | 1206 | ||
1207 | int i915_gem_object_set_cache_level(struct drm_i915_gem_object *obj, |
1207 | int i915_gem_object_set_cache_level(struct drm_i915_gem_object *obj, |
1208 | enum i915_cache_level cache_level); |
1208 | enum i915_cache_level cache_level); |
Line 1209... | Line 1209... | ||
1209 | */ |
1209 | |
1210 | 1210 | ||
1211 | /* i915_gem_gtt.c */ |
1211 | /* i915_gem_gtt.c */ |
1212 | void i915_gem_restore_gtt_mappings(struct drm_device *dev); |
1212 | void i915_gem_restore_gtt_mappings(struct drm_device *dev); |