|
@@ -100,7 +100,6 @@ enum ttm_caching_state {
|
|
* @bdev: Pointer to a struct ttm_bo_device.
|
|
* @bdev: Pointer to a struct ttm_bo_device.
|
|
* @func: Pointer to a struct ttm_backend_func that describes
|
|
* @func: Pointer to a struct ttm_backend_func that describes
|
|
* the backend methods.
|
|
* the backend methods.
|
|
- * @dummy_read_page: Page to map where the ttm_tt page array contains a NULL
|
|
|
|
* pointer.
|
|
* pointer.
|
|
* @pages: Array of pages backing the data.
|
|
* @pages: Array of pages backing the data.
|
|
* @num_pages: Number of pages in the page array.
|
|
* @num_pages: Number of pages in the page array.
|
|
@@ -118,7 +117,6 @@ enum ttm_caching_state {
|
|
struct ttm_tt {
|
|
struct ttm_tt {
|
|
struct ttm_bo_device *bdev;
|
|
struct ttm_bo_device *bdev;
|
|
struct ttm_backend_func *func;
|
|
struct ttm_backend_func *func;
|
|
- struct page *dummy_read_page;
|
|
|
|
struct page **pages;
|
|
struct page **pages;
|
|
uint32_t page_flags;
|
|
uint32_t page_flags;
|
|
unsigned long num_pages;
|
|
unsigned long num_pages;
|
|
@@ -331,7 +329,6 @@ struct ttm_bo_driver {
|
|
* @bdev: pointer to a struct ttm_bo_device:
|
|
* @bdev: pointer to a struct ttm_bo_device:
|
|
* @size: Size of the data needed backing.
|
|
* @size: Size of the data needed backing.
|
|
* @page_flags: Page flags as identified by TTM_PAGE_FLAG_XX flags.
|
|
* @page_flags: Page flags as identified by TTM_PAGE_FLAG_XX flags.
|
|
- * @dummy_read_page: See struct ttm_bo_device.
|
|
|
|
*
|
|
*
|
|
* Create a struct ttm_tt to back data with system memory pages.
|
|
* Create a struct ttm_tt to back data with system memory pages.
|
|
* No pages are actually allocated.
|
|
* No pages are actually allocated.
|
|
@@ -340,8 +337,7 @@ struct ttm_bo_driver {
|
|
*/
|
|
*/
|
|
struct ttm_tt *(*ttm_tt_create)(struct ttm_bo_device *bdev,
|
|
struct ttm_tt *(*ttm_tt_create)(struct ttm_bo_device *bdev,
|
|
unsigned long size,
|
|
unsigned long size,
|
|
- uint32_t page_flags,
|
|
|
|
- struct page *dummy_read_page);
|
|
|
|
|
|
+ uint32_t page_flags);
|
|
|
|
|
|
/**
|
|
/**
|
|
* ttm_tt_populate
|
|
* ttm_tt_populate
|
|
@@ -621,7 +617,6 @@ ttm_flag_masked(uint32_t *old, uint32_t new, uint32_t mask)
|
|
* @bdev: pointer to a struct ttm_bo_device:
|
|
* @bdev: pointer to a struct ttm_bo_device:
|
|
* @size: Size of the data needed backing.
|
|
* @size: Size of the data needed backing.
|
|
* @page_flags: Page flags as identified by TTM_PAGE_FLAG_XX flags.
|
|
* @page_flags: Page flags as identified by TTM_PAGE_FLAG_XX flags.
|
|
- * @dummy_read_page: See struct ttm_bo_device.
|
|
|
|
*
|
|
*
|
|
* Create a struct ttm_tt to back data with system memory pages.
|
|
* Create a struct ttm_tt to back data with system memory pages.
|
|
* No pages are actually allocated.
|
|
* No pages are actually allocated.
|
|
@@ -629,11 +624,9 @@ ttm_flag_masked(uint32_t *old, uint32_t new, uint32_t mask)
|
|
* NULL: Out of memory.
|
|
* NULL: Out of memory.
|
|
*/
|
|
*/
|
|
int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev,
|
|
int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev,
|
|
- unsigned long size, uint32_t page_flags,
|
|
|
|
- struct page *dummy_read_page);
|
|
|
|
|
|
+ unsigned long size, uint32_t page_flags);
|
|
int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev,
|
|
int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev,
|
|
- unsigned long size, uint32_t page_flags,
|
|
|
|
- struct page *dummy_read_page);
|
|
|
|
|
|
+ unsigned long size, uint32_t page_flags);
|
|
|
|
|
|
/**
|
|
/**
|
|
* ttm_tt_fini
|
|
* ttm_tt_fini
|
|
@@ -1080,7 +1073,6 @@ extern const struct ttm_mem_type_manager_func ttm_bo_manager_func;
|
|
* @bridge: The agp bridge this device is sitting on.
|
|
* @bridge: The agp bridge this device is sitting on.
|
|
* @size: Size of the data needed backing.
|
|
* @size: Size of the data needed backing.
|
|
* @page_flags: Page flags as identified by TTM_PAGE_FLAG_XX flags.
|
|
* @page_flags: Page flags as identified by TTM_PAGE_FLAG_XX flags.
|
|
- * @dummy_read_page: See struct ttm_bo_device.
|
|
|
|
*
|
|
*
|
|
*
|
|
*
|
|
* Create a TTM backend that uses the indicated AGP bridge as an aperture
|
|
* Create a TTM backend that uses the indicated AGP bridge as an aperture
|
|
@@ -1089,8 +1081,7 @@ extern const struct ttm_mem_type_manager_func ttm_bo_manager_func;
|
|
*/
|
|
*/
|
|
struct ttm_tt *ttm_agp_tt_create(struct ttm_bo_device *bdev,
|
|
struct ttm_tt *ttm_agp_tt_create(struct ttm_bo_device *bdev,
|
|
struct agp_bridge_data *bridge,
|
|
struct agp_bridge_data *bridge,
|
|
- unsigned long size, uint32_t page_flags,
|
|
|
|
- struct page *dummy_read_page);
|
|
|
|
|
|
+ unsigned long size, uint32_t page_flags);
|
|
int ttm_agp_tt_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
|
|
int ttm_agp_tt_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
|
|
void ttm_agp_tt_unpopulate(struct ttm_tt *ttm);
|
|
void ttm_agp_tt_unpopulate(struct ttm_tt *ttm);
|
|
#endif
|
|
#endif
|