Commit 738edc0a authored by Dave Airlie's avatar Dave Airlie
Browse files
parent dc2caa30
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ struct ttm_agp_backend {
	struct agp_bridge_data *bridge;
};

static int ttm_agp_bind(struct ttm_bo_device *bdev,
int ttm_agp_bind(struct ttm_bo_device *bdev,
		 struct ttm_tt *ttm, struct ttm_resource *bo_mem)
{
	struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
@@ -82,8 +82,9 @@ static int ttm_agp_bind(struct ttm_bo_device *bdev,

	return ret;
}
EXPORT_SYMBOL(ttm_agp_bind);

static void ttm_agp_unbind(struct ttm_bo_device *bdev,
void ttm_agp_unbind(struct ttm_bo_device *bdev,
		    struct ttm_tt *ttm)
{
	struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
@@ -97,8 +98,9 @@ static void ttm_agp_unbind(struct ttm_bo_device *bdev,
		agp_be->mem = NULL;
	}
}
EXPORT_SYMBOL(ttm_agp_unbind);

static void ttm_agp_destroy(struct ttm_bo_device *bdev,
void ttm_agp_destroy(struct ttm_bo_device *bdev,
		     struct ttm_tt *ttm)
{
	struct ttm_agp_backend *agp_be = container_of(ttm, struct ttm_agp_backend, ttm);
@@ -108,6 +110,7 @@ static void ttm_agp_destroy(struct ttm_bo_device *bdev,
	ttm_tt_fini(ttm);
	kfree(agp_be);
}
EXPORT_SYMBOL(ttm_agp_destroy);

static struct ttm_backend_func ttm_agp_func = {
	.bind = ttm_agp_bind,
+6 −0
Original line number Diff line number Diff line
@@ -266,6 +266,12 @@ struct ttm_tt *ttm_agp_tt_create(struct ttm_buffer_object *bo,
				 uint32_t page_flags);
int ttm_agp_tt_populate(struct ttm_bo_device *bdev, struct ttm_tt *ttm, struct ttm_operation_ctx *ctx);
void ttm_agp_tt_unpopulate(struct ttm_bo_device *bdev, struct ttm_tt *ttm);
int ttm_agp_bind(struct ttm_bo_device *bdev,
		 struct ttm_tt *ttm, struct ttm_resource *bo_mem);
void ttm_agp_unbind(struct ttm_bo_device *bdev,
		    struct ttm_tt *ttm);
void ttm_agp_destroy(struct ttm_bo_device *bdev,
		     struct ttm_tt *ttm);
#endif

#endif