Subversion Repositories Kolibri OS

Rev

Rev 4110 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4110 Rev 4568
Line 170... Line 170...
170
 * @priv_flags: Flags describing buffer object internal state.
170
 * @priv_flags: Flags describing buffer object internal state.
171
 * @vma_node: Address space manager node.
171
 * @vma_node: Address space manager node.
172
 * @offset: The current GPU offset, which can have different meanings
172
 * @offset: The current GPU offset, which can have different meanings
173
 * depending on the memory type. For SYSTEM type memory, it should be 0.
173
 * depending on the memory type. For SYSTEM type memory, it should be 0.
174
 * @cur_placement: Hint of current placement.
174
 * @cur_placement: Hint of current placement.
-
 
175
 * @wu_mutex: Wait unreserved mutex.
175
 *
176
 *
176
 * Base class for TTM buffer object, that deals with data placement and CPU
177
 * Base class for TTM buffer object, that deals with data placement and CPU
177
 * mappings. GPU mappings are really up to the driver, but for simpler GPUs
178
 * mappings. GPU mappings are really up to the driver, but for simpler GPUs
178
 * the driver can usually use the placement offset @offset directly as the
179
 * the driver can usually use the placement offset @offset directly as the
179
 * GPU virtual address. For drivers implementing multiple
180
 * GPU virtual address. For drivers implementing multiple
Line 251... Line 252...
251
 
252
 
Line 252... Line 253...
252
	struct sg_table *sg;
253
	struct sg_table *sg;
253
 
254
 
-
 
255
	struct reservation_object *resv;
254
	struct reservation_object *resv;
256
	struct reservation_object ttm_resv;
Line 255... Line 257...
255
	struct reservation_object ttm_resv;
257
	struct mutex wu_mutex;
256
};
258
};
257
 
259
 
Line 703... Line 705...
703
extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
705
extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
704
			 const char __user *wbuf, char __user *rbuf,
706
			 const char __user *wbuf, char __user *rbuf,
705
			 size_t count, loff_t *f_pos, bool write);
707
			 size_t count, loff_t *f_pos, bool write);
Line 706... Line 708...
706
 
708
 
707
extern void ttm_bo_swapout_all(struct ttm_bo_device *bdev);
-
 
-
 
709
extern void ttm_bo_swapout_all(struct ttm_bo_device *bdev);
708
 
710
extern int ttm_bo_wait_unreserved(struct ttm_buffer_object *bo);