X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fpowerpc%2Fplatforms%2Fcell%2Fspufs%2Fbacking_ops.c;h=a5c489a53c61cdd679040d1d40ff304fe91bf9e7;hb=987b0145d94eecf292d8b301228356f44611ab7c;hp=f1d35ddc9df3b49a37563de6978c3f79ffd8d416;hpb=f7ed79d23a47594e7834d66a8f14449796d4f3e6;p=linux-2.6.git diff --git a/arch/powerpc/platforms/cell/spufs/backing_ops.c b/arch/powerpc/platforms/cell/spufs/backing_ops.c index f1d35ddc9..a5c489a53 100644 --- a/arch/powerpc/platforms/cell/spufs/backing_ops.c +++ b/arch/powerpc/platforms/cell/spufs/backing_ops.c @@ -285,49 +285,6 @@ static void spu_backing_runcntl_stop(struct spu_context *ctx) spu_backing_runcntl_write(ctx, SPU_RUNCNTL_STOP); } -static int spu_backing_set_mfc_query(struct spu_context * ctx, u32 mask, - u32 mode) -{ - struct spu_problem_collapsed *prob = &ctx->csa.prob; - int ret; - - spin_lock(&ctx->csa.register_lock); - ret = -EAGAIN; - if (prob->dma_querytype_RW) - goto out; - ret = 0; - /* FIXME: what are the side-effects of this? */ - prob->dma_querymask_RW = mask; - prob->dma_querytype_RW = mode; -out: - spin_unlock(&ctx->csa.register_lock); - - return ret; -} - -static u32 spu_backing_read_mfc_tagstatus(struct spu_context * ctx) -{ - return ctx->csa.prob.dma_tagstatus_R; -} - -static u32 spu_backing_get_mfc_free_elements(struct spu_context *ctx) -{ - return ctx->csa.prob.dma_qstatus_R; -} - -static int spu_backing_send_mfc_command(struct spu_context *ctx, - struct mfc_dma_command *cmd) -{ - int ret; - - spin_lock(&ctx->csa.register_lock); - ret = -EAGAIN; - /* FIXME: set up priv2->puq */ - spin_unlock(&ctx->csa.register_lock); - - return ret; -} - struct spu_context_ops spu_backing_ops = { .mbox_read = spu_backing_mbox_read, .mbox_stat_read = spu_backing_mbox_stat_read, @@ -348,8 +305,4 @@ struct spu_context_ops spu_backing_ops = { .get_ls = spu_backing_get_ls, .runcntl_write = spu_backing_runcntl_write, .runcntl_stop = spu_backing_runcntl_stop, - .set_mfc_query = spu_backing_set_mfc_query, - .read_mfc_tagstatus = spu_backing_read_mfc_tagstatus, - .get_mfc_free_elements = spu_backing_get_mfc_free_elements, - .send_mfc_command = spu_backing_send_mfc_command, };