Rev 4126 | Rev 4539 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4126 | Rev 4280 | ||
---|---|---|---|
Line 507... | Line 507... | ||
507 | */ |
507 | */ |
508 | struct list_head inactive_list; |
508 | struct list_head inactive_list; |
Line 509... | Line 509... | ||
509 | 509 | ||
510 | /* FIXME: Need a more generic return type */ |
510 | /* FIXME: Need a more generic return type */ |
511 | gen6_gtt_pte_t (*pte_encode)(dma_addr_t addr, |
511 | gen6_gtt_pte_t (*pte_encode)(dma_addr_t addr, |
- | 512 | enum i915_cache_level level, |
|
512 | enum i915_cache_level level); |
513 | bool valid); /* Create a valid PTE */ |
513 | void (*clear_range)(struct i915_address_space *vm, |
514 | void (*clear_range)(struct i915_address_space *vm, |
514 | unsigned int first_entry, |
515 | unsigned int first_entry, |
- | 516 | unsigned int num_entries, |
|
515 | unsigned int num_entries); |
517 | bool use_scratch); |
516 | void (*insert_entries)(struct i915_address_space *vm, |
518 | void (*insert_entries)(struct i915_address_space *vm, |
517 | struct sg_table *st, |
519 | struct sg_table *st, |
518 | unsigned int first_entry, |
520 | unsigned int first_entry, |
519 | enum i915_cache_level cache_level); |
521 | enum i915_cache_level cache_level); |
Line 2069... | Line 2071... | ||
2069 | struct drm_i915_gem_object *obj, |
2071 | struct drm_i915_gem_object *obj, |
2070 | enum i915_cache_level cache_level); |
2072 | enum i915_cache_level cache_level); |
2071 | void i915_ppgtt_unbind_object(struct i915_hw_ppgtt *ppgtt, |
2073 | void i915_ppgtt_unbind_object(struct i915_hw_ppgtt *ppgtt, |
2072 | struct drm_i915_gem_object *obj); |
2074 | struct drm_i915_gem_object *obj); |
Line -... | Line 2075... | ||
- | 2075 | ||
- | 2076 | void i915_check_and_clear_faults(struct drm_device *dev); |
|
2073 | 2077 | void i915_gem_suspend_gtt_mappings(struct drm_device *dev); |
|
2074 | void i915_gem_restore_gtt_mappings(struct drm_device *dev); |
2078 | void i915_gem_restore_gtt_mappings(struct drm_device *dev); |
2075 | int __must_check i915_gem_gtt_prepare_object(struct drm_i915_gem_object *obj); |
2079 | int __must_check i915_gem_gtt_prepare_object(struct drm_i915_gem_object *obj); |
2076 | void i915_gem_gtt_bind_object(struct drm_i915_gem_object *obj, |
2080 | void i915_gem_gtt_bind_object(struct drm_i915_gem_object *obj, |
2077 | enum i915_cache_level cache_level); |
2081 | enum i915_cache_level cache_level); |
Line 2338... | Line 2342... | ||
2338 | unsigned long j = timespec_to_jiffies(value); |
2342 | unsigned long j = timespec_to_jiffies(value); |
Line 2339... | Line 2343... | ||
2339 | 2343 | ||
2340 | return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1); |
2344 | return min_t(unsigned long, MAX_JIFFY_OFFSET, j + 1); |
Line -... | Line 2345... | ||
- | 2345 | } |
|
- | 2346 | ||
- | 2347 | static inline int mutex_trylock(struct mutex *lock) |
|
- | 2348 | { |
|
- | 2349 | if (likely(atomic_cmpxchg(&lock->count, 1, 0) == 1)) |
|
- | 2350 | return 1; |
|
Line 2341... | Line 2351... | ||
2341 | } |
2351 | return 0; |
2342 | 2352 | } |
|
2343 | 2353 | ||
2344 | typedef struct |
2354 | typedef struct |
2345 | { |
2355 | { |
2346 | int width; |
2356 | int width; |
2347 | int height; |
2357 | int height; |
Line 2348... | Line -... | ||
2348 | int bpp; |
- | |
2349 | int freq; |
2358 | int bpp; |
2350 | }videomode_t; |
2359 | int freq; |
2351 | 2360 | }videomode_t; |
|
2352 | 2361 | ||
2353 | static inline int mutex_trylock(struct mutex *lock) |
2362 | struct cmdtable |
2354 | { |
2363 | { |
Line -... | Line 2364... | ||
- | 2364 | char *key; |
|
Line -... | Line 2365... | ||
- | 2365 | int size; |
|
- | 2366 | int *val; |
|
2355 | if (likely(atomic_cmpxchg(&lock->count, 1, 0) == 1)) |
2367 | }; |
Line -... | Line 2368... | ||
- | 2368 | ||
- | 2369 | #define CMDENTRY(key, val) {(key), (sizeof(key)-1), &val} |
|
- | 2370 | ||
- | 2371 | void parse_cmdline(char *cmdline, struct cmdtable *table, char *log, videomode_t *mode); |
|
- | 2372 | struct drm_i915_gem_object |
|
Line -... | Line 2373... | ||
- | 2373 | *kos_gem_fb_object_create(struct drm_device *dev, u32 gtt_offset, u32 size); |
|
Line 2356... | Line 2374... | ||
2356 | return 1; |
2374 |