radeon.h (03afe6f6480f2544d6cd18866556f1f76bb05f14) | radeon.h (ff212f25feb44a915ce9c0144faef7fae27a6e61) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 779 unchanged lines hidden (view full) --- 788 struct radeon_vm *vm; 789 bool is_const_ib; 790 struct radeon_semaphore *semaphore; 791}; 792 793struct radeon_ring { 794 struct radeon_bo *ring_obj; 795 volatile uint32_t *ring; | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 779 unchanged lines hidden (view full) --- 788 struct radeon_vm *vm; 789 bool is_const_ib; 790 struct radeon_semaphore *semaphore; 791}; 792 793struct radeon_ring { 794 struct radeon_bo *ring_obj; 795 volatile uint32_t *ring; |
796 unsigned rptr; | |
797 unsigned rptr_offs; 798 unsigned rptr_save_reg; 799 u64 next_rptr_gpu_addr; 800 volatile u32 *next_rptr_cpu_addr; 801 unsigned wptr; 802 unsigned wptr_old; 803 unsigned ring_size; 804 unsigned ring_free_dw; --- 148 unchanged lines hidden (view full) --- 953int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 954int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 955void radeon_ring_commit(struct radeon_device *rdev, struct radeon_ring *cp); 956void radeon_ring_unlock_commit(struct radeon_device *rdev, struct radeon_ring *cp); 957void radeon_ring_undo(struct radeon_ring *ring); 958void radeon_ring_unlock_undo(struct radeon_device *rdev, struct radeon_ring *cp); 959int radeon_ring_test(struct radeon_device *rdev, struct radeon_ring *cp); 960void radeon_ring_force_activity(struct radeon_device *rdev, struct radeon_ring *ring); | 796 unsigned rptr_offs; 797 unsigned rptr_save_reg; 798 u64 next_rptr_gpu_addr; 799 volatile u32 *next_rptr_cpu_addr; 800 unsigned wptr; 801 unsigned wptr_old; 802 unsigned ring_size; 803 unsigned ring_free_dw; --- 148 unchanged lines hidden (view full) --- 952int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 953int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 954void radeon_ring_commit(struct radeon_device *rdev, struct radeon_ring *cp); 955void radeon_ring_unlock_commit(struct radeon_device *rdev, struct radeon_ring *cp); 956void radeon_ring_undo(struct radeon_ring *ring); 957void radeon_ring_unlock_undo(struct radeon_device *rdev, struct radeon_ring *cp); 958int radeon_ring_test(struct radeon_device *rdev, struct radeon_ring *cp); 959void radeon_ring_force_activity(struct radeon_device *rdev, struct radeon_ring *ring); |
961void radeon_ring_lockup_update(struct radeon_ring *ring); | 960void radeon_ring_lockup_update(struct radeon_device *rdev, 961 struct radeon_ring *ring); |
962bool radeon_ring_test_lockup(struct radeon_device *rdev, struct radeon_ring *ring); 963unsigned radeon_ring_backup(struct radeon_device *rdev, struct radeon_ring *ring, 964 uint32_t **data); 965int radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring, 966 unsigned size, uint32_t *data); 967int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ring_size, 968 unsigned rptr_offs, u32 nop); 969void radeon_ring_fini(struct radeon_device *rdev, struct radeon_ring *cp); --- 1935 unchanged lines hidden --- | 962bool radeon_ring_test_lockup(struct radeon_device *rdev, struct radeon_ring *ring); 963unsigned radeon_ring_backup(struct radeon_device *rdev, struct radeon_ring *ring, 964 uint32_t **data); 965int radeon_ring_restore(struct radeon_device *rdev, struct radeon_ring *ring, 966 unsigned size, uint32_t *data); 967int radeon_ring_init(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ring_size, 968 unsigned rptr_offs, u32 nop); 969void radeon_ring_fini(struct radeon_device *rdev, struct radeon_ring *cp); --- 1935 unchanged lines hidden --- |